2.4 Update Comment Problem
comments not work with the7 theme and I see this log:
PHP Fatal error: Call to undefined function presscore_get_button_html() in /home/shivahos/domains/shivahost.net/public_html/wp-content/themes/dt-the7/functions.php on line 1141
This issue is happening due to smooth scroll. This prevents click on comment button. Please chek in you theme JS if there is any smooth scroll code and remove it.
I removed smooth scroll section from JS file nothing chaged!
as I said accordion toggle part of js has conflict! and I cant remove it!
this script has problem with “add image form link” :
(function(e,t,n){var r=t.event;var i=0;t.Accordion=function(e,n){this.$el=t(n);this.$items=this.$el.children(“ul”).children(“li”);this.itemsCount=this.$items.length;this._init(e)};t.Accordion.defaults={open:-1,oneOpenedItem:false,speed:600,easing:”easeInOutExpo”,scrollSpeed:900,scrollEasing:”easeInOutExpo”};t.Accordion.prototype={_init:function(e){this.options=t.extend(true,{},t.Accordion.defaults,e);this._validate();this.current=this.options.open;this.$items.find(“div.st-content”).hide();this._saveDimValues();if(this.current!=-1)this._toggleItem(this.$items.eq(this.current));this._initEvents()},_saveDimValues:function(){this.$items.each(function(){var e=t(this);e.data({originalHeight:e.find(“a:first”).height(),offsetTop:e.offset().top})})},_validate:function(){if(this.options.openthis.itemsCount-1)this.options.open=-1},_initEvents:function(){var n=this;this.$items.find(“a:first”).bind(“click.accordion”,function(e){var r=t(this).parent();if(n.options.oneOpenedItem&&n._isOpened()&&n.current!==r.index()){n._toggleItem(n.$items.eq(n.current))}n._toggleItem(r);return false});n.$el.find(“li”).each(function(){var e=t(this);e.css(“height”,e.data(“originalHeight”))});t(e).bind(“debouncedresize”,function(e){n._saveDimValues();n.$el.find(“li”).not(“.st-open”).each(function(){var e=t(this);e.css(“height”,e.data(“originalHeight”))});n.$el.find(“li.st-open”).each(function(){var e=t(this);e.css(“height”,e.data(“originalHeight”)+e.find(“div.st-content”).outerHeight(true))})})},_isOpened:function(){return this.$el.find(“li.st-open”).length>0},_toggleItem:function(e){i++;var t=this;var n=e.find(“div.st-content”);e.hasClass(“st-open”)?(this.current=-1,n.stop(true,true).fadeOut(this.options.speed),e.removeClass(“st-open”).stop().animate({height:e.data(“originalHeight”)},this.options.speed,this.options.easing,function(){if(i>1){t._scroll()}})):(this.current=e.index(),n.stop(true,true).fadeIn(this.options.speed),e.addClass(“st-open”).stop().animate({height:e.data(“originalHeight”)+n.outerHeight(true)},this.options.speed,this.options.easing,function(){}))},_scroll:function(n){var n=n||this,r;n.current!==-1?r=n.current:r=n.$el.find(“li.st-open:last”).index();if(e.innerWidth<760){t("html, body").stop().animate({scrollTop:n.$items.eq(r).offset().top},n.options.scrollSpeed,n.options.scrollEasing)}}};var s=function(e){if(this.console){console.error(e)}};t.fn.dtAccordion=function(e){if(typeof e==="string"){var n=Array.prototype.slice.call(arguments,1);this.each(function(){var r=t.data(this,"accordion");if(!r){s("cannot call methods on accordion prior to initialization; "+"attempted to call method '"+e+"'");return}if(!t.isFunction(r[e])||e.charAt(0)==="_"){s("no such method '"+e+"' for accordion instance");return}r[e].apply(r,n)})}else{this.each(function(){var n=t.data(this,"accordion");if(!n){t.data(this,"accordion",new t.Accordion(e,this))}})}return this};var i=0;t.Toggle=function(e,n){this.$el=t(n);this.$items=this.$el;this.itemsCount=this.$items.length;this._init(e)};t.Toggle.defaults={open:-1,oneOpenedItem:false,speed:600,easing:"easeInOutExpo",scrollSpeed:900,scrollEasing:"easeInOutExpo"};t.Toggle.prototype={_init:function(e){this.options=t.extend(true,{},t.Toggle.defaults,e);this._validate();this.current=this.options.open;this.$items.find("div.st-toggle-content").hide();this._saveDimValues();if(this.current!=-1)this._toggleItem(this.$items.eq(this.current));this._initEvents()},_saveDimValues:function(){this.$items.each(function(){var e=t(this);e.data({originalHeight:e.find("a:first").height(),offsetTop:e.offset().top})})},_validate:function(){if(this.options.openthis.itemsCount-1)this.options.open=-1},_initEvents:function(){var n=this;this.$items.find(“a:first”).bind(“click.toggle”,function(e){var r=t(this).parent();if(n.options.oneOpenedItem&&n._isOpened()&&n.current!==r.index()){n._toggleItem(n.$items.eq(n.current))}n._toggleItem(r);return false});n.$el.each(function(){var e=t(this);e.css(“height”,e.data(“originalHeight”))});t(e).bind(“debouncedresize”,function(e){n._saveDimValues();n.$el.not(“.st-open”).each(function(){var e=t(this);e.css(“height”,e.data(“originalHeight”))});n.$el.each(function(){if(t(this).hasClass(“st-open”)){var e=t(this);e.css(“height”,e.data(“originalHeight”)+e.find(“div.st-toggle-content”).outerHeight(true))}})})},_isOpened:function(){return this.$el.is(“.st-toggle-open”).length>0},_toggleItem:function(e){i++;var t=this;var n=e.find(“div.st-toggle-content”);e.hasClass(“st-open”)?(this.current=-1,n.stop(true,true).fadeOut(this.options.speed),e.removeClass(“st-open”).stop().animate({height:e.data(“originalHeight”)},this.options.speed,this.options.easing,function(){if(i>1){t._scroll()}})):(this.current=e.index(),n.stop(true,true).fadeIn(this.options.speed),e.addClass(“st-open”).stop().animate({height:e.data(“originalHeight”)+n.outerHeight(true)},this.options.speed,this.options.easing,function(){if(i>1){t._scroll()}}))},_scroll:function(n){var n=n||this,r;n.current!==-1?r=n.current:r=n.$el.find(“li.st-open:last”).index();if(e.innerWidth<760){t("html, body").stop().animate({scrollTop:n.$items.eq(r).offset().top},n.options.scrollSpeed,n.options.scrollEasing)}}};var s=function(e){if(this.console){console.error(e)}};t.fn.toggle=function(e){if(typeof e==="string"){var n=Array.prototype.slice.call(arguments,1);this.each(function(){var r=t.data(this,"toggle");if(!r){s("cannot call methods on toggle prior to initialization; "+"attempted to call method '"+e+"'");return}if(!t.isFunction(r[e])||e.charAt(0)==="_"){s("no such method '"+e+"' for toggle instance");return}r[e].apply(r,n)})}else{this.each(function(){var n=t.data(this,"toggle");if(!n){t.data(this,"toggle",new t.Toggle(e,this))}})}return this}})(window,jQuery)
also add image via link have conflict with plagins.js accordion toggle part!