WordPress.org

Forums

Anchor around a div (3 posts)

  1. apertureboy
    Member
    Posted 7 years ago #

    Hi

    I need to wrap an anchor around a div:

    <a href="#"><div id="pause">Pause</div></a>

    But when I save, WP removes the div from inside the anchor and closes the anchor, then places the duplicates the anchor and wraps it inside a div.

    <a href="#"> </a>
    <div id="pause"><a href="#">Pause</a>

    Ive tried hacking kses.php but I suspect its in the tinymce - anyone know how to solve this?

    Thanks

    Rob

  2. moshu
    Member
    Posted 7 years ago #

    tinymce is NOT for typing code. Period.
    Turn it off if you want to use your own code in a post content. Do NOT switch between visual/code - turn it off definitely in your profile.

  3. powerkor
    Member
    Posted 6 years ago #

    mine is replacing my links with _blank and rel=nofollow even though its just an anchor link further down the page.. please help

    I turned off the visual editor in my profile and still this hasnt made a difference.

    Its opening a new window on every click... causing the page to reload again.

    help.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.