Tagged: 

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #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
    null

    • This topic was modified 4 years, 11 months ago by Darebvk.
    #1177860

    Hey Darebvk,

    Could you please give us a link to your website, we need more context to be able to help you.

    Best regards,
    Victoria

    #1177873
    This reply has been marked as private.
    #1178336

    Hey 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

    #1178782

    Hi,

    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,
    Basilis

    #1178907

    Thanks Basilis,
    toggler works like charm ;)

    this thread can be closed

    Regards

    #1179279

    Hi,

    Great, I’m glad that you got things working and thanks for the update. I’ll close this thread for now then, please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Accordion tab Issue’ is closed to new replies.