t_bergman Posted February 22, 2013 Report Posted February 22, 2013 Does anyone know how to remove the site name in the page title? Thanks 1 Quote
josh90 Posted February 22, 2013 Report Posted February 22, 2013 In your layout file, there's probably a line similar to: <title><?php echo $page_title; ?></title> Remove the bits between the title tags and replace with what you wish. Quote
t_bergman Posted February 22, 2013 Author Report Posted February 22, 2013 Right, but I am only looking to remove the site name and not the page title. So if im looking at my profile the title is "Profile - Hemisphere Virtual Airlines". I am wonder how do I get it to only say "Profile"? Quote
flyalaska Posted February 22, 2013 Report Posted February 22, 2013 If you are talking about the title in custom pages, go to /core/templates/pages_content/tpl and remove <h1><?php echo $pagename;?></h1> Quote
t_bergman Posted February 22, 2013 Author Report Posted February 22, 2013 Which skin are you using? Its custom. If you are talking about the title in custom pages, go to /core/templates/pages_content/tpl and remove <h1><?php echo $pagename;?></h1> I am looking to remove it from the browser tab, my ultimate goal is to put a static title in <title> section in the <head> section of the layout.tpl file. and then use the dynamic page title on other parts of the skin. Quote
t_bergman Posted February 22, 2013 Author Report Posted February 22, 2013 Otherwise if there's a way to output only the page name, I've tried <?php echo $pagename;?> but that hasn't gotten me anywhere. Thanks for the help. Quote
Administrators simpilot Posted February 26, 2013 Administrators Report Posted February 26, 2013 In the main index.php file there are two lines that you can change depending what version of the template system you are using; $BaseTemplate->Set('title', MainController::$page_title .' - '.SITE_NAME); $BaseTemplate->Set('page_title', MainController::$page_title .' - '.SITE_NAME); Quote
t_bergman Posted February 26, 2013 Author Report Posted February 26, 2013 In the main index.php file there are two lines that you can change depending what version of the template system you are using; $BaseTemplate->Set('title', MainController::$page_title .' - '.SITE_NAME); $BaseTemplate->Set('page_title', MainController::$page_title .' - '.SITE_NAME); Thanks simpilot, I'll try this tonight and report back. Quote
BAW432 Posted January 13, 2016 Report Posted January 13, 2016 Does anyone know how to remove the site name in the page title? Thanks You answered my question and it works but somehow now it doesn't. For some reason once again it is showing the page titles. Quote
Moderators servetas Posted January 13, 2016 Moderators Report Posted January 13, 2016 $BaseTemplate->Set('title', MainController::$page_title .' - '.SITE_NAME); $BaseTemplate->Set('page_title', MainController::$page_title .' - '.SITE_NAME); Doesn't that help you? Quote
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.