WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: My Calendar] Easy way to add class around each widget item e.g. {title}

[Resolved] [Plugin: My Calendar] Easy way to add class around each widget item e.g. {title}

  • cheeseslice
    Member

    @cheeseslice

    Hello all,

    I have just installed my-calendar and I am very impressed with it.

    For what I need I think I have to hardcode the ‘upcoming events’ shortcode into my widget theme as I want to use css to customise the look of each individual item of information i.e. Date, time and title.

    Is there an easy way to wrap each of these items in their own class? I was having a look through ‘my-calendar-output.php’ but I can’t quite see where I need to change the code.

    Is it possible to have the list output the events for each day without repeating the date if there are multiple events on a day?

    Thanks in advance

Viewing 1 replies (of 1 total)
  • Plugin Author Joe Dolson
    Participant

    @joedolson

    Adding classes around each item in the upcoming events is done in the template attribute. The upcoming events output is templated on the event level; so a simple example template might be

    <span class='title'>{link_title}</span>: <strong>{date}</strong>

    You can’t, however, avoid repeating the date using the upcoming events output.

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] [Plugin: My Calendar] Easy way to add class around each widget item e.g. {title}’ is closed to new replies.