Tagged: advanced-layout-editor, plugins
-
AuthorPosts
-
December 19, 2013 at 2:20 pm #202016
I used the Plugin “CSS & Javascript Toolbox” together with Enfold smoothly until I updated to enfold 2.5. The Plugin enables you to insert HTML, CSS oder JS snippets on pages, posts, etc.
Since the update, the Snippets are not displayed (and are not in the source code either), whenever a page is build using the advanced layout editor. You can make a page, look at it and it displays “hello world!”, which is a test html snippet set to display on the top of every page. This works fine. Then you edit the page, just turn on the advanced layout editor and Save the page – whooop: “hello world!” is gone.
Again disable “Advanced layout editor” on that page – whooop: “helloworld!” is there again!
I also tested this on a clean install with same results. WP-Version is 3.8.
Is there a fix to the problem?
Cheers,
RolfDecember 20, 2013 at 4:02 pm #202602Hi Rolf!
I can’t reproduce the issue on my test server with Enfold 2.4.4 (not sure if Kriesi released a 2.5 version of Enfold yet but I can’t find it in our developer repository). Please create us an admin account and post a link to the page where the snippet doesn’t work. I can’t promise that we can fix the issue (third party plugin incompatibilities are beyond the scope of our support forum) but maybe I can find an obvious conflict/reason.
Cheers!
PeterJanuary 27, 2014 at 5:47 pm #215428Please i need this solution to! Can you please see where the conflit with this plugin.
January 27, 2014 at 6:50 pm #215449Hi Feliperobert,
please head over here and express your need in this thread: http://wordpress.org/support/topic/612-and-wp-38-plugin-not-working
Bye,
RolfJanuary 28, 2014 at 2:16 pm #215765Hi!
Thank you for the notice :)
Best regards,
PeterJanuary 30, 2014 at 4:57 pm #217029Hi Dude!
Hey, some progress :-D
The author of “CSS & Javascript Toolbox” wrote me this:
CJT <= 6.1.1 prepared all blocks associated with the request within “wp” WordPress hook action.
CJT > =6.1.2 is now using the “template_redirect” hook filter to do that. “template_redirect” hook filter is being fired and processed by WordPress for canonical URLs. This filter is not being fired on your WordPress installation might be because of the theme or another Plugin.Can this help you investigating? Is the “template_redirect” hook not fired when using the advanced layout editor of enfold?
Best Regards,
RolfFebruary 1, 2014 at 10:23 am #217740Hey!
Actually the “Advanced layout editor” uses a special template and we use the “template_redirect” hook to load the special advanced layout page template. We load the template with the priority of 10 (default priority) and maybe the plugin doesn’t work because the author used a lower priority value. I’m also not sure if the plugin will work with advanced layouts at all because the different templates may conflict with each other.
Best regards,
PeterFebruary 1, 2014 at 1:15 pm #218245That would be sad, because the plugin is the only real way to insert JS into the site, since enfold itself doesn’t offer a HTML/Scripting element.
February 1, 2014 at 2:00 pm #218250Hi!
After reading this post: http://wordpress.org/support/topic/612-and-wp-38-plugin-not-working?replies=10#post-5173263 I guess the plugin does not load any custom templates but the plugin author just uses this hook to execute some code or functions. Try to replace
'core' => (object) array('siteHook' => ((object) array('tag' => 'template_redirect', 'priority' => 11))),
with
'core' => (object) array('siteHook' => ((object) array('tag' => 'template_redirect', 'priority' => 5))),
and the plugin should work.
Regards,
PeterFebruary 3, 2014 at 3:39 pm #218822This solution work perfectly with css toolbox 6.1.4 – TKS a lot!
-
AuthorPosts
- The topic ‘Advanced Layout Editor crashes with "CSS & Javascript Toolbox" since 2.5’ is closed to new replies.