Support Offline: Mon - Fri / 08:00am - 05:00pm (GMT +7)
Your Time: Our Time:

question-circle Individual Background Color for Classes per css class suffix

More
1 month 2 weeks ago #42181 by Marco Schmidt
Hi,
actually I use categories for class Background color in the time schedule. is there a way to add a css class suffix to the individual classes?
so that the class item style is" background color by address" ?
background to this. I have five classrooms which are now created as addresses. for example, if the course is in room 1 the background colour should be blue. in room 2 green, in room 3 yellow, and so on. The whole thing is independent of the catergories, which I want to continue to use as before. It would be enough for me to have a css suffix for the background colour, e.g. cr1 (classroom1) cr2, cr3, etc.

Please Log in or Create an account to join the conversation.

More
1 month 2 weeks ago #42184 by Jackie
Hi.
I have edited the source code to help you add the class-id to each class on the schedule. You can use that class to customize the style as you want. prnt.sc/yCR-vEw9butY
But it doesn't appear on the front end. I'm afraid have the cache on your site or server.
Please recheck it.
Regards.

Best regards.
Jackie Nguyen.

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago #42188 by Marco Schmidt
Thank you so much. But it dosen't appear on the front end also after clearing cache.
Maybe the problem ist view 'month' instead of 'week' ?
view-'.$params->get('default_view','month'). ' class-'. $item->id;

Please recheck it.
Regards

Please Log in or Create an account to join the conversation.

More
1 month 1 week ago #42190 by Jackie
Hi.
I have checked and added class-id to your schedule. prnt.sc/PpDlZf4tIeyQ
Now you can use the classname to style the class as you want.
Please recheck it.
Regards.

Best regards.
Jackie Nguyen.

Please Log in or Create an account to join the conversation.

Moderators: Jackie
Time to create page: 0.311 seconds
Powered by Kunena Forum