Support » Plugin: All in One SEO Pack » WooCommerce Title for Shop Page

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

    (@wpsmort)

    Hi Melanie,

    Can you provide the URL for your store page.

    Plugin Contributor Peter Baylies

    (@pbaylies)

    Hi Melanie,

    The issue here is that WooCommerce makes the Shop page into its own product archive page; once it does this, All In One SEO Pack can no longer tell what the page was, which is why it isn’t able to display your title. Currently, you can customize this by adding a bit of code to your functions.php in your theme or to a plugin, like so:

    add_filter( 'aioseop_title', 'melanie_woocommerce_title'  );
    function melanie_woocommerce_title( $title ) {
    	if ( is_post_type_archive( 'product' ) ) {
    		return "My Product Page";
    	}
    	return $title;
    }
    
    add_filter( 'aioseop_description', 'melanie_woocommerce_description'  );
    function melanie_woocommerce_description( $description ) {
    	if ( is_post_type_archive( 'product' ) ) {
    		return "My Product Page Description";
    	}
    	return $description;
    }

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WooCommerce Title for Shop Page’ is closed to new replies.