New Landing How can we help? Themeforest Theme Support Neighborhood Move the product tabs to below the image/description area

Viewing 11 posts - 1 through 11 (of 11 total)
  • #311428
    flick00
    Member
    Post count: 6

    Hello,

    I try to move the product tabs to below the image but dosen’t work.

    I put this code:

    function dante_product_tabs_override() {
      add_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 10);
      remove_action( 'woocommerce_single_product_summary', 'woocommerce_output_product_data_tabs', 35);
    }
    add_action('init', 'dante_product_tabs_override', 5);

    I would like it to look like this page. This page

    And with more tabs.

    Thanks in advance

    #311572
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Try this code instead where the action is removed first.

    function dante_product_tabs_override() {
      remove_action( 'woocommerce_single_product_summary', 'woocommerce_output_product_data_tabs', 35);
      add_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 10);
    }
    add_action('init', 'dante_product_tabs_override', 5);

    -Rui

    #311599
    flick00
    Member
    Post count: 6

    Hi Rui

    I continued to get the same result.

    Thanks

    Attachments:
    You must be logged in to view attached files.
    #311651
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    can you provide ftp details to have a look?

    -Rui

    #311664
    flick00
    Member
    Post count: 6
    This reply has been marked as private.
    #311923
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Thanks several stuff, even just to remove to check if the remove_action was working and it didn’t removed anything.
    Will forward to my colleague to see if he has any ideas about it.

    -Rui

    #312008
    David Martin – Support
    Moderator
    Post count: 20834

    Closing ticket as it appears you have switched themes.

    #312027
    flick00
    Member
    Post count: 6

    Hi

    I don’t switch the theme, is the same

    De Rosa

    Thanks

    #312312
    David Martin – Support
    Moderator
    Post count: 20834

    You had not update the code within the child theme. This is what I have added, it now works:

    function sf_nhood_tabs_below_image() {
        remove_action( 'woocommerce_single_product_summary', 'woocommerce_output_product_data_tabs', 35);
        add_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 10);  
    }
    add_action( 'init', 'sf_nhood_tabs_below_image', 100 );
    #312428
    flick00
    Member
    Post count: 6

    Thank you so much team

    See you soon

    #312430
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    No problem. Glad it’s sorted.

    -Rui

Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register