• Resolved AkshayRao27

    (@akshayrao27)


    Hi, I really like your plugin and it’s working quite nicely. I would like to know how to perform some design tweaks, though!

    1. How do I reorder the event info that’s displayed? I would like to display the event title first, followed by the event description and the time at the end.

    2. Is it possible to change the font size of the event description and event time separately?

    3. How do I sort events by category?

    4. I would like to show the times slots where nothing is happening but I want the timetable to span only from 8 am to 11 pm. How do I do this?

    • This topic was modified 6 years, 10 months ago by AkshayRao27. Reason: Another question added
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor motopress

    (@motopress)

    Hi @akshayrao27,

    1. You can replace that information by overriding templates of plugin. For example you can copy file

    \wp-content\plugins\mp-timetable\templates\shortcodes\event-container.php
    to
    \wp-content\themes\your-theme-folder\mp-timetable\shortcodes\ and edit the file to override default one.

    2. Following hint above you can apply custom styles to change font style of description and time.

    3. At the moment you can filter the timetable by categories by adding shortcode of timetable of each category and placing them on different pages or tabs. if you select using Tabs you would need third party plugin that allows to place tab object.

    4. You can add shortcode of timetable were all rows are displayed (empty rows are not hidden) and hide unnecessary hours by CSS code. Each row has it own class like ‘mptt-shortcode-row-0’ so you can add code to hide it:

    .mptt-shortcode-row-0{
    display:none;
    }

    It will be hidden for all timetables. In case you need to hide different rows for certain table you can add custom class to timetable shortcode and add it before mptt-shortcode-row-0.

    Thank you for your feedback.

    Thread Starter AkshayRao27

    (@akshayrao27)

    Thanks a lot for the reply. Unfortunately, I am still a beginner and I’m having a bit of trouble navigating the php file.
    1: I need the details in this order: Time Slot Description, Event Title, Event Time. Would moving the block

    if ( $params[ 'description' ] && ! empty( $item[ 'description' ] ) ): ?>
    <p class="event-description"><?php echo $item[ 'description' ]; ?></p>
    <?php endif;

    to before the entire block starting with
    <?php if ( $params[ 'title' ] ) {
    work?

    2: Could you elaborate on how I can do this? I don’t know how to go about it ??

    3: Unfortunately, this doesn’t work for my use-case. I did find a different solution though (which is why I asked questions 1 & 2). I can use the “event title” as a kind of “category” and use the time slot description as the actual event title. Then, visitors can filter events by what is “event title” on the back end (so e.g. “Breaks”) and then see different time slots with different titles (which are actually event descriptions on the back end, so e.g. “lunch break”, “coffee break”, etc)! ??

    4: Ooh, this would work nicely, thank you!

    • This reply was modified 6 years, 9 months ago by AkshayRao27. Reason: Formatting
    • This reply was modified 6 years, 9 months ago by AkshayRao27.
    Plugin Contributor motopress

    (@motopress)

    Hi @akshayrao27,

    I’m sorry for a delay.

    1. Yes, you should place the code you selected in previous reply after <?php and before this line

    if ( $params[ 'title' ] ) {

    2. In the same file you override you can add add your custom class for description paragrapgh <p class="event-description"> e.g. <p class="event-custom-description">
    After that add CSS for your custom class to Appearance>Customize>Additional CSS or to style.css file of your child theme e.g.

    .event-custom-description{
    color:#846cec;
    font-family:Verdana;
    font-size:20px;
    }
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How do I reorder info, sort by category & hide timeslots?’ is closed to new replies.