Forums

HTML code showing up in my title bar and in hence Google search results (7 posts)

  1. leakbird
    Member
    Posted 1 year ago #

    Hi, how can I keep my actual HTML code from showing up in my Title tag? This is really irritating.

    Here's an example: http://naturopathguy.com/2011/01/01/to-vaccinate-or-not-too-vaccinate-naturopathic-doctor-tells-his-patients-not-to-vaccinate-is-this-the-right-thing-to-do-scienceblogs/

    Notice how "To Vaccinate or Not to Vaccinate" shows up like this...
    <b>To Vaccinate or Not Too Vaccinate</b>: <i>Naturopathic Do...

    Please help me! What code should I add to my header file in WordPress?

    Thanks, Ben

  2. govpatel
    Member
    Posted 1 year ago #

    That is picked from what you put in title in your post if you look at title on page its same code.

  3. leakbird
    Member
    Posted 1 year ago #

    So how do I change that code for title so that it deletes the html tags, just like it does on the post headers of each page?

  4. govpatel
    Member
    Posted 1 year ago #

    Do you have html code in Title of post just write the title normally no html code.

  5. leakbird
    Member
    Posted 1 year ago #

    Thanks, but I'm not sure I understand what you mean. I think it's because I'm an amateur (not a coder), so I'm having a tough time communicating what I need help with.

    So, I've formatted the titles of each of my blog posts, using <b>, <i>, <u>, et cet, when necessary. But I can't figure out what code I need in order to grab those titles and display them properly in the gray title bar above the rectangular search box where you enter URLs.

    The problem is that, while displaying properly on each page to head my content, in others, everything is correctly bolded, italicized or underlined, the title bar way up above the content is actually displaying the <b>, <i>, and <u> tags.

    I need the code to make sure this doesn't happen.

    Thanks.

  6. alchymyth
    The Sweeper
    Posted 1 year ago #

    how does your theme include the title,
    i.e. what is the code in header.php between the title tags:

    <title>WHAT IS HERE?</title>

    or are you using a seo plugin?

  7. leakbird
    Member
    Posted 1 year ago #

    I just deactivated my SEO plugin (Meta SEO Pack), and now everything displays correctly! Thanks!!

Topic Closed

This topic has been closed to new replies.

About this Topic