• Resolved minamo

    (@minamo)


    Hi,
    is it possible to show the brand description at the bottom of the brand page instead of the top?

    Thanks a lot!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor titodevera

    (@titodevera)

    Hi minamo.

    Yes, it is possible.

    1) Go to WooCommerce/Settings/Brands and disable “Show brand description” option for hide the default description.

    2) Add the code below to your functions.php

    
    add_action( 'woocommerce_after_shop_loop', 'pwb_custom_brand_description' );
    function pwb_custom_brand_description(){
    	$queried_object = get_queried_object();
    	if( is_a( $queried_object,'WP_Term' ) && $queried_object->taxonomy == 'pwb-brand' ){
    		echo '<p>'.$queried_object->description.'</p>';
    	}
    }
    

    Thanks for using PWB ??

    Thread Starter minamo

    (@minamo)

    This works perfect, thanks a lot!
    Can I even go further and ask:
    ist it posible to have the brand description at the top and an additional text field at the bottom of the page? I wolud like to display the Brand name and maybe a short description at the top and a loger seo text at the bottom.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show brand description at the bottom’ is closed to new replies.