OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
Different colors for the categories in gallery (0 viewing) 

Joomla Gallery Support

Go to bottom Favoured: 0

Different colors for the categories in gallery

Flordesol (User)
Fresh Boarder
Posts: 11
graphgraph
User Offline Click here to see the profile of this user
Different colors for the categories in gallery 2 Years, 1 Month ago
Karma: 0  
Hello,
I would like to assign different colours to the different categories within a gallery, so that each category has a different colour. How can I address the categories to do this?

Thanks!

It's done. It was a chaching problem!!
Logged Logged
Last Edit: 2022/03/09 14:04 By Flordesol.
The administrator has disabled public write access.
Flordesol (User)
Fresh Boarder
Posts: 11
graphgraph
User Offline Click here to see the profile of this user
Re:Different colors for the categories in gallery 2 Years, 1 Month ago
Karma: 0  
I'm sorry, it's not solved yet!!!

Please tell me how I can assign different colours to the category names. Thank you!
Logged Logged
Last Edit: 2022/03/09 14:48 By Flordesol.
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 8243
graph
User Offline Click here to see the profile of this user
Re:Different colors for the categories in gallery 2 Years, 1 Month ago
Karma: 101  
Hello

You have so way.
You need use joomla gallery shortcode

For 1 gallery you use some:
Code:

<div class="gal_color_1">
{short code for first gallery}
</div>



For 2 gallery you use some:
Code:

<div class="gal_color_2">
{short code for first gallery}
</div>



and in your template CSS file
you need add:
Code:


.gal_color_1
{color: red; }
.gal_color_2
{color: green; }



Regards
0rdaSoft team
Logged Logged
The administrator has disabled public write access.
Flordesol (User)
Fresh Boarder
Posts: 11
graphgraph
User Offline Click here to see the profile of this user
Re:Different colors for the categories in gallery 2 Years, 1 Month ago
Karma: 0  
Hi, thanks for your answer, but with this I'm not able to give the categories different colors.
I want one gallery with the category-tabs an the discription of the category has to have different colors.

Thanks!
Logged Logged
The administrator has disabled public write access.
VlaDOS (Admin)
Admin
Posts: 133
graphgraph
User Offline Click here to see the profile of this user
Re:Different colors for the categories in gallery 2 Years, 1 Month ago
Karma: 3  
Hello. At the moment, there is only one way to set a different color, for different categories.
Open the developer panel. Then inspect the desired element. Find a line like '<a href="#cat-1" id="cat-11_1201986370" class="tab-click-loadMore active" title="" data-cat-id="1" data-end="5">Category Title</a>'.
In the CSS file you insert the code:
body [class^=os-gallery-tabs-main] .osgalery-cat-tabs li a[data-cat-id="1"]{
background: red;
}
Where data-cat-id="1" is the data-cat-id of the found string.
Logged Logged
The administrator has disabled public write access.
Flordesol (User)
Fresh Boarder
Posts: 11
graphgraph
User Offline Click here to see the profile of this user
Re:Different colors for the categories in gallery 2 Years, 1 Month ago
Karma: 0  
Hi,
thanks, that helped!
Logged Logged
The administrator has disabled public write access.
Go to top
»