Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1348937
    afungusboy
    Participant

    I’ve tried 2 different approaches to move the Woocommerce Related Products to a tab. I have to leave the theme settings to be able to show Related Products in the tab but it also shows the Related Products under the tabs.

    I’ve followed the instructions here:
    http://www.remicorson.com/place-woocommerce-related-products-in-a-tab/
    but using remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20); does not remove it from below the tabs. Is there a different action to remove it from your theme?

    #1348944
    afungusboy
    Participant
    This reply has been marked as private.
    #1349260
    Rue Nel
    Moderator

    Hello There,

    Thanks for writing in! To assist you better with this issue, would you mind providing us the url of your site with login credentials so we can take a closer look? 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.

    #1349283
    afungusboy
    Participant
    This reply has been marked as private.
    #1349419
    Rue Nel
    Moderator

    Hello There,

    Thanks for providing the information. To remove the Related Products below the tabs, since you already have your child theme active and ready, please insert this following code in your child theme’s functions.php file.

    // Remove related products below the tabs
    // =============================================================================
    function remove_related_products(){
      remove_action( 'woocommerce_after_single_product_summary', 'x_woocommerce_output_related_products', 20 );
    }
    add_action('wp', 'remove_related_products');
    // =============================================================================

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

    #1349520
    afungusboy
    Participant

    Yay, that worked! Thank you 🙂

    #1349525
    Thai
    Moderator

    You’re most welcome 🙂

    If you need anything else please let us know.

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