• Hi,

    I am currently evaluating My Calendar as a replacement for Quick Event Manager (QEM, the plugin I used so far for event management). QEM produces accessibility errors (empty links) in the upcoming event list in the sidebar, thus my plan to replace the plugin.

    I have installed My calendar on my test site and played around with it. I am absolutely pleased with the look of the full calendar page, the features and the usability.

    However, the look of the upcoming events list in the right sidebar is not (yet) to my taste. The template 1 under Design->Templates is closest to what I’m looking for, but I’d appreciate some help to further customize it. I have read your documentation about all kinds of templates and how to adapt them, but I obviously did not understand what to do EXACTLY.

    If you look at my test page in the right sidebar, you can see the upcoming event list from QEM first (which is exactly what I want) and below the upcoming event list from My calendar using template 1. The necessary adaptations to the upcoming event list are:

    • Remove the link from event title (I don’t need an event detail page)
    • Event Title should be bold (instead of the location)
    • Add some spacing between events and within each event between Title, Time and location (it looks too dense currently)
    • Ideally: no rounded corners on the black icon with the date, i.e radius 0px

    I have examined the file structure with FileZilla, and also had a look at several files, but I could not find a file named template1 (or similar) that I could use as a starting point and modify. So my question is: where exactly do I need to make these changes? I’m not a developer, but if you could point me to the right place (ideally a css and not a php file), I might be able to figure out myself where I need to make the changes. But I don’t feel comfortable to create either php or css files from scratch.

    Thank you very much in advance!

    • This topic was modified 3 months, 4 weeks ago by dillhausen.

    The page I need help with: [log in to see the link]

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

    (@joedolson)

    I added some additional documentation about customizing list templates; hopefully that will help you.

    Thread Starter dillhausen

    (@dillhausen)

    Hi @joedolson

    thank you very much for the additional doc! However, I still did not succeed.

    I tried with the mc_preset_template filter:

    • I created a file named my_custom_filter.php and copied the php code below ‘Example in PHP’ into the file
    • I think I understand the code and feel comfortable to further customize it, but I didn’t know exactly where to place this file in order to make it effective. So I tried various locations, but none of them worked:
      • …/wp-content/themes/twentytwentyfour
      • …/wp-content/plugins/my-calendar
      • …/wp-content/plugins/my-calendar/my-calendar-custom

    Do I need to put it into another directory? Or do I need to ‘Enable PHP templating’ under Settings -> Display (I did not activate it so far, because I created a filter and not a template, correct?)

    I also tried with site-wide custom CSS (this would be my preferred method, because I used it successfully with other plugins). I tried the following in order to modify the datebadge to get 0px corners, but none of them worked:

    • .mc-group-1 {border-radius: 0px;} according to my understanding, there must be a dot followed by the class name (but as I said, I’m not a developer…), and this was the class name in your PHP code
    • .mc-date-badge {border-radius: 0px;} I found out about class mc-date-badge when I inspected the HTML code of my page
    • .mc-group-1 .mc-date-badge {border-radius: 0px;}

    I also tried to add some extra spacing between events with the following CSS, again without success:
    .mc-mc_upcoming_4 {padding-bottom: 50px}

    In addition, I have no clue how to remove something with custom CSS (in my case the strong tag on the location) and add spacings beween the lines …

    I did not use block-specific additional CSS, because according to my understanding there is no my-calendar specific block…

    Could you please be so kind and help?

    Thanks

    • This reply was modified 3 months, 3 weeks ago by dillhausen.
    Plugin Author Joe Dolson

    (@joedolson)

    Mostly, you need higher specificity on your CSS. You have to use a specificity equal to or higher than the original specificity. For the padding CSS, however, what you’ve used is event-specific; that will only impact the event with ID 4.

    Event padding, try:

    .mc-event-list.upcoming-events li { padding-bottom: 50px }

    Border radius, try:

    .mc-event-list .list_preset_1 .mc-date-badge { border-radius: 0; }

    Without seeing what you did with your custom filter, I can’t tell you exactly where to put it, but generally speaking your choices are either 1) add the function to your theme’s functions.php file, or 2) add a plugin header and place it in the plugins directory at /wp-content/plugins/.

    Thread Starter dillhausen

    (@dillhausen)

    Hi @joedolson

    thanks for your continued support!

    With regards to the custom CSS: your padding suggestion works, but the CSS for the radius on the badge did not work. But after some more experimenting, I figured out that

    .mc-event-list.upcoming-events .list_preset_1 .mc-date-badge { border-radius: 0; }

    now works!

    However, in order to remove the link from the event title, I still need to add the php code for the new filter somewhere. I placed it at the end of TT4’s function.php, but it crashed my website. I also added it at the end of my-calendar.php in directory …/wp-content/plugins/my-calendar, but there it also crashes my site.

    I copied the code 1:1 from the documentation you provided. The good news is, that the code is now being executed, but it must contain an error somehow, because it crashes my site.

    Error message from wordpress (in a mail I received):   error of type E_PARSE: syntax error, unexpected identifier “mc”

    Could you please have another look?

    Thanks

    • This reply was modified 3 months, 2 weeks ago by dillhausen.
    Plugin Author Joe Dolson

    (@joedolson)

    If the page crashed, that means there’s something wrong with the code you added. If you can share that snippet, it would be helpful.

    There was a typo in the example on that page; I’ve now fixed it.

    Thread Starter dillhausen

    (@dillhausen)

    @joedolson Thank you so much! The code now works fine and I have already adapted it to my liking.

    There is only one thing left, and I noticed it only when the first events from October showed up: The date badge displays the month in English, although the site language is set to German, e.g. it displays “Oct” or “Dec” instead of “Okt” or “Dez”. On the full page My Calendar grid view, it displays the month name correctly in German, e.g. “Oktober”. Do you know how to correct that?

    Thank you

    Plugin Author Joe Dolson

    (@joedolson)

    That was a missing call to date_i18n in the date badge function; now fixed! I’m releasing a minor update today, so it’ll get shipped later today.

    Thread Starter dillhausen

    (@dillhausen)

    @joedolson

    I really appreciate your continued support! However, after the update, the badge is now completely messed up, see the lower right sidebar here. There must be something wrong with the implementation of the new call…

    Plugin Author Joe Dolson

    (@joedolson)

    Yep; that’s on me. Updating the plugin now.

    Thread Starter dillhausen

    (@dillhausen)

    Thank you so much!!! Now you nailed it!

    Thanks to your great support, I will now remove QEM from my production site and replace it with My Calendar….

Viewing 10 replies - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.