• Resolved aqdrk

    (@aqdrk)


    Hey guys,

    I installed Woo on a new WP site (Apache, cPanel, using Softacolous), activated the default Storefront theme, but I am having problems changing the shop title (in the browser tab – the name between <title></title>). Currently, this is a brand new install – no other plugins besides Woo, no customizations, etc.

    My Shop page is the default, also named Shop with slug “shop”. Set in WooCommerce > Settings > Products > Shop Pages > Shop Page > “Shop”

    However, instead of Shop (the title I see in the page editor), it is called “Products”. You can also see this on the official Storefront live demo here: https://themes.woocommerce.com/storefront/shop/

    When I set the permalinks to Plain, the Shop page’s URL becomes /?post_type=product and I guess this is where the “problem” comes from. Using pretty permalinks (/%postname%, no trailing slash) the page is /shop, but the title is once again “Products”

    I can’t find a way to change this to something custom, for example “My Store”.

    If I change the default “Shop” page in Woo settings to a different one, for example a brand new page I created called “Test Page” with slug “test”, the title when I open my.site/shop changes to “Shop”, but the page contents are empty (no product archive at all).

    I am not sure how else to troubleshoot this problem… I guess I’d be able to change it to what I want using Yoast, but IMHO that’s a workoaround, not a true solution.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Abiola Ogodo

    (@oaoyadeyi)

    @aqdrk

    I found the link below quite resourceful in changing the shop title:
    https://kb.oboxthemes.com/articles/how-to-i-change-the-shop-title-to-something-else/

    I hope this helps!

    Thread Starter aqdrk

    (@aqdrk)

    Thanks, I tried it, unfortunately it’s not working. However, I am not seeing “Shop” in the templates dropdown, but the name and slug are indeed Shop /shop and this page is set in Woo > Products

    Mirko P.

    (@rainfallnixfig)

    Hi @aqdrk,

    This would require customization, meanwhile, you can have a look at this article on how to change shop title in Woocommerce and see if the snippet works for you:

    https://www.techiecorner.com/3369/how-to-change-shop-title-in-woocommerce/

    If you do require more help with the actual coding, we’d recommend hiring a developer or one of the customization experts listed at https://woocommerce.com/customizations/.

    Thread Starter aqdrk

    (@aqdrk)

    Hello @rainfallnixfig,

    Thank you for the reply! Unfortunately, the snippet you linked didn’t work (I think it’s outdated), but I found one that does:

    function wc_custom_shop_archive_title() {
    if ( is_shop() ) { ?>
    <title>My New Shop Custom Title – My Site Title</title>
    <?php }
    }
    add_action( ‘wp_head’, ‘wc_custom_shop_archive_title’, 0 );

    However, I find that the easiest way is to use Yoast SEO (manipulating the meta tags on the page itself), especially if you use WPML or Polylang, because the above snippet requires further customization in order to make it work for multi-langual websites (but is perfectly OK for pages using a single language).

    Igor H

    (@ihereira)

    Glad to hear of this code that works for you.

    Thanks for letting us know.

    If you have any other questions, please feel free to post a new thread.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Cannot change Shop title ()’ is closed to new replies.