t_bergman Posted February 22, 2013 Report Share Posted February 22, 2013 Does anyone know how to remove the site name in the page title? Thanks 1 Quote Link to comment Share on other sites More sharing options...
josh90 Posted February 22, 2013 Report Share 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 Link to comment Share on other sites More sharing options...
t_bergman Posted February 22, 2013 Author Report Share 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 Link to comment Share on other sites More sharing options...
josh90 Posted February 22, 2013 Report Share Posted February 22, 2013 Which skin are you using? Quote Link to comment Share on other sites More sharing options...
flyalaska Posted February 22, 2013 Report Share 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 Link to comment Share on other sites More sharing options...
t_bergman Posted February 22, 2013 Author Report Share 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 Link to comment Share on other sites More sharing options...
t_bergman Posted February 22, 2013 Author Report Share 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 Link to comment Share on other sites More sharing options...
Administrators simpilot Posted February 26, 2013 Administrators Report Share 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 Link to comment Share on other sites More sharing options...
t_bergman Posted February 26, 2013 Author Report Share 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 Link to comment Share on other sites More sharing options...
t_bergman Posted February 27, 2013 Author Report Share Posted February 27, 2013 Worked perfectly. Quote Link to comment Share on other sites More sharing options...
BAW432 Posted January 13, 2016 Report Share 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 Link to comment Share on other sites More sharing options...
Moderators servetas Posted January 13, 2016 Moderators Report Share 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 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.