aliaspt Posted November 3, 2010 Share Posted November 3, 2010 OK, my question may sound weird. Let me try to explain. I added extra text to the shop name in the back office (Preferences > Contact> Shop Name) for SEO purposes, but now that whole long line also appears in e-mails that are sent to customers. Is there any way to make that long name appear only in the browser? I attached an image of what I mean.Thanks! Link to comment Share on other sites More sharing options...
aliaspt Posted November 4, 2010 Author Share Posted November 4, 2010 I figured that I need to edit the meta title for index.php but now this meta title appears before the shop name. Any way to make the shop name appear first and then the meta title? Link to comment Share on other sites More sharing options...
rocky Posted November 4, 2010 Share Posted November 4, 2010 See here. Link to comment Share on other sites More sharing options...
aliaspt Posted November 4, 2010 Author Share Posted November 4, 2010 Rocky, thanks! It's funny but it appears that 1 year ago it was different in PrestaShop and they changed it to Meta Title - Shop Name in later versions. Had to change it back to Shop Name - Meta Title. Link to comment Share on other sites More sharing options...
rocky Posted November 4, 2010 Share Posted November 4, 2010 It does make more sense to me to have title - shop name, since then if you have multiple tabs open for a shop, you can see which page each is instead of seeing just your shop name for all of them. Link to comment Share on other sites More sharing options...
aliaspt Posted November 4, 2010 Author Share Posted November 4, 2010 Oh, I didn't think of it from that perspective. Gotcha. It just appeared weird that the shop name is in the end when the home page is open. The home page was the only concern for me - not other pages. Is it possible to edit that just for the home page? Thanks, Rocky. Link to comment Share on other sites More sharing options...
rocky Posted November 4, 2010 Share Posted November 4, 2010 I'm not sure of the best way to do that. I guess you could override the metatitle in code. Try changing line 4 of header.tpl in your theme's directory from: <title>{$meta_title|escape:'htmlall':'UTF-8'}</title> to: <title>{if $page_name == 'index'}{l s='Shop Name'}{else}{$meta_title|escape:'htmlall':'UTF-8'}{/if}</title> Link to comment Share on other sites More sharing options...
aliaspt Posted November 4, 2010 Author Share Posted November 4, 2010 It does override it but I wanted to change the order to Shop Name - Meta Title. Sorry if I was confusing. How do I make the meta title appear after the shop name just on the home page? Link to comment Share on other sites More sharing options...
rocky Posted November 4, 2010 Share Posted November 4, 2010 I can't see any specific function just for the homepage, which is why I am doing it this way. Try: <title>{if $page_name == 'index'}{l s='Shop Name - Meta Title'}{else}{$meta_title|escape:'htmlall':'UTF-8'}{/if}</title> Link to comment Share on other sites More sharing options...
aliaspt Posted November 4, 2010 Author Share Posted November 4, 2010 Ahhh, sneaky! Looks right now. Hopefully, it will work for SEO, too. Thanks a bunch, Rocky! Link to comment Share on other sites More sharing options...
Recommended Posts