Product tabs

Closed
REHub - Price Comparison, Affiliate Marketing, Multi Vendor Store, Community Theme REHub - Price Comparison, Affiliate Marketing, Multi Vendor Store, Community Theme October 27, 2018
Login to reply
Igor Sunz Support Agent
5 years ago
Closed due to inactivity.
Igor Sunz Support Agent
5 years ago

File inc/parts/ce_woo_blocks.php

You will find there some code like $tabs[...] and number which set order. You can replace number

Ranjeet Singh
5 years ago

https://optmobiles.com/intex-aqua-5-5-vr-analysis/

Igor Sunz Support Agent
5 years ago

As I wrote, it's depending on tab and product layout. Send link on page

Ranjeet Singh
5 years ago

I'm using WooCommerce default tabs & rehub generated tab. You can see this code is effecting only woocommerce tabs. 

Igor Sunz Support Agent
5 years ago

It's depending on tab. If you have custom tabs, you must check if content
is empty or not and if empty - unset tab. But I can't give you code as I
don't know what you do

Ranjeet Singh
5 years ago

I'm using code to custom product tabs order. 

add_filter( 'woocommerce_product_tabs', 'reordered_tabs', 98 );

function reordered_tabs( $tabs ) {

    $tabs['additional_information']['priority'] = 10; 

    $tabs['description']['priority'] = 20; 

    $tabs['reviews']['priority'] = 25;

 

    return $tabs;

}

This is working fine but there is a issue > if I'm leaving blank(no content) in any tab for any Product > then it is showing blank area for tab > https://prnt.sc/lb3d0z