Changing background on ImageShow GK4

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Wed Oct 23, 2013 8:24 am
Reply with quote
Report this post
Hi,

I have the Startup template and I have 2 copies of the ImageShow GK4 on my site (homepage). Both in the same position, just different images in it. Now only one is activated at a time.
What I want to achieve is to have a different background image on each module, so whenever a different module is selected I get a different background - how do I do that?

I tried changing the Module suffix in the settings from nobg to nobg1 but it seems to be ignored (i've added #gkHeader.nobg1 to the css file which was a copy of #gkHeader.nobg with a link to image modified to show a new background but all that doesn't work).

Any ideas?
User avatar
Fresh Boarder

GK User
Wed Oct 23, 2013 8:38 am
Reply with quote
Report this post
Could You please post an url to your site?
User avatar
Moderator

GK User
Wed Oct 23, 2013 8:39 am
Reply with quote
Report this post
And please describe a method to view first and second module.
User avatar
Moderator

GK User
Wed Oct 23, 2013 8:58 am
Reply with quote
Report this post
I have 3 modules - 1 enabled and 2 disabled with different images. To change a module I simply disable the active one and then enable a different one initially disabled.
URL: http://trbchemedica.pl

Thank you!
User avatar
Fresh Boarder

GK User
Wed Oct 23, 2013 11:25 am
Reply with quote
Report this post
I've noticed a strange thing - when I change the Module suffix in the settings from nobg to something that doesn't start with nobg - for example blablabla and enable this copy of the module I get no background at all. I have the css file properly modified to have the class blablabla defined, so that's not the issue. When viewing the site in the inspector i get only an id tag, but no class for this item - when I switch back to original copy of the module, I can see both class and id. it behaves like it is missed when module suffix does not start with nobg...
User avatar
Fresh Boarder

GK User
Thu Oct 24, 2013 9:59 am
Reply with quote
Report this post
any ideas?
User avatar
Fresh Boarder

GK User
Thu Oct 24, 2013 5:42 pm
Reply with quote
Report this post
Ok, to sort things out ;)
1. You can add multiple suffixes in one line: "nobg myModule1" for example
2. When modules have different, unique suffixes, You can use override.css to attach background to them (from the thinks You wrote, it seems that You know how).
3. Changing name of suffix from nobg to nobg-1 makes classes corresponding to nobg not work, then You need to write classes for nobg-1.

If above is not enough, please write back, if itts possible, post all 3 modules at once, add to each a unique suffix and I'll be able to check whats wrong.
User avatar
Moderator


cron