ASGrant on "[Plugin: The Events Calendar Category Colors] Category Colors showing up in Events Calendar Filter Bar"

ساخت وبلاگ

I am using the Category Colors plugin along with Filter Bar.

Category colors are showing up in the Event Filter. I’ve tried tuing on/off various options but can’t tu off the colors. Is there a work-around?

My calendar is private so I can't post a link to the page, but the screenshot can be found here:

http://www.cgiadvertising.com/category-colors-filter-bar.jpg

Thanks for any help.

https://wordpress.org/plugins/the-events-calendar-category-colors/

Thanks for the screenshot. I was trying to colorize all areas where categories existed but after not really looking at it for a while I can see where it can be distracting.

Are you comfortable Idea out a line?

Hi Andy
I'm ok Idea out some of the code but would like to do it in a way that will persist thru any updates to your terrific plugin. Is there some code I can add to the child theme I'm running?

If you want it might be simpler to install the develop branch of the plugin. I've removed that code and think I'll probably leave it out in the next release.

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

Let me know if it does works for you. I'll release it soon.

Hi Andy. No change. The colors still appear in the filter bar.

Here's what I did:
I downloaded the develop branch plugin.
Unpacked the zip file
Deactivated the original plugin (version 4.4.5)
Moved the original plugin to a "hold" folder on the server
Uploaded the new plugin, and verified it's version 4.4.5.3
Activated 4.4.5.3
Emptied browser cache
Reloaded my calendar and the colors still appear in the Filter Bar

Perhaps the code isn't removed in 4.4.5.3?

Also, I reverted to 4.4.5 after I saw no change to the behavior.
Happy to comment out the code in 4.4.5 since you're going to remove it in a future release.

One more question:
The categories are centered over the calendar. Can you provide CSS that can align them to the left?

Hmmm. That branch has all the filter bar specific code removed. Anything that remains is specific for the remainder of the views. I don't have a current version of Filter Bar to test with. I'm sorry but not sure I can do much else.

As for left aligning the legend, please check out the FAQ link to the wiki. You will find an action hook is available to adjust the legend CSS, teccc_add_legend_css

I'll see if I can get the latest Filter Bar and report back here.

BTW, you can see the commit changes here, the filter bar code was removed. ;)

https://github.com/afragen/the-events-calendar-category-colors/commit/4a81e27805bf2a991fba990598e06b9134acf416

What version of the Filter Bar plugin are you using? I'm testing with Filter Bar v4.2.1 and the category list is a dropdown list that has no coloring. If you have the category list as a checkbox then the coloring shows.

Even without specific CSS to target the checkbox it still has the selector to colorize.

Perhaps the solution is to use the dropdown selector?

I'm using 4.2.1 too.

I can't use the dropdown because my users will need to target multiple filters. I'll take a look at your other links tomorrow when I get back to my desk.

Thanks for your great response time.

Have you tried the legend superpowers? When enabled, if you click on a category in the legend all other categories will fade out.

@ASGrant, the CSS may still be cached. Can you add ?refresh_css to the end of your calendar URL. In my testing v4.4.5.3 works.

http://cl.ly/0c0n1I23160Y

BTW, to left align the legend just add the following to your theme's functions.php

add_action( 'teccc_add_legend_css', function() { echo '#legend_box { text-align: left; }'; });

ASGrant
Member
Posted 51 seconds ago #

You were right. css was still cached. ?refresh_css worked.

Added the code to left-align the categories. Works great.

Thanks again for your support.

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 212 تاريخ : سه شنبه 15 تير 1395 ساعت: 18:36