Set description tab on inactive - by Divites

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

  • Avatar: Divites
    Divites
    Participant
    February 28, 2018 at 17:12

    Hi,

    I was wondering if you could help me achieve the following. My client really needs the description tab on the single product page to be closed by default. I know it is not offered in theme settings, but all code I used in js. is not working.

    Could you please help me out.

    Thx for your prompt reply.

    Regards,

    Johan

    7 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 1, 2018 at 11:53

    Hello,

    You need to copy the content of xstore/woocommerce/single-product/tabs/tabs.php to your child theme with the same structure
    edit the file –
    these remove http://prntscr.com/i70wu9
    this add http://prntscr.com/i70wm7
    Then you need also to find these lines http://prntscr.com/hscf4q (xstore/js/etheme.js) and comment, like on screenshot – https://prnt.sc/hscfex + copy content of this file and minify it https://jscompress.com/, replace content of etheme.min.js file
    and add this custom css code in Theme Options > Styling > Custom css:

    .single-product .tabs .opened-parent:not(.et-opened) .tab-title.first-tab-opened:after {
        content: '\f107';
        margin-top: -11px;
    }

    Regards

    Avatar: Divites
    Divites
    Participant
    March 1, 2018 at 15:01

    Hi Rose,

    Thx for your prompt reply.
    I have made the changes in the files, but when I try to minify the etheme.js I get the following error in https://jscompress.com: In strict mode code, functions can only be declared at top level or immediately within another function. (line: 2891, col: 16)

    Any idea how to solve this?

    I have enclosed the FTP and WP login credentials if you need them.

    Thx for your help so far!

    Regards,

    Johan

    Please, contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 1, 2018 at 15:21

    Hello,

    We can’t connect to FTP. Please try to use another site for the minify, for example, https://www.minifier.org/

    Regards

    Avatar: Divites
    Divites
    Participant
    March 1, 2018 at 16:21

    Hello,

    I have used the site you suggested and it worked. However when applying everything makes the tabs all disappear… I have turned back all files and everything is working again.

    Could you please have a look. The FTP credentials should work. You have to use a non secure connection.

    Thx so much!

    Regards,

    Johan

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 2, 2018 at 10:56

    Hello,

    You use ‘Elegant Tabs for WooCommerce’ plugin that rewrites the tabs file http://prntscr.com/ilrll8
    this is default http://prntscr.com/ilrlws
    We’ve made changes as explained before, so without the plugin, tabs are closed http://prntscr.com/ilrvcv
    Because we are theme support, we can help you with questions that strictly relate to our theme and we do not provide support for 3-rd party plugins.

    Regards

    Avatar: Divites
    Divites
    Participant
    March 2, 2018 at 13:12

    Hi Rose,

    Thx for your excellent support and sorting out what the issue is. I will contact my client to see what her preference is. Keeping the elegant tabs plugin or not.

    Thx again!

    Regards,

    Johan

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 2, 2018 at 13:19

    Hello,

    You’re welcome!
    Have a nice day.

    Regards

  • Viewing 8 results - 1 through 8 (of 8 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.