Support » Fixing WordPress » change the title tag

  • Hi I just wonder how I tweak tht title tag in the header.php.

    I know to code some html, but PHP is like chinese to me. I’m a 100% php newbee.

    So In my title tag it says:

    <title><?php wp_title(”); ?><?php if(wp_title(”, false)) { echo ‘ :’; } ?> <?php bloginfo(‘name’); ?></title>

    What I want to accomplish is that I do not want the title of the site printed into the website itself. I have a websitelogo for that part.

    I only want it to be written in the traditional left upp corner where all brwosers write it. But not full blown in the website.

    What php code should be removed to get the result I want?

    Thanks in adavnce for the help.

    Kind regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • Your <title> tag does not actually display anything when viewing a web page, it puts the title in the title bar of your browser, that’s it.

    If you’re wanting to stop the title and tag from displaying on your page itself, it all depends on what theme you’re using. Themes that support default wordpress functionality allow you to go to Appearance > Header and upload a logo file, and there is also an option to hide the text.

    If something is hard coded into your header.php file, it will probably be inside a <div> tag with an id of header (most of the time anyways)

    Edit: Sorry I meant Appearance > Header, had logo on the brain =P

    If it’s not one of the default WordPress themes (Twenty Ten, Twenty Eleven) it might just be a case of customizing/commenting out some of the #site-tile references in the themes style sheet.

    Thanks for the feedback alieneila and ClaytonJames!

    Yes I am using a custom theme, not the standard shipped with wordpress..

    I’ll check it out further and see if I can get it to work after reading your info.. 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘change the title tag’ is closed to new replies.