• Resolved 2dawgs

    (@2dawgs)


    Hi Joe,

    We are trying to create a future events ticker on our front page that shows the next few upcoming events with each one displayed side-by-side in a bootstrap row.

    I created a template to display the event information inside separate columns in the row – here’s the content of that template:

    <div class="col col-sm-6 space-bottom col-md-2">
    	<p><strong>{date}</strong></p>
    	<p>{title}</p>
    </div>

    Then the shortcode is the only thing enclosed in the row tags.

    <div class="row text-center">
    	[my_calendar_upcoming template="2ac046556c0bf0e0c7f1a57af508400f" after="5" show_today="yes" type="event" order="asc"]
    </div>

    The problem is, My Calendar is inserting line tags (

    • ) between the row tags and the column tags, so it will not display precisely as specified by the template and page content.

      What can I do to get rid of the line tags?

      Thanks in advance!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Joe Dolson

    (@joedolson)

    I assume you’re talking about the unordered list element and the list item tags.

    Those can be removed using filters: ‘mc_event_upcoming_before’, ‘mc_event_upcoming_after’ for the <li> elements, and ‘mc_upcoming_events_header’ and ‘mc_upcoming_events_footer’ for the <ul> elements.

    Thread Starter 2dawgs

    (@2dawgs)

    Sorry, yes, I meant to say “list”, not “line”. And I see I also forgot to format my example of the tags as code. You’re a pretty good mind reader. ??

    Thanks very much for the info!

    Thread Starter 2dawgs

    (@2dawgs)

    Can you provide a little more detail as to how these filters are applied? I searched the documentation and can’t find anything applicable there.

    Thanks!

    Thread Starter 2dawgs

    (@2dawgs)

    Never mind, I figured it out. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Line tags inserted between page content and template’ is closed to new replies.