wish pagetitle in browser title bar

neue medienordnung plus
  last edited: Thu, 01 Jun 2017 11:43:31 +0200  
I inserted with
[template]zen[/template]

[region=htmlhead]
[block][var=wrap]none[/var]pagetitle[/block]
[/region]

my wish pagetitle as pagetitle block. But yet contains the webpage two <title>-tags:
1. <title> - </title>
and
2. <title>my wish pagetitle</title>

In the browser title bar will be displayed  the 1. title value. How can I put my wish pagetitle in the browser title bar?

@Hubzilla Support Forum+ #pagetitle #wishpagetitle #browsertitlebar
Andrew
  
If you look at /view/php/zen.php you see that the zen template has three customizable content blocks:

<!DOCTYPE html>
<html prefix="og: http://ogp.me/ns#">
<head>
  <title><?php if(x($page,'title')) echo $page['title'] ?></title>
  <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1">
  <?php if(x($page,'htmlhead')) echo $page['htmlhead'] ?>
</head>
<body>
   <?php if(x($page,'content')) echo $page['content']; ?>
</body>
</html>


See if you can discover how this file is used to render the webpage using the zen template in its layout. Hint: start in /Zotlabs/Module/Page.php, the file that is invoked when you request https://hub.freecommunication.org/page/...

In the process you will find how the title is specified.
neue medienordnung plus
  
Yes, it works ;-).

#title #metatag #titletag #comanchetitle