Setting Reviews Tab 'Closed' on Page Load

This topic has 4 replies, 2 voices, and was last updated 9 years ago ago by Eva Kemp

  • Avatar: sguilliard
    sguilliard
    Participant
    December 4, 2015 at 14:19

    I’d like the reviews tab to load in a closed state.

    Is there a simple hook/filter or function I can override for this before I start hunting through the code? I suspect it may be a case of loading some JavaScript (or changing the JS function that currently gets loaded but would like some pointers on the quickest/simplest way of doin this).

    Many thanks…

    Please, contact administrator
    for this information.
    3 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    December 4, 2015 at 16:23

    Hello,

    I’ve logged in to wp-admin panel but I can’t view the site, only this message: “The Nails International website is currently undergoing a bit of a facelift.
    Check back here shortly, when we’re finished”

    Please open access for us.

    Thank you.

    Regards,
    Eva Kemp.

    Avatar: sguilliard
    sguilliard
    Participant
    December 4, 2015 at 20:12

    Hi Eva,

    I did explain how to whitelist your IP address so that you’d be able to see the site in my first message (in the private content).

    Avatar: Eva
    Eva Kemp
    Support staff
    December 4, 2015 at 21:51

    Hello,

    To close first tab by default you need edit the file wp-content/themes/woopress/woocommerce/single-product/tabs/tabs.php and change the code <?php if($i == 1) to <?php if($i == 0) in line 28 and in line 31. Also edit the file wp-content/themes/woopress/js/etheme.js and comment the code currTab.find('.tab-title:eq('+openNumber+')').addClass('opened').next().show(); in line 1739 and the code currTab.find('.tab-title').first().addClass('opened').next().show(); in line 1741.

    Regards,
    Eva Kemp.

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

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

Helpful Topics

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