Is it possible, if an event has more than a single category, to set one of them as primary? Just like when you create a post? Right now it seems like the primary category is just the first one in line I choose from the category list. It's basically because I want to view the events in the color of a specific category.
It's alright, it was just in case I had missed something in the plugin, but great that you'll consider it for further development :)
Actually, I have another question. In another ticket you helped me with inserting the day in a box as well as fetching the category color. The ticket is called "Single Event fetch category color". I was just thinking if it's possible to translate that string? Like from "Monday" to "Mandag"? I've tried using the gettext() function and seaching through WPML, but I didn't manage to find it.
It almost works, it just keeps showing the day in english after the day - like "Thursday Thursday" and "Torsdag Thursday". I've done some trial and error in the code, but unfortunately didn't get that far.
Hello
Is it possible, if an event has more than a single category, to set one of them as primary? Just like when you create a post? Right now it seems like the primary category is just the first one in line I choose from the category list. It's basically because I want to view the events in the color of a specific category.
Thanks
Hi,
No, there's no built-in option for this currently. I'll make sure to add this option in the next version.
As a workaround I could write a script that will prioritize category colors but I'll need the ids of your primary categories.
Stachethemes Developer
Hi,
Thanks for your reply!
It's alright, it was just in case I had missed something in the plugin, but great that you'll consider it for further development :)
Actually, I have another question. In another ticket you helped me with inserting the day in a box as well as fetching the category color. The ticket is called "Single Event fetch category color". I was just thinking if it's possible to translate that string? Like from "Monday" to "Mandag"? I've tried using the gettext() function and seaching through WPML, but I didn't manage to find it.
Thanks in advance.
You will have to make some changes to the script I've sent you earlier:
Stachethemes Developer
Hello
It almost works, it just keeps showing the day in english after the day - like "Thursday Thursday" and "Torsdag Thursday". I've done some trial and error in the code, but unfortunately didn't get that far.
Yes, I noticed this too but I thought you've added it from somewhere else and didn't look further.
I'll take a look in a moment.
Stachethemes Developer
There was a duplicate of the code in hello-elementor theme functions.php file.
Should be ok now.
Stachethemes Developer
Thank you so much!