Posted: December 11, 2014 at 6:32 am
|
Hi, Is there anyway to change the point at which EE outputs the divs it uses? I’m running in to a problem whereby I want to redirect a user to download the PDF based on a custom post type and I’m now unable to since installing EE as the headers are already started by the plugin… Thanks, |
|
I’ve just checked the raw HTML and I can’t believe what I’m seeing, but the plugin is outputting the divs PRE document loading…insane! How can this be changed or modified to hook on to, say wp_footer or another more sensible place? <div id="espresso-notices"></div> <div id="espresso-ajax-notices"> <div id="espresso-ajax-notices-success" class="espresso-ajax-notices success fade-away" style="display:none;"> <div id="espresso-ajax-notices-attention" class="espresso-ajax-notices attention fade-away" style="display:none;"> <div id="espresso-ajax-notices-error" class="espresso-ajax-notices error fade-away" style="display:none;"> </div> |
|
Hi, That shouldn’t be happening. Running a test on a default WordPress theme shows the above HTML being created added within the < body > of the HTML. What theme are you using? Have you tried testing with a different theme just to double check? (the Them Test Drive plugin is very good for that). Can you provide a link to the page in question?
|
|
Aha, you saying that has just made me realise. I’m guessing it’s something to do with the fact I’m using Timber and Twig templates. Still odd though, will have to investigate further I guess! Thanks! |
|
It’s all local at the moment so will have to investigate what’s happening with Timber. |
|
Although having said that it’s only on one page, not throughout the site. It’s odd. Not too sure what’s causing it… |
|
Without seeing the site it’s hard to say, and with little knowledge of Timber/Twig it might be even harder. Have you tested with a default WordPress theme to see if the issue persists then? If it does then at least it points to your current theme as the likely issue. |
|
Yeah for sure, it’s odd as it doesn’t appear on any other page, just on this CPT for some reason. Will try and get an external link up so you can see. Just trying to work through it all to see what the problem is. |
|
OK, please keep us updated. |
The support post ‘Event Espresso Header Output’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.