Error when hiding a Hyperlink in HTML-tags

  • Tigeryoshi

    #4450

    Hello,

    On my website I tried to hide an hyperlink with HTML-Tags. If I do this, an error will occure: The widget box of the sidebar will move into the article where the hided text would be when it was displayed.

    For example this code would manupulate the webpage:

    <!--
    <a href="http://www.khairul-syahir.com">http://www.khairul-syahir.com</a>
    -->

    A code without Hyperlink like this has no effect on the rest of the page:

    <!--
    http://www.khairul-syahir.com
    -->
    Mod

    Kenneth John Odle

    #28242

    Moved to Support.

    I’m not quite sure what you want to do here. You really shouldn’t be editing the theme’s core files, if that is what you are doing.

    Tigeryoshi

    #28243

    No, I just wanted to say the developers that this error occurs, when I write this code in the HTML-Editor of simple Pages and Articles.

    Mod

    Kenneth John Odle

    #28244

    I’m sorry, I don’t quite understand what you are trying to accomplish here. You mean that you are using the HTML editor, and you are including a link, but then commenting it out? In that case, why are you including the link? Why not just leave it out?

    Anonymous

    #28245

    This is not a Graphene error, it is how WordPress works. I think it has to do with how WordPress “auto formats” HTML.

    I have a plugin that cancels out WordPress forcing these auto formats… However if your site is well developed it would not be a wise move to install that plugin… you would have to update every page.

    I did however find this on the WordPress support forums:

    http://wordpress.org/support/topic/cant-comment-out

    The last comment seems to work:

    It's a pain to have to do this, but enclosing your comment
    within the code tag seems to work. It may not validate,
    or be technically correct, but it works:

    <code><!-- commented out text here --></code>

    So for your example this should work:

    <!--
    <a href="http://www.khairul-syahir.com"><!-- http://www.khairul-syahir.com --></a>
    -->
Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

Do NOT follow this link or you will be banned from the site!