Hidden Categories Displaying 7.3.1 Update
-
We reverted to version 7.3.0 so fix this issue, but when we upgrade to 7.3.1, the hidden categories still display on the calendar page.
The page I need help with: [log in to see the link]
-
Can you share a screenshot of your settings and a URL of where it looks broken?
Thanks.
Screenshot
Hiding categories is only meant to hide, or not display, any associated CSS. The categories still exist and so are listed in the legend.
If you don’t want to display those categories anywhere this may help, https://github.com/the-events-calendar/the-events-calendar-category-colors/wiki/Ignoring-One-or-More-Categories
I suggest making a one off plugin for this. An example, https://github.com/afragen/category-colors-options/
I apologize, there is something broken. I’m looking into it.
I think I found the issue.
Can you change line 43 in
src/Category_Colors/views/legend.php
from<?php if ( isset( $options['show_ignored_cats_legend'] ) ) : ?>
to
<?php if ( ! empty( $options['show_ignored_cats_legend'] ) ) : ?>
Let me know if that works.
That worked but not as you indicated. Also there was no directory
src/Category_Colors/views/
The “views” directory was under../src/
I copied that over inside of “Category_Colors” and it fixed the error
Awesome, thanks for the follow up!
This should be in the next release.
My client’s website has the same issues where ALL the categories appear over the calendar- incuding the ones we’ve specifically coded to appear here in this file:
public_html/wp-content/themes/HudsonValley-Child/tribe-events/teccc
<?php
namespace Fragen\Category_Colors;
use Tribe__Events__Main;
//$options['terms'] =
$teccc->setup_terms( $options );
?>
<div id="legend_box" class="teccc-legend">
<ul id="legend">
<?php
$teccc->terms = array(
17 => array(
0 => 'workshops',
1 => 'Workshops'
),
24 => array(
0 => 'readings',
1 => 'Readings'
),
25 => array(
0 => 'hvwc-recurring-events',
1 => 'HVWC Recurring Events'
),
26 => array(
0 => 'special-events',
1 => 'Special Events'
)
);I ALSO tried editing the code you mentioned on line 43 of the file:
rc/Category_Colors/views/legend.php
no luck.
I rolled back one version- no luck either.Here is the website calendar:
Hi @prodesignwv
Thanks for your confirmation and I’m glad that it is now working.
If you have a minute, a great review from you would be amazing!
https://wordpress.org/support/plugin/the-events-calendar-category-colors/reviews/
Can Anyone help me with my issue?
Can you install all the changes in https://github.com/the-events-calendar/the-events-calendar-category-colors/pull/161/files and let us know the results?
I do not see any change at all.
All code changes were implemented and rechecked again.@wendy32 do you see any errors or console errors?
Where would I look for these?
- You must be logged in to reply to this topic.