Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1217400
    Antony H
    Participant

    Hello Themeco people,

    Just a quick question, if I may: Is it possible to add new tabs to the WooCommerce product pages please?

    I want to add tabs for:

    • Formula
    • Ingredients
    • Daily Intake
    • Caution / Allergies
    • Suitable For

    Is this possible please?

    Thank you!

    #1217443
    Thai
    Moderator

    Hi There,

    This plugin should help: https://wordpress.org/plugins/yith-woocommerce-tab-manager/.

    Regards!

    #1217475
    Antony H
    Participant

    Perfect, thanks Thai!

    #1217499
    Antony H
    Participant

    Actually the plugin didn’t work 🙁

    I found a workaround by enabling cornerstone editing on product pages. That way I can add my own tabs. The only problem is that the page loads with the descriptions tab closed and when I expand the description tab and make it active, none of the tabs are initially active, even though I’ve set one of them to be initially active in cornerstone.

    I’ll add the URL in a private post in one second…

    Thanks again!

    #1217500
    Antony H
    Participant
    This reply has been marked as private.
    #1217502
    Antony H
    Participant

    Quick screen shot to illustrate the issue. Thanks.

    #1217769
    Rue Nel
    Moderator

    Hello There,

    Thanks for updating in! Please add the following JS code in the customizer, Appearance > Customize > Custom > Javascript

    (function($){
      $('.woocommerce-tabs .x-nav-tabs-item:first-child a').trigger('click');
    })(jQuery);

    We would loved to know if this has work for you. Thank you.

    #1217831
    Antony H
    Participant

    Morning! Thanks for looking into this for me, I appreciate your help. Unfortunately the above JS didn’t seem to do anything as neither of the tab sections loads an initially active tab.

    Do you have any other ideas please?

    #1217916
    Rue Nel
    Moderator

    Hello There,

    Would you mind providing us the url of your site with login credentials so we can take a closer look and fix the issue? This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

    To do this, you can make a post with the following info:
    – Link to your site

    – WordPress Admin username / password

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thank you.

    #1217921
    Antony H
    Participant
    This reply has been marked as private.
    #1217923
    Antony H
    Participant
    This reply has been marked as private.
    #1217942
    Rue Nel
    Moderator

    Hello There,

    Thanks for providing the information. I have updated the JS code and use this instead:

    (function($){
      $(window).load(function(){
        $('.woocommerce-tabs .x-nav-tabs-item:first-child a').trigger('click');
      });
    })(jQuery);

    Please let us know if this works out for you.

    #1217949
    Antony H
    Participant

    Wow. That worked a treat. Thank you!

    #1217969
    Thai
    Moderator

    Glad it worked 🙂

    If you need anything else please let us know.

  • <script> jQuery(function($){ $("#no-reply-1217400 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>