Yes, I have copied this into my functions.php
add_filter (‘teccc_add_terms’, function () {
$ translated_terms = array (
‘atelier-cuisine-en-anglais’,
‘atelier-cuisine-en-espagnol’,
‘cooking-classes-in-english’,
‘cooking-classes-in-spanish’,
);
return $ translated_terms;
});
But it does not work, you can check.
Can you paste a screenshot of your Category Colors settings?
How can I send or paste a screenshot here?
You will need to use some paste board service.
You are using some sort of minify plugin for the CSS so I can’t really see what the plugin is generating.
Okey.
3 images:
one is the calendar in normal view browser, in spanish view calendar.
another is the calendar in incognit view browser (private), in spanish view calendar I don’t know why appears all categories.
and the last is color settings.
Now I don’t use the wpml code, it’s only the default settings, create categories, translate with WPML and apply colors.
https://ibb.co/xCzfnrh
https://ibb.co/Gv0HMR2
https://ibb.co/nLg58cP
Now I’ve added this code:
add_filter( 'teccc_add_terms', function(){
$translated_terms = array(
'tarckday',
'moto trackday',
'event',
'driving course',
'yielded track',
'off-road',
);
return $translated_terms;
});
and the colors disappear. Screenshot
https://ibb.co/xj6kCXP
I have disabled wp-rocket minify and cleared the cache.
Okey, this don’t works and the web is on production mode, I need resolve this.
I’ve eliminate the code with this:
add_filter( 'teccc_delete_terms', function(){
$translated_terms = array(
'Event',
'Moto trackday',
'Tarckday',
);
return $translated_terms;
});
But the categories remains, how can I eliminate it? thanks
I’m not really sure that I understand the issue. An explanation with corresponding images might be needed. I’m sorry I’m just not getting it.