Steve75 Posted December 31, 2021 Share Posted December 31, 2021 (edited) How do I change the HTML page title, i.e. <title>the page title</title> of /store/shared-hosting ? i.e. I would like to make the title more SEO-friendly, by changing it to something like cPanel Hosting Australia - companyname. I note I have made similar changes in the past in header.tpl: {if $templatefile == 'homepage'} <title>Domain Name Sales</title> {else} <title>{if $kbarticle.title}{$kbarticle.title} - {/if}{$pagetitle} - {$companyname}</title> {/if} I guess I need to know if I can add a similar condition to test if the templatefile applies for the shared hosting. Edited December 31, 2021 by Steve75 0 Quote Link to comment Share on other sites More sharing options...
andrezzz Posted January 2, 2022 Share Posted January 2, 2022 Hello and Happy new year, Check this out, if it's what you're looking for! {if $templatefile == 'homepage'} <title>Domain Name Sales</title> {else if $templatefile == 'products'} <title>{$groupname} - {$companyname}</title> {else} <title>{if $kbarticle.title}{$kbarticle.title} - {/if}{$pagetitle} - {$companyname}</title> {/if} 0 Quote Link to comment Share on other sites More sharing options...
Steve75 Posted January 2, 2022 Author Share Posted January 2, 2022 Perfect, that fixed it, thank you. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.