Home Forums Basel support forum Products Tabs issue

Products Tabs issue

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #24250

    miguel1876
    Participant

    Hi guys,
    On the Home page I have 3 Products Tabs. The second one (What’s New) is suppose to show New Products, however it doesn’t show anything. It is blank.

    Also, in the Single Product Page, I am using the Accordion option. The first accordion is open by default. How I can have it so all Accordions are closed?

    Thanks

    #24272

    Artem Temos
    Keymaster

    Hi,

    1. You need to have products marked as “NEW” to show them https://prnt.sc/hankdm

    2. By default, WooCommerce opens first tab when the page is loaded. You can try to close it manually right after page loading by adding this code snippet to the Custom JS section in Theme Settings

    setTimeout(function() {
        var $tabs = jQuery( '.wc-tabs, ul.tabs' ).first();
        $tabs.parent().find('#tab-basel_additional_tab').hide();
        $tabs.parent().find( '.basel_additional_tab_tab' ).removeClass('active');
    }, 10);

    Regards

    #24323

    miguel1876
    Participant

    Hi
    Thanks but unfortunately that code does not work.
    Any other options?

    #24327

    Artem Temos
    Keymaster

    Send us a link where you added the code so we can check it.

    #24331

    miguel1876
    Participant

    I added the code to the Theme settings panel
    https://bullywear.com/wp-admin/admin.php?page=_options&tab=42
    I tried in the Global Custom JS and in the On document ready sections.

    I can see the code in the Source Code.

    But it doesn’t work:
    https://bullywear.com/shop/torment-white-hs/

    (I provided login info with the original post if you need it)

    #24334

    Artem Temos
    Keymaster

    Try to add it to document ready section.

    #24335

    miguel1876
    Participant

    I did try that but like I said, it doesn’t work.
    I put the code there now so you can see it.

    #24337

    Artem Temos
    Keymaster

    OK, so please, provide us an admin access exactly for this site. Since you gave me another website access.

    #24338

    miguel1876
    Participant

    Oh I am sorry. 🙂
    Here you go…

    #24342

    Artem Temos
    Keymaster

    OK, we replaced the code with this one

    setTimeout(function() {
        var $tabs = jQuery( '.wc-tabs, ul.tabs' ).first();
        $tabs.parent().find('#tab-woodmart_additional_tab').hide();
        $tabs.parent().find( '.tab-title-woodmart_additional_tab' ).removeClass('active');
    }, 10);
Viewing 10 posts - 1 through 10 (of 10 total)