WordPress.org

Ready to get started?Download WordPress

Forums

Browser Title Troubleshooting (6 posts)

  1. peterlunglum
    Member
    Posted 5 months ago #

    Hi all,

    I am trying to put together the PHP for assembling the sections of my wordpress blog but have run into the silly problem of being unable to get the title to display in the browser above. What php code do I need between the <title> </title> tags in my header php to get this to appear in my wordpress?

  2. peterlunglum
    Member
    Posted 5 months ago #

    <html <?php language_attributes(); ?>>
    <!--<![endif]-->
    <head>
    <meta charset="<?php bloginfo('charset'); ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="<?php bloginfo('description'); ?>">
    <meta name="author" content="">
    <title> Peter Lum Blog </title>
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" /> 
    
    <link href='http://fonts.googleapis.com/css?family=Cabin:700,400italic,400,700italic' rel='stylesheet' type='text/css'>
    <!--<link href="boilerplate.css" rel="stylesheet" type="text/css">-->
    <link href="<?php bloginfo('stylesheet_url'); ?>" rel="stylesheet" type="text/css">
    <!--
  3. peterlunglum
    Member
    Posted 5 months ago #

    That is currently what is in the <head> of my header php.

  4. peterlunglum
    Member
    Posted 5 months ago #

    I also forgot to mention, as it is, my blog just says untitled document in the browser. I want it to say the name of the blog or what I choose to be there.

  5. peterlunglum
    Member
    Posted 5 months ago #

    Also, is this rectified in the header php, index php, or in the styles css?

  6. brocheafoin
    Member
    Posted 5 months ago #

    Use wp_title().

Reply

You must log in to post.

About this Topic