New Landing How can we help? Atelier Is it possible to rename the SHOP page

Viewing 13 posts - 1 through 13 (of 13 total)
  • Posted in: Atelier
  • #167921
    westcoastsurf
    Member
    Post count: 210

    Hello, in all your themes you have a default ecommerce page named SHOP. Is there any way possible to rename this page to any thing else? Even through some functions routine or Option/setting field in the theme?

    As a photographer, I would love to have it changed to “Prints” or anything else besides “Shop”. There should be a variable we can customize to say anything we need in replace of SHOP. This link change should be reflected site wide in buttons like the “Return to Shop” which would go to the renamed shop page.

    So change
    http://www.domain.com/shop
    to
    http://www.domain.com/prints or http://www.domain.com/whatever

    Is there an easy way to do this that won’t be affected by future theme updates?

    It would be great to give us a little more freedom.

    Thank you very much.

    #167925
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please paste this code at functions.php of child theme.

    add_filter( 'woocommerce_page_title', 'woo_shop_page_title');
    
    function woo_shop_page_title( $page_title ) {
    	
    	if( 'Shop' == $page_title) {
    		return "My new title";
    	}
    }

    Thanks
    Mohammad

    #168035
    westcoastsurf
    Member
    Post count: 210

    I don’t want to just rename the title, I want to the URL to not be http://www.domain.com/shop

    So change
    http://www.domain.com/shop
    to
    http://www.domain.com/prints or http://www.domain.com/whatever

    #168057
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please go to Admin -> Pages -> Find this page and change to page slug.

    Thanks
    Mohammad

    #168178
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi @westcoastsurf

    If you check your shop page in Pages, you can see the permalink below the title, like this: https://www.dropbox.com/s/gcloxd2xp5mj6sr/Screenshot%202015-04-24%2013.19.12.png?dl=0

    If the structure is wrong, you’ll need to check your permalink settings in Settings > Permalinks.

    Hope that helps.

    – Ed

    #209822
    EmmeranR
    Member
    Post count: 10

    Hi,

    I tried the code you gave to change the Shop page’s name, but nothing happened.
    The page’s name still is Products Archive – “The name of my site”. How do I change that ?

    Thanks for your time 🙂

    #210033
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    Are you referring to the page title bar or the page title meta?

    – Kyle

    #210161
    EmmeranR
    Member
    Post count: 10

    Hi Kyle,

    I’m referring to the page title bar (the meta is ok with my SEO plugin).

    #210167
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    It will use whatever name you have set for the page, it doesn’t have to be ‘shop’

    – Kyle

    #210172
    EmmeranR
    Member
    Post count: 10

    I’m sorry but I don’t understand… The page in my browser shows as Products Archive, but the name I gave it is Shop (and I want it to be precisely “Shop – My site’s name”) but I can’t…

    #210448
    David Martin – Support
    Moderator
    Post count: 20834

    Hi @EmmeranR,

    Assuming you have YOAST SEO plugin installed. Please do this:

    SEO => Titles & Meta => Post Types => Custom Post Type Archives => Products => Title. Here you can change the Title to anything you need.

    Thanks,
    David.

    #211008
    EmmeranR
    Member
    Post count: 10

    Hi David Martin,

    That works, thank you !

    #211009
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Great. Thanks David.
    -Rui

Viewing 13 posts - 1 through 13 (of 13 total)

You must be logged in to reply to this topic.