• Resolved dianahellonextstep

    (@dianahellonextstep)


    Hi,

    We like the border effect for the daily events, but for the multi-day ones, it will look way better with the whole background in the same color.

    Is that an option that the plugin offers?
    If not, could you please point me to the right direction on achieving this through css style rules?
    I tried inspecting but I haven’t found the rule that actually adds the bg color to the multi-day event bg.

    Also, if you check the page, we have the legend showing, but when switching the view to List instead of calendar, it doesn’t appear. Any idea on how to make it visible for both?

    Thanks so much,
    Diana

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

Viewing 1 replies (of 1 total)
  • Thread Starter dianahellonextstep

    (@dianahellonextstep)

    OK, figured out both things:

    For the list, found it in the documentation + browsing the forum:
    Adding this to the functions.php

    if ( class_exists( ‘\\Fragen\\Category_Colors\\Main’ )){
    teccc_add_legend_view( ‘list’ );
    }

    As for the background color for the multi-day events, I’m basically overwriting the rule and adding a set of style rules based on the category.
    If you’re applying this code, note that you’ll have to inspect the legend and replace my category here “office-closed-to-public” for yours.
    Hardcoding in the stylesheet the same value that was applied to the Category Colors settings, so for instance:

    .tribe-events .cat_office-closed-to-public .tribe-events-calendar-month__multiday-event-bar-inner{
    background-color: #bd3a41;
    }

Viewing 1 replies (of 1 total)
  • The topic ‘Background color only for multi-day events’ is closed to new replies.