WordPress.org

Forums

HTML tag showing at the top of posts (12 posts)

  1. kathydtg
    Member
    Posted 4 years ago #

    Hi

    All of a sudden after I seems to be having a problem with H1 tag showing at top of a post. Also if I use a plugin it is showing the code on the post. It is only this blog I am having this problem but I do not know how to correct it. It seemed to happen on the 3.1 update I am now using 3.1.1 but still have the same problem. I do not have it on my other blogs

    [please use the 'code' button to mark even the smallest bit of code]

    It shows like this <strong> or <H1> then the title. The only way I seem to be able to get around it is by taking off the H1 or strong tags or drop it down the page. It only seems to happen at the top. Also I have just installed a plugin and the code for that is showing at the top of the post before the post itself
    [amzn_product_inline asin='B004JMZH3A']

    the url is here http://danthegardener.com/black-decker-18-inch-36-volt-cordless-electric-lawn-mower-cm1836-2/

    It is not just this new plugin as I was having the problem before like here where it is showing the strong tag http://danthegardener.com/black-and-decker-cm1936-19-inch-36-volt-electric-cordless-lawn-mower/
    I have just put up a new test page here I have backdated it so it is not showing on my home page. As you can see as soon as I wrap a tag around the word it is showing on the post. It only happens at the top of the post.

    http://danthegardener.com/tester/

    Many thanks for your help

    Kathy

  2. alchymyth
    Forum Moderator
    Posted 4 years ago #

    in 'tester', this is the section from the html in the browser:

    <p><<a href="http://danthegardener.com/SunforceSolarPanel" style="font-weight: bold; text-decoration: underline;" target="_blank" rel="nofollow" onmouseover="self.status='http://danthegardener.com/SunforceSolarPanel';return true;" onmouseout="self.status=''"></a>h1>tester
    </p>

    do you have any idea, where that 'solor panel' code is coming from?

    at least in the test post, this seems to be breaking the html code.

  3. kathydtg
    Member
    Posted 4 years ago #

    Hi

    Thank you so much for your reply

    I have no idea where it is coming from. I do have a link called
    http://danthegardener.com/SunforceSolarPanel to an amazon product. But this was a new post to show you the problem and all I did was add the H1 tag to the word tester

    Everything was fine until the update for 3.1.

    Is it something changed in a style sheet ?

    Thanks again

    Kathy

  4. LachlanM
    Member
    Posted 4 years ago #

    In your source code I can see this:
    <p><<a href="http://danthegardener.com/SunforceSolarPanel" style="font-weight:bold;text-decoration:underline;" target="_blank" rel="nofollow" onmouseover="self.status='http://danthegardener.com/SunforceSolarPanel';return true;" onmouseout="self.status=''"></a>h1>tester</h1>

    You can see after the p tag that ithas two << after it, and you can see the h1 tag is missing it's opening <

    Obviously the sunforce solar panel is breaking your code - because it is being inserted in the wrong place. It needs to cme before or after the h1. I'm guessing you may have added something to your theme, and put it in the middle of that opeing h1 tag?

  5. LachlanM
    Member
    Posted 4 years ago #

    note: the correct way for this to display would be:

    <p><h1>tester</h1>
    <a href="http://danthegardener.com/SunforceSolarPanel" style="font-weight:bold;text-decoration:underline;" target="_blank" rel="nofollow" onmouseover="self.status='http://danthegardener.com/SunforceSolarPanel';return true;" onmouseout="self.status=''"></a>

    Hope that helps - you can hopefully see that it is just that the < and the h1> are split.

  6. alchymyth
    Forum Moderator
    Posted 4 years ago #

    this has definitively nothing to do with any changes to a stylesheet.

    I do have a link called
    http://danthegardener.com/SunforceSolarPanel to an amazon product.

    that link seems to be in every single post.

    are you using a plugin for the amazon stuff?

    try to deactivate all plugins, and if this solves the problem, reactivate one after the other, to see which one is causing the issue.

  7. kathydtg
    Member
    Posted 4 years ago #

    Hi

    As far as I know I have not touched my theme only the make my header bigger which was done a few months back before I had this problem. I can see what you mean about the < tag. I have not actually inserted the http://danthegardener.com/SunforceSolarPanel into any template as it is only a affiliate link to an amazon product.

    I can see what you mean about it breaking the code but I do not know how to fix it, or which template to look at. I am using the readily theme from flexithemes.

    Thanks you again for your help

    Kathy

  8. kathydtg
    Member
    Posted 4 years ago #

    Hi

    Yes I have just installed an amazon plugin but the trouble started before a couple of weeks ago, but I will try to deactivate all my plugins and have a go.

    Thanks

    Kathy

  9. kathydtg
    Member
    Posted 4 years ago #

    LachlanM

    I can see what you mean but on the tester page the only thing I have added on that page was the word tester. In the html editor all that is showing is <h1>tester</h1>. I do not know how to correct the problem and why the link http://danthegardener.com/SunforceSolarPanel is being inserted automatically.

    thanks

    Kathy

  10. LachlanM
    Member
    Posted 4 years ago #

    As alchymyth, try deactivating all plugins.

    You can deactivate all at once, test and see if problem is resolved - if it is turn them on one at a time and test each time to see when problem occurs.

    If you turn off all plugins and the problem is still present, we'll have to go back to the drawing board.

  11. kathydtg
    Member
    Posted 4 years ago #

    Hi

    Ok I think I have found the culprit a plugin that does not seem to be compatable with the latest update. Many thanks for your help I have been going round in circles for days trying to sort this out.

    You have made me a happy girlie today

    Kindest regards

    Kathy

  12. LachlanM
    Member
    Posted 4 years ago #

    :) Happy Easter, Kathy

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.