Viewing 6 posts - 1 through 6 (of 6 total)
  • #235462
    jgilanfarr
    Member
    Post count: 8

    How can I set the Reviews accordion on a product page to default to collapsed? I am savy with code I just don’t know where to find the settings…

    Thanks!

    #235478
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please use this custom css code:-

    #product-reviews{
    height:0px !important;
    }

    Thanks
    Mohammad

    #235495
    jgilanfarr
    Member
    Post count: 8

    Thanks Mohammed, that works but then I can’t expand the accordion and it get’s stuck shut.

    Looks like I need to add ‘collapsed’ to the class on the accordion link, I just don’t know where to find it.

    Any other ideas?

    #235500
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You can find the code at tabs.php at /neighborhood/woocommerce/single-product/.
    Thanks
    Mohammad

    #235759
    jgilanfarr
    Member
    Post count: 8

    Thanks! In case anyone else is curious, the trick was too remove the following code from tabs.php:

    `<?php

    $class = “”;

    if ($count == 0) {
    $class = “in”;
    }

    ?>`

    #235761
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I am glad that you managed to resolve the issue.
    Thanks
    Mohammad

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register