• Tayfun

    (@tayfunkazanci)


    How can I use shortcode on brand archive page

    Also in flatsome theme, description is at the top of the brand, is there a way to get it to the bottom?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hello there,

    hope you are doing well ??

    The brand page is a taxonomy page, so you should search for the list of hooks available in a taxonomy page, and use one of them to add the shortcode you want.

    In order to set the brand description at the bottom of the page, please, add the following code to the functions.php file of your active theme:

    if ( class_exists( 'YITH_WCBR' ) && ! function_exists( 'yith_wcbr_move_brand_description' ) ) {
    	function yith_wcbr_move_brand_description() {
    		if ( version_compare( WC()->version, '2.7.0', '>=' ) ) {
    			remove_action( 'woocommerce_archive_description', 'woocommerce_taxonomy_archive_description' );
    		}
    
    		remove_action( 'woocommerce_archive_description', array( YITH_WCBR(), 'add_archive_brand_template' ), 7 );
    		add_action( 'woocommerce_after_shop_loop', array( YITH_WCBR(), 'add_archive_brand_template' ), 5 );
    	}
    
    	add_action( 'init', 'yith_wcbr_move_brand_description' );
    }

    Let us know any news, please.

    Have a nice day!

    Thread Starter Tayfun

    (@tayfunkazanci)

    I added the code you mentioned under the page.

    but looks active both at the top and bottom

    Plugin Author YITHEMES

    (@yithemes)

    Hi there,

    hope you are doing well ??

    We have tested the custom code in the Flatsome theme and it’s working as expected.
    Please, take a look here.

    We hope it helps you.

    Have a great day!

    Hi!

    Same problem as Tayfun.
    Storefront theme.
    The theme is configured to display the description of the products below.
    After adding the code, the description was duplicated under the products. And now there are two of them. (

    Have a nice day!

    • This reply was modified 3 years, 7 months ago by Koles.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘brand archive page description layout’ is closed to new replies.