Jump to content

Remove Sitename in page title


t_bergman

Recommended Posts

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.

Link to comment
Share on other sites

  • Administrators

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);

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 2 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...