WordPress.org

Ready to get started?Download WordPress

Forums

Events Made Easy
[resolved] Bad parsing from Event List Format (4 posts)

  1. devinmcinnis
    Member
    Posted 1 year ago #

    Right now I have an anchor tag to wrap all of my content:

    <li class="event-item">
      <a href="#_EVENTPAGEURL">
        <div class="event-wrapper">
          <div class="event-content">
            // content
          </div>
        </div>
      </a>
    </li>

    but it comes out looking like this:

    <li class="event-item">
      <a href="#_EVENTPAGEURL"></a>
      <div class="event-wrapper">
        <a href="#_EVENTPAGEURL"></a>
        <div class="event-content">
          <a href="#_EVENTPAGEURL"></a>
          // content
        </div>
      </div>
    </li>

    Unfortunately, I don't have a live example of this because I'm working locally right now. Thanks!

    http://wordpress.org/extend/plugins/events-made-easy/

  2. Franky
    Member
    Plugin Author

    Posted 1 year ago #

    This is not an anchor tag, but just a href (a link).
    Putting a whole div inside a link is not done.

  3. devinmcinnis
    Member
    Posted 12 months ago #

    This is not an anchor tag, but just a href (a link).

    What's not an anchor tag? It's an anchor tag with an href attribute (a hypertext anchor) unless I'm misunderstanding something.

    Putting a whole div inside a link is not done.

    I'm not sure what you mean by this; that's sort of my question. Anchor tags can semantically wrap a div tag so I'm wondering if there is a workaround/fix for this..?

  4. Franky
    Member
    Plugin Author

    Posted 12 months ago #

    a href="#_EVENTPAGEURL"
    ==> #_EVENTPAGEURL gets replaced by a url by EME
    ==> so "a href=..." becomes a regular link

    A anchor would be something like "a href="#myanchor". Putting a div inside a a-tag is not done, see http://docstore.mik.ua/orelly/web2/xhtml/ch06_03.htm
    Also: EME doesn't add html code or magically closes tags, so I'm guessing this gets added by your debug viewer upon html interpretation and you don't do a "view page source" inside the browser itself.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic