WordPress.org

Support

Support » How-To and Troubleshooting » Make title of post into browser too!?

Make title of post into browser too!?

  • Is it possible to do this?
    My website has a fixed browser headline which is static all the time. When people search on google and get my site, all they get is the same old static header.

    Is it possible to make a post headline pop up there instead?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Use this in header.php (replace your current title tag):

    <title><?php bloginfo('name'); ?><?php wp_title(); ?></title>

    iridiax thanks but it didnt work, all i get is the URL in there instead.
    Have a look

    Check the code of your header.php. The opening tag of the title element is missing a “<” —
    title>reager.no &raquo; Barbaren ute av buret</title>

    When in doubt, validate.

    Oops sorry my bad, thanks again. Do you know how long it will take before google starts snapping up my headlines instead of my past static title?

    Also, one more question. Is it possible to make only the headline appear as title? Not “reager.no >> _headline_ ?”

    I found out that in the settings you can enter the title of your website there. Perhaps it is possible to enter a code there like <?php wp_title(): ?> ?
    Or will that fuck everything up?

    Don’t use code in your blog name in the Dashboard settings. To control and customize my titles, I use the SEO Title Tag plugin.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Make title of post into browser too!?’ is closed to new replies.