WordPress.org

Support

Support » Plugins and Hacks » [Resolved] WooCommerce Title for Shop Page

[Resolved] WooCommerce Title for Shop Page

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Steve Mortiboy
    Support Manager at Semper Fi

    @wpsmort

    Hi Melanie,

    Can you provide the URL for your store page.

    melanie71
    Participant

    @melanie71

    Plugin Contributor Peter Baylies
    Participant

    @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;
    }
    melanie71
    Participant

    @melanie71

    Thank you!

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