Support » Plugin: The Events Calendar Category Colors » Cat Colors in List View

  • Resolved Dean

    (@collabora)


    Hi Andy,

    I disabled background colors and enabled border colors for my events. Its working in grid view, but in list view I am just getting a gray (default?) border for all categories. When Background was enabled the color was working correctly.

    Thanks,
    Dean

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

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Andy Fragen

    (@afragen)

    By any chance are you using a custom template for the event in the list view?

    Thread Starter Dean

    (@collabora)

    Not that I am aware of. My theme is Enfold and I think they have some of their own integration

    Plugin Author Andy Fragen

    (@afragen)

    I should be able to take closer look tomorrow.

    Plugin Author Andy Fragen

    (@afragen)

    It seems the enfold child theme is overriding the border color on line 3434.

    .main_color .tribe-events-single ul.tribe-related-events li,.main_color .tribe-week-grid-block div,.main_color .tribe-events-grid .tribe-grid-content-wrap .column,.main_color .tribe-events-loop .tribe-events-event-meta,#top .main_color .tribe-events-list-event-title.entry-title,#top .main_color .tribe-events-list-event-title,.main_color #tribe-events-content table.tribe-events-calendar,.main_color #tribe-events-content .tribe-events-calendar td,body .datepicker.dropdown-menu,#top .main_color .tribe-events-tooltip,.main_color .recurring-info-tooltip,.main_color .vevent.tribe-events-photo-event .tribe-events-photo-event-wrap,body .datepicker table,body .datepicker table td,body .datepicker table th,#top #tribe-mobile-container .hentry.vevent,.main_color .tribe-events-venue .tribe-events-venue-meta,.main_color .tribe-mini-calendar-dayofweek,.main_color .tribe-mini-calendar td,.main_color .tribe-mini-calendar th {
        border-color: #e1e1e1;
    }
    Plugin Author Andy Fragen

    (@afragen)

    Try adding the following filter.

    
    add_filter( 'teccc_fix_category_background_color', function( $empty, $cat_selector ) {
        return '#top .main_color ' . $cat_selector . ' h3.tribe-events-list-event-title, ';
    }, 10, 2 );
    
    Thread Starter Dean

    (@collabora)

    Sorry, but no change

    Plugin Author Andy Fragen

    (@afragen)

    It doesn’t look like the filter is in place.

    Plugin Author Andy Fragen

    (@afragen)

    Can you clear any caches?

    Plugin Author Andy Fragen

    (@afragen)

    I think the browser is caching the old CSS. Not sure how to clear it.

    Plugin Author Andy Fragen

    (@afragen)

    I’ve built in a cache buster when with the query arg for refreshing the CSS.

    Try it out in the develop branch if you wish to test it for this problem.

    https://github.com/afragen/the-events-calendar-category-colors/archive/develop.zip

    Add refresh_css as a query arg to the calendar URL. This means you will need to preface this with either a ? or a & depending upon if other query args exist in the URL.

    Thread Starter Dean

    (@collabora)

    I was able to clear all caches manually — Litespeed, cloudflare, browsers — and it finally came up. But not right away, it was stubborn. Side effect: Background appears better also. Its narrower and font seems more centered, but I may be imagining that.

    Thanks!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Cat Colors in List View’ is closed to new replies.