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

    (@afragen)

    Can you share the URL so I can see what you’re referring to?

    Thread Starter flcb

    (@flcb)

    It’s here – https://flcpa.org/calendar/

    Plugin Author Andy Fragen

    (@afragen)

    I’ll take a look and see if I can find the conflict and possibly a solution for you.

    Plugin Author Andy Fragen

    (@afragen)

    Can you give me an example of which event should have a different color?

    It would help if you provide a screenshot of your settings page.

    Thread Starter flcb

    (@flcb)

    Sorry – after I wrote our other editor changed the colors without my knowledge. I’ve changed it back – please see flcpa.org/calendar again.

    The grey entries should have grey font; the green border entries should be black font.

    You’re going to have to explain how to paste in a graphic of the screenshot without writing an actual email.

    Bernt

    Plugin Author Andy Fragen

    (@afragen)

    Try using https://pasteboard.co and paste the URL back here.

    Thread Starter flcb

    (@flcb)

    Plugin Author Andy Fragen

    (@afragen)

    OK, I see the problem. Your theme’s CSS is overriding the category link color.

    The solution is going to require 2 things.

    1. Download and install the develop branch of Category Colors, https://github.com/afragen/the-events-calendar-category-colors/archive/develop.zip

    2. Add the following code to your theme’s functions.php file

    add_filter( 'teccc_fix_category_link_color_complex', function( $empty, $cat_selector ) {
    	return '#top ' . $cat_selector . ' h3 a, ';
    }, 10, 2 );

    After the above you will need to refresh the CSS by adding ?refresh_css to the end of your calendar URL.

    Please test and let me know if it works. I can only do limited testing here. You will need to deactivate your existing Category Colors plugin too.

    Let me know if this works as I will push an update with these changes.

    BTW, the Hide checkbox will stop the plugin from creating CSS for those categories.

    Plugin Author Andy Fragen

    (@afragen)

    I’m going to adjust the filter teccc_fix_category_link_color to accommodate this. Use the following code in the next release.

    add_filter( 'teccc_fix_category_link_color', function( $empty, $cat_selector ) {
    	return '#top ' . $cat_selector . ' h3 a, ';
    }, 10, 2 );

    I have the same problem. My calendar is at https://fscbmwcca.com/events/ should I try the same resolution? I also am using a child theme.
    Thanks.

    Plugin Author Andy Fragen

    (@afragen)

    @fscbmwcca you’re going to have to tell me specifically which event should have which text color. It might be helpful to temporarily enable the legend in the Settings.

    I have a lot of categories, so it’s not enabled cause it looks bad. Here is a screenshot of the colors https://s10.postimg.org/6yyitti89/Calendar_Color_Codes.png
    I can get the specific colors hex values if you need them…

    Here is a test site with the legend turned on:
    https://fscbmwcca.com/fsc45/events/

    Plugin Author Andy Fragen

    (@afragen)

    Firstly here’s what I see. While you can assign multiple categories per event you can only have one category display is colorization. The only way to ensure which category is displaying is to Hide some categories.

    If you have multiple categories per event there must be a single category for colorizing. In the Settings, Hide the categories that are only for searching/organization. There is no need to set colors for hidden categories. Hidden categories may or may not be displayed in the legend.

    Once you’ve done this we should be able to see if there’s really a problem or if the event is just using CSS from one category and you’re expecting to see another category colors

    I have an option that let’s me select the primary category and thought that that’s the color it would use?

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘text color not working’ is closed to new replies.