Home Forums WoodMart support forum product tabs

product tabs

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #665932

    medshow37
    Participant

    “I want to place the ‘Review’ tab as the last tab and the ‘About Brand’ tab just before it on the single product page.”

    #666115

    Hung Pham
    Keymaster

    Hi medshow37,

    Thanks for reaching to us and appreciate your patience.

    Try to use the code below instead of yours. Define the code in the functions.php file in your child theme.

    /**
     * Reorder product data tabs
     */
    add_filter( 'woocommerce_product_tabs', 'woo_reorder_tabs', 98 );
    function woo_reorder_tabs( $tabs ) {
    
    	$tabs['reviews']['priority'] = 5;			// Reviews first
    	$tabs['description']['priority'] = 10;			// Description second
    	$tabs['additional_information']['priority'] = 15;	// Additional information third
    
    	// Custom Tabs are from Product Settings
    	// $tabs['wd_custom_tab']['priority'] = 2; 
    	// $tabs['wd_custom_tab_2']['priority'] = 3;
    
    	// Additional Tabs are from Theme Settings
    	// $tabs['wd_additional_tab']['priority'] = 4;
    	// $tabs['wd_additional_tab_2']['priority'] = 5;
    
    	return $tabs;
    }

    Regards,
    Hung PD

    #666322

    medshow37
    Participant

    How i control about brand tab priority? I want it before the last tab immediately

    #666488

    Hung Pham
    Keymaster

    Hi medshow37,

    About Brand is custom tab, so please double check my provided codes.

    Kind Regards,
    Hung PD

    #666600

    medshow37
    Participant

    There are 4 codes:

    $tabs[‘wd_custom_tab’][‘priority’] = 2;
    // $tabs[‘wd_custom_tab_2’][‘priority’] = 3;

    // Additional tabs are from theme settings
    // $tabs[‘wd_additional_tab’][‘priority’] = 4;
    // $tabs[‘wd_additional_tab_2’][‘priority’] = 5;

    Which one exactly controls the brand tabs?

    Second issue: After I added your code in functions.php and didn’t fill it, it created an empty space on the product page between the tabs. See attached image and link.

    Attachments:
    You must be logged in to view attached files.
    #666885

    Hung Pham
    Keymaster

    Hi medshow37,

    Thanks for your patience.

    To assist you in the best possible manner, I kindly ask that you please provide me temporary wp-admin info (wp-admin URL, username, password) to the Private Content area, this will allow me to thoroughly investigate and address your concerns more efficiently.

    Best Regards,
    Hung PD

    #667128

    medshow37
    Participant

    Ok

    #667131

    medshow37
    Participant

    Its also make spaces in desktop version

    #667173

    Hung Pham
    Keymaster

    Hi medshow37,

    1. I fixed the issue, you can take a look functions in child theme.

    2. There is a spacing due to you don’t want to display attributes on product page, check this checkbox and it will appears again https://ibb.co/ymyjJyHK

    Best Regards,
    Hung PD

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