Page 1 of 1
background colour not changing
Posted: Tue Feb 04, 2014 9:43 pm
by sarsells
Hi
I have created a gallery at
http://www.bissonbears.co.uk/index.php/k2-blog
I am unable to change the background colour, despite having changed it in the control panel
Please can you advise?
Re: background colour not changing
Posted: Wed Feb 05, 2014 5:12 pm
by Vasiljevski
What exactly do you mean by background color?
The frame color around the thumbnails?
Re: background colour not changing
Posted: Wed Feb 05, 2014 5:38 pm
by sarsells
yes that is what I mean, and i assumed that in the ontrol panel where is gives the option for background colour, that is what it meant?
Kind regards
Sarah
Re: background colour not changing
Posted: Thu Feb 06, 2014 3:06 pm
by Vasiljevski
This is defined on the gallery template level, in your case classic template.
As I see default classic doesn't use background color parameter, so you should add it.
Open plugins/content/admirorgallery/admirorgallery/templates/classic/index.php and find this part:
Code: Select all
.AG_classic .ag_imageThumb {border-color:#' . $AG->params['foregroundColor'] . '}
.AG_classic .ag_imageThumb:hover {background-color:#' . $AG->params['highliteColor'] . '}
It should be line 25, and change it to this:
Code: Select all
.AG_classic .ag_imageThumb {border-color:#' . $AG->params['foregroundColor'] . '}
.AG_classic .ag_imageThumb {background:#' . $AG->params['backgroundColor'] . '}
.AG_classic .ag_imageThumb:hover {background-color:#' . $AG->params['highliteColor'] . '}
Now it will apply background color.
Re: background colour not changing
Posted: Thu Feb 06, 2014 3:51 pm
by sarsells
Thank you

that sorted it.
Is it possible to add css code somewhere to make the thumbnails have curved corners?
Re: background colour not changing
Posted: Thu Feb 06, 2014 4:43 pm
by Vasiljevski
In classic template folder, there is template.css you can use it to add changes you want.
You can also make your own template, copy classic folder, rename it, make changs to details.xml file and you can define your own template. Just an idea

Re: background colour not changing
Posted: Thu Feb 06, 2014 5:19 pm
by sarsells
Thank you once again. I don't think i will do anything too ambitious just now
