This topic has 8 replies, 2 voices, and was last updated 6 years, 8 months ago ago by Rose Tyler
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
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
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
Hello,
We can’t connect to FTP. Please try to use another site for the minify, for example, https://www.minifier.org/
Regards
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
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
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
Hello,
You’re welcome!
Have a nice day.
Regards
You must be logged in to reply to this topic.Log in/Sign up