WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] How to wrap each event in a div? (2 posts)

  1. sixfootjames
    Member
    Posted 1 year ago #

    Hi,

    I am using this in a post:
    <div class="home-event">[events_list limit="3"]<h2>#_EVENTDATES</h2> <br />#_EVENTLINK <br />[/events_list]</div>

    and then pulling this onto my home page to show three events.

    I had hoped that adding the <div> would wrape each event in it's own div when it loops through the every event, but this does not seem to be the case.

    How can I wrap each event in a div so that I can style each element without hacking into the plugin core? I'm concerned future updates of the plugin will break the layout then.

    Many thanks.

    http://wordpress.org/extend/plugins/events-manager/

  2. agelonwl
    Member
    Posted 1 year ago #

    try something like

    [events_list limit="3"]
     <div class="event-content">
      <h2>#_EVENTDATES</h2> <br />#_EVENTLINK <br />
     </div>
    [/events_list]

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic