Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Valdinia

    (@valdinia)

    In the mean time I found the solution for point 1:
    I copy and modified the function woocommerce_page_title() (Located at includes/wc-template-functions.php)into my child theme’s functions.php

    Thread Starter Valdinia

    (@valdinia)

    Plugin Author YITHEMES

    (@yithemes)

    Hi Valdinia,

    I’m sorry for my very late response ??
    I hope I can still help you with some useful informations

    1. Instead of defining your own woocommerce_page_title() you should use the provided filter woocommerce_page_title, that let you change the title without changing WC default behaviour

    This is an example of how it should be used

    if( defined( 'YITH_WCBR' ) && ! function_exists( 'yith_wcbr_change_brand_page_title' ) ) {
    	function yith_wcbr_change_brand_page_title( $title ) {
    		global $wp_query;
    
    		if( is_tax( YITH_WCBR::$brands_taxonomy ) ){
    			$title .= ' ' . __( 'products', 'yith_wcrb' );
    		}
    
    		return $title;
    	}
    	add_filter( 'woocommerce_page_title', 'yith_wcbr_change_brand_page_title' );
    }

    2. I think this is a good resource, and you can implement it. Thank you for sharing it with us ??

    Hop this helps
    Have a nice day

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘modify the archive page title and add the brand logo’ is closed to new replies.