• The text editor does not seem to allow putting a-tags outside of div-tags. If I try to do it, it gets altered upon saving the post/page. It’s probably because <div> is a block element and <a> is an inline element.

    Is there any way this could be done though?

    <a href="">
    <div></div><div></div><div></div>
    </a>
Viewing 1 replies (of 1 total)
  • Whenever I’ve had problems getting the HTML I wanted into the Page/Post Editor, I wrote a Shortcode to do it for me. If you are not up to writing a plugin to create the Shortcode, there are plugins in the Plugin Directory that allow you to create Shortcodes in an Admin panel.

    But first, you may wish to consider using <span> instead of <div>. Not sure it works for you, but it sure solved the same kind of problem that I had a few weeks back.

Viewing 1 replies (of 1 total)
  • The topic ‘Any way to put a-tags outside of div-tags?’ is closed to new replies.