Home Forums WoodMart support forum Brands as Caruzel on header Reply To: Brands as Caruzel on header

#220573

Sintarta
Participant

Hello..
to fix the headers brands i made a different blocks with static tables and brands photo.
Im using Woody snippets plugin and add a php_snippet shortcode to header builder.
So far so good.
Snippet works ok, but my problem is when change page or product category page, needs a f5 refresh to show the correct brands block on header.

The Snippet:

if ( is_product() && has_term( 'accessories', 'product_cat' ) || is_product_category( 'accessories' ) ) {
        echo '[html_block id="7776"]';
    } 
elseif ( is_product() && has_term( 'gynaikeia-rouxa', 'product_cat' ) || is_product_category( 'gynaikeia-rouxa' ) ) {
        echo '[html_block id="7688"]';
    } 
elseif( is_product() && has_term( 'papoutsia', 'product_cat' ) || is_product_category( 'papoutsia' ) ) {
        echo '[html_block id="7769"]';
	}
elseif( is_product() && has_term( 'tsantes', 'product_cat' ) || is_product_category( 'tsantes' ) ) {
        echo '[html_block id="7774"]';	
    } 
else {
       echo '[html_block id="7688"]';
    }

What im doing wrong?

Thanks anyway