Tagged: Accordion
-
AuthorPosts
-
January 23, 2020 at 11:18 am #1177534
Hi there,
After the new update, I noticed an irregularity in the accordion tab.
Namely, after creating accordion tabs the last one always shows (-) tag even though it is closed.
This does not affect functionality, but does confuse users, because when they see the sign (-) think the tab is already open and there is nothing inside it, although it is not.
I’m not sure if this is a bug, but I wish there were ways to fix this.
Any of the Toggle syles use, the last tab always shown minus (-).
Are there any ways that all closed tabs display (+) and only open tabs have been marked as (-)Take a look on printscreen below
- This topic was modified 4 years, 11 months ago by Darebvk.
January 23, 2020 at 8:53 pm #1177860Hey Darebvk,
Could you please give us a link to your website, we need more context to be able to help you.
Best regards,
VictoriaJanuary 23, 2020 at 9:14 pm #1177873This reply has been marked as private.January 25, 2020 at 11:56 am #1178336Hey Victoria,
I just want to inform you that I solved a problem. Issue referred to a previously added costume script in the function file like below:function add_custom_script(){ ?> <script> jQuery(window).load(function(){ jQuery("p.toggler").trigger('click'); }); </script> <?php } add_action('wp_footer', 'add_custom_script');
The only question is why this function applies to all parts where the accordion is,I wonder if it is possible to add some type of class to a script that would only apply to a specific page?
Thanks for your advice
January 27, 2020 at 9:13 pm #1178782Hi,
Yes, if you check the body html tag, you can see that each page-id is reffered there. You can target specific pages based on this.
Best regards,
BasilisJanuary 28, 2020 at 8:59 am #1178907Thanks Basilis,
toggler works like charm ;)this thread can be closed
Regards
January 29, 2020 at 5:59 am #1179279 -
AuthorPosts
- The topic ‘Accordion tab Issue’ is closed to new replies.