Hi,
I added a Text/html widget to the Newspaper default sidebar where I integrated the Q&A Toggle element code (see below). This sidebar ist working fine on the front page as well as other static pages. The Toggle element is NOT working on post pages as well as the author page.
Any Ideas how to solve that problem?
Regards
Richard
Front page (Toggle element working): http://excellenceaktuell.de/
Static page (Toggle element working): http://excellenceaktuell.de/ueber-uns/
Author page (Toggle element not working): http://excellenceaktuell.de/author/sebastian/
Post page (Toggle element not working): http://excellenceaktuell.de/wer-schreibt-hier-und-warum/
<div style="background-color: #E05F0B;">
<div style="padding: 25px;">
<p style="text-align: center; font-size: 1.5em;">Ja, ich möchte den</p>
<p style="text-align: center; font-size: 2.5em; font-style: bold; margin-bottom: 25px;">Newsletter!</p>
<div class="vc_toggle vc_toggle_default vc_toggle_color_default vc_toggle_size_md">
<div class="vc_toggle_title">
<h4 style="text-align: center;">Hinweise zum Datenschutz</h4>
<i class="vc_toggle_icon"></i>
</div>
<div class="vc_toggle_content" style="display: none;">
<p style="padding-right: 15px;">Den Newsletter verwalten wir über die CleverReach GmbH & Co. KG in Rastede in der Nähe von Oldenburg. Die Datenverarbeitung ist zu 100% konform mit den Vorgaben des Bundesdatenschutzgesetzes. In den Auswertungen werden die öffnenden und klickenden Empfänger anonymisiert. Die Erhebung und Verarbeitung vollständiger IP-Adressen ist unterbunden.</p>
</div>
</div>
[cleverreach_signup]
</div>
</div>
Hi,
I have checked your site and did not found any issues with it, this how it looks on author page and post page – http://screencast.com/t/5c2b8mJD6 – http://screencast.com/t/VAuRUBFah
Do you have this issue displaying it on post page? Please clear cache maybe it is a cache issue or provide more details what do you mean with “NOT working on post pages”.
Thanks!
Please can you click on the Toggle element (the little box with the plus sign and the text ‘Hinweis zur Datenverarbeitung’ below the word ‘Newsletter’ and see what happens.
On two of the linked pages above the corresponding text opens, on the other two nothing happens.
Thanks!
Hi,
This happens because you have the visual composer’s JavaScript loaded on those pages so when it’s missing the the animation doesn’t work. On your homepage and the other pages the js is loaded as the page builder can be used but on posts pages or author pages the VC page builder shouldn’t be used so the js isn’t loaded.
You could try to enqueue the VC script on all pages then the animation should work: https://codex.wordpress.org/Function_Reference/wp_enqueue_script – http://screencast.com/t/cVIq3x9qyM8
Thanks
Hi Lucian,
Thanks for the Info. Enqueueing the script ist outside of my area of competence, I’ve no idea were to add the script you mentioned above – or maybe it’s only too hot today. 🙂 I’ll use Visual Composer for my post pages as a workaround and skip the animation on the authors pages.
Regards
Richard