December 19, 2013 at 2:20 pm #202016
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?
RolfDecember 20, 2013 at 4:02 pm #202602
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.
PeterJanuary 27, 2014 at 5:47 pm #215428
Please i need this solution to! Can you please see where the conflit with this plugin.January 27, 2014 at 6:50 pm #215449January 28, 2014 at 2:16 pm #215765January 30, 2014 at 4:57 pm #217029
Hey, some progress :-D
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?
RolfFebruary 1, 2014 at 10:23 am #217740
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.
PeterFebruary 1, 2014 at 1:15 pm #218245
That 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 #218250
After reading this post: http://wordpress.org/support/topic/ (Purchase code hidden if logged out) -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))),
'core' => (object) array('siteHook' => ((object) array('tag' => 'template_redirect', 'priority' => 5))),
and the plugin should work.
PeterFebruary 3, 2014 at 3:39 pm #218822