Forums

can't enter meta tags in header.php, crashes (5 posts)

  1. UnsungHero
    Member
    Posted 2 years ago #

    I'm new to this so bare with me:

    1. I downloaded the header.php file to my pc using filezilla.
    2. I opened it in notepad and entered the meta tags under
    <title><?php bloginfo('name'); ?><?php wp_title(); ?></title /> or similar.

    when saving the file, it changed into one big paragraph, no layout just line after line, this caused hell with my wordpress blog, i couldn't even access it.

    I repeated step 2 but this time i put it underneath the stylesheet code, it did the same thing again.

    Could it possibly be down to my permissions when downloading in filezilla? the permissions for header.php was 644 when i downloaded it.

    thanks for any help.

  2. alchymyth
    The Sweeper
    Posted 2 years ago #

    change the closing tag to: </title>:

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

  3. UnsungHero
    Member
    Posted 2 years ago #

    Thanks for the reply alchymyth, i changed the title tags but it still didn't work.

    Anyone know what else i could do? or is there a plugin that might save
    me changing the header file for meta tags and meta descriptions?

  4. Samuel B
    moderator
    Posted 2 years ago #

  5. alchymyth
    The Sweeper
    Posted 2 years ago #

    post you header.php here and someone might indicate where to put the meta tags.
    http://www.w3schools.com/TAGS/tag_title.asp

Topic Closed

This topic has been closed to new replies.

About this Topic