WordPress.org

Ready to get started?Download WordPress

Forums

Make title of post into browser too!? (7 posts)

  1. Marius-
    Member
    Posted 5 years ago #

    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?

  2. iridiax
    Member
    Posted 5 years ago #

    Use this in header.php (replace your current title tag):

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

  3. Marius-
    Member
    Posted 5 years ago #

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

  4. scribblerguy
    Member
    Posted 5 years ago #

    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.

  5. Marius-
    Member
    Posted 5 years ago #

    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_ ?"

  6. Marius-
    Member
    Posted 5 years ago #

    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?

  7. iridiax
    Member
    Posted 5 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic