WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
Provide semantic, css-stylable markup (4 posts)

  1. Mark
    Member
    Posted 2 years ago #

    I'm trying to customize some aspects of Events Manager and running into limitations of the html markup used.

    For instance the Date/Time column on an events page contains just TDs with undifferentiated date and time information:

    <td><br />
    05/10/2012 - 09/10/2012<br />
    00:00 -00:00<br />
    </td>

    This makes it impossible to adjust the style of either the date or the time independently; it also makes it impossible to hide either using CSS.

    Proposal: use sth like the following:

    <td>
    <span class="em_date">
      <span class="em_startdate">05/10/2012</span> - <span class="em_enddate">09/10/2012</span>
    </span>
    <span class="em_time">00:00 -00:00</span>
    </td>

    This is an example for date and time with an event that spans multiple dates, but event name and location have the same problem. E.g. currently location is simply hardcoded in <i>
    tags without any semantic indication of what it is, placing it out of reach for users who want to customize how events are displayed.

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

  2. agelonwl
    Member
    Posted 2 years ago #

    Hi,

    you can use EM settings > Formats/Layouts to change some formatting or customized the EM templates

    http://wp-events-plugin.com/documentation/using-template-files/
    http://wp-events-plugin.com/documentation/

  3. Mark
    Member
    Posted 2 years ago #

    Aha, great! Might I suggest though that the default markup be more semantic?

    Anyway, this has me run into a next problem: the field doesn't appear to accept characters like en-dash or em-dash (–, —).

    For instance, the date part of the format/layout is currently like this:
    #_{d/m/Y} #@_{- d/m/Y}

    If I try to change the dash separator there to an en-dash, the template is not parsed correctly and the second date is not outputted. At first I thought that I might need to set this in the "date separator" field, but it looks like whatever I set there is not filtering through to the date format in event listings.

  4. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    will improve the matching on that in next update

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic