This topic has 17 replies, 3 voices, and was last updated 6 years, 9 months ago ago by Rose Tyler
Hi, I previously opened the thread: https://www.8theme.com/topic/close-accordian-tabs-by-default/
The modifications to the tabs.php file of version 1.0.0.
However, that is an outdated template file, as the newest is 2.4.0. However, when I tried to change the 2.4.0 file by removing the line <?php if($i == 1) echo ‘style=”display:block;”‘; ?> and replacing it into xstore-child / single-product / tabs / tabs.php, the tabs turn to: https://i.imgur.com/F8tnpdH.png
The tabs with the old file looked like this: https://i.imgur.com/osB7GTy.png
How can I fix this? Is there any other changes I should have made to the tabs.php file other tahn remove the line stated above?
Hello,
I’ve checked your site and see http://prntscr.com/i4adng There using the old or new file?
Please explain the desired result of displaying.
Regards
Yes – that is the old file (tabs.php version 1.0.0). However, I would like to update it to version 2.4.0, and tried to do so simply by removing the line:
<?php if($i == 1) echo ‘style=”display:block;”‘; ?>
in xstore-child / single-product / tabs / tabs.php but that created this result: https://imgur.com/F8tnpdH which is different than the old file.
Hello,
Please provide wp-admin and FTP access in Private Content, because of credentials from the previous post are incorrect.
Regards
Hi Rose,
New details are enclosed in private content.
Thanks!
Hello,
Check now.
Regards
Hi Olga,
The tabs file is still version 1.0.0. https://i.imgur.com/tiVCbjX.png
I would like to update it to version 2.4.0.
Thanks for updating the file. What changes did you make?
Hello,
You’re welcome!
We made changes in etheme.js + etheme.min.js, tabs.php and custom css (Theme Options > Stylimg > Custom css).
Regards
Hi there –
please specify exactly what code was removed or added in each file so that I can replicate the changes if needed.
Hello,
these removed http://prntscr.com/i70wu9
this added 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 Then copy content of this file and minify it https://jscompress.com/, replace content of etheme.min.js file
and added custom css in your custom css area in options http://prntscr.com/i70yah
.single-product .tabs .opened-parent:not(.et-opened) .tab-title.first-tab-opened:after {
content: '\f107';
margin-top: -11px;
}
Regards
Hi again,
Due to the new update, I have commented out the two lines:
//$this.find(‘.tab-title’).first().addClass(‘opened’).parent().addClass(‘et-opened’);
//$this.find(‘.accordion-title’).first().addClass(‘opened’);
of the xstore/js/etheme.js
However, when I went to jscompress.com, I got this error:
In strict mode code, functions can only be declared at top level or immediately within another function. (line: 2885, col: 16)
Please help with this as soon as you can. Thanks.
Hello,
Please check now.
Regards
What exactly did you do? Please describe in detail so I can do the same in the future if I encounter such an error.
Also, I have the infinite scroll plugin activated and it was working previously, but now it is showing up like this: https://i.imgur.com/oWsj03V.jpg
Hello,
1. We did the same changes as you but used another js minifier.
2. Please read our documentation https://www.8theme.com/documentation/xstore/plugins/woocommerce-infinite-scroll-and-ajax-pagination-settings/
Regards
You must be logged in to reply to this topic.Log in/Sign up