Hey Gitte,
To toggle a section when a button is clicked please check https://kriesi.at/documentation/enfold/button/#toggle-id-7
Just add your comments inside a color section.
In case, if you are using a sidebar on the blog page, just add your comments inside a column which suits your design.
Best regards,
Vinay
I do not use the ALB for posts.
Hi,
In that case please inspect the class name for the div which you want to toggle and replace it in the js code :)
For example:
Replace the class and ID in the below line with the class name of the div with comments. Same with CSS.
jQuery(“#toggle-section”).toggleClass(“hide-me”);
Or you can give this plugin a shot https://wordpress.org/plugins/show-all-comments-in-one-page/
Or check out this tutorial https://premium.wpmudev.org/forums/topic/showhide-comments-section-with-jquery
Best regards,
Vinay
Please refer to my first post:
Your suggested plugin is not what I’d like to achieve.
And I already have a tutorial and code snippets – see above, but not sure,
– how to put it into an ENFOLD “function” and
– where to place the HTML part exactly in the comments.php
Hi,
To add your custom js code to wordpress please install a child theme and use the format in the below link
To avoid js conflict replace the “$” sign with the word “jQuery” in the custom code.
By default, the jQuery script will be included in your WP installation so you can simply remove the linked file to google.
Best regards,
Vinay