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

  1. sixfootjames
    Posted 3 years ago #


    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.


  2. agelonwl
    Posted 3 years ago #

    try something like

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Events Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic