Collapse WooCommerce Accordion tabs - by andantesash

This topic has 2 replies, 2 voices, and was last updated 7 years, 11 months ago ago by Rose Tyler

  • Avatar: andantesash
    andantesash
    Participant
    December 2, 2016 at 00:19

    I would like to have all accordion tabs closed whenever anyone visits a single product page, how do I do this?

    Can someone tell me a plugin or a piece of code that would load the page with all accordion tabs closed.

    Thanks

    1 Answer
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    December 2, 2016 at 08:37

    Hello,

    To close first tab by default you need edit the file wp-content/themes/royal/woocommerce/single-product/tabs.php and change the code http://prntscr.com/decys4 to <?php if($i == 0) echo 'style="display:block;"'; ?>.

    Regards,
    Rose Tyler.

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.