• Resolved projectmiso

    (@projectmiso)


    Hi,

    I tried to search to see if this is something that’s already discussed or requested. I didn’t find anything specific so I am submitting a forum request.

    We have several clients who would love to have the option to control the colors for Featured Events in the same way they control category colors.

    I know this plugin is specific to categories. However, would it be too far off to request the option to control the Featured Events colors?

    Please let us know if this is a feature request you can add to your plugin.

    Thanks in advance,
    Miah Morshed

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

    (@afragen)

    Can you provide an example? Can the featured event have it’s own category?

    It’s sorta out of scope for this plugin.

    • This reply was modified 6 years, 8 months ago by Andy Fragen.
    Thread Starter projectmiso

    (@projectmiso)

    I know, the featured events are not a category – as I mentioned in my original request. There is an option to mark an event as Featured from the admin Edit page.

    Once you do this, the category colors often either conflicts with the Featured Event style set by the main calendar plugin or is overridden. So, often times, the text color and the background color of the event title would be the same color or some other issue like that.

    If there was an option to set featured events with their own style through your plugin, that style could override any category styles, that way, we could ensure that the Featured style is set in a manner that does not mess up the display when there is also a category style.

    I have a screenshot here where there is a category with a dark red/maroon background and white text. But when one of them (on the 19th) is a featured event, the text color and background color becomes the same.
    https://clients.projectmiso.net/hcny/ScreenShot3.png

    Thank you,
    Miah

    Plugin Author Andy Fragen

    (@afragen)

    Thanks for the follow up. I’ll take a look and see if I can come up with a solution.

    Plugin Author Andy Fragen

    (@afragen)

    What would you like to see? Category Colors override the feature event or the feature event override Category Colors?

    Thread Starter projectmiso

    (@projectmiso)

    Andy,

    First, thank you for being open to this. It is a very good question as I can argue in favor of both equally. Some of our clients would want to show that an event is a Featured event and want that style to override the category styles. While other clients don’t care for the featured events to look different from its categories.

    I am not sure if you’d be happy by what I’d recommend, as it may affect the work you have to put in. Here are my recommendations.

    1. Add the option to set colors for featured events just like a category

    2. Overrides:
    2.a. There would be a dropdown, radio button or other selection control that will allow users to choose whether they want category styles to override featured styles or vice versa, OR
    2.b. Next the the Featured event style controls, you add a checkbox (or other UI control) to have it override category style. Have a label telling the user that if it is no selected/checked, category styles will take precedence if/when a category is present.

    I am also concerned about the additional styles (beyond just the title text and background colors) the Events Calendar plugin applies to featured events. You can take a look at month or list view to see what I am referring to. They also keep changing this style. Over the last one year, we have had to override their style about 4 times because of changes they released.

    Well, let me know your thoughts.

    Miah

    Plugin Author Andy Fragen

    (@afragen)

    Miah,

    I think I’ve found a compromise of sorts for featured events. On my local environment the default background color for a featured event is #0ea0d7.

    I’ve added a new preference to create a right border for featured events. Currently if there’s no background set the default featured event background persists otherwise the set category background is shown.

    The choices for the featured event border are ‘transparent’ or a color.

    This is in the develop branch.

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

    Let me know what you think.

    Thread Starter projectmiso

    (@projectmiso)

    Andy,

    Thank you for remembering this and working on it. You are amazing.

    I just tested it and it does the border on the right side, as you mentioned. I also noticed the following behaviors:

    – It keeps the category background and text color, over the featured event colors set by WordPress (parent plugin) default styling.
    – If no categories (with style) is assigned, the event does not show the Featured right border from your plugin, instead falls back on the WordPress (parent plugin) styles.

    Here is my question:
    Q. In absence of a category (with styles) assigned to an event, is there a way to set default featured event colors (background and text) through your plugin, in addition to the border, that would override the WordPress (parent plugin) defaults for featured events?
    Q. Is there a way to set whether Featured event styles set from your plugin can override the parent plugin default or the category styles or both?

    Miah

    Plugin Author Andy Fragen

    (@afragen)

    Miah,

    Setting the events colors (background and text) is the function of this plugin and requires a category. If no category is selected for an event then the default styling prevails.

    Would creating a “Featured Event” category and styling that category to the background, left border, and text color you want work. You could also use the new “Featured Event” border to further differentiate the visual.

    The default “Featured Event” styling is not completely overwritten. There are several places, like List View, where the default style is significantly different from normal category coloring.

    Fundamentally this plugin requires a category be assigned to an event for coloring to be applied.

    Andy

    Thread Starter projectmiso

    (@projectmiso)

    That makes sense. Thank you for looking into this.

    Miah

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Controlling styles for Featured Events’ is closed to new replies.