• Resolved flammanj

    (@flammanj)


    I wonder if it is possible to manually add classes to the output of events in a list using a shortcode (I’m not talking about the single event view). In and older version of QEM I have observed that the year is wrapped in a class “year” and the title had “title”, while in a newer version these wrappers are gone or don’t have any class names.

    This makes it hard to style the output.

    Is there a file which I can edit to add some classes? In the configuration file I haven’t found anything so far. I haven’t found a documentation on how to retrieve single values either

    https://www.ads-software.com/plugins/quick-event-manager/

Viewing 3 replies - 1 through 3 (of 3 total)
  • This is on the list of things to do. If you would like to email me through the plugin website I can work with you to make sure all the classes are in place.

    And we can also fix the undefined indexes at the same time.

    Thread Starter flammanj

    (@flammanj)

    I’ve already contacted you, but this is for other people who might have the same needs as me.

    In quick-event-manager.php I found the lines where the string output is built.

    I changed line 550 from
    $bottom = $year
    to
    $bottom = '<span class="year">'.$year.'</span>';
    and now I have the year wrapped. It would be possible to wrap the day and month too this way.

    Next, on line 411 there is
    $content .= '<a href="' . get_permalink() . '"'.$target.'>' . $post->post_title .$titlecat . '</a>';

    here I added class=”title”, which gives the title link a class named “title”.

    There are lots of other places within the file where you could change the strings, but it takes some patience to find the exact place that fits your configuration.

    I’ve been in contact with flammanj and sent an update. Once we have got all the ids and classes in place the plugin will be prepared for update.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to add classes?’ is closed to new replies.