Add background colour to left module?

GK User
Sun Jan 08, 2012 3:36 am
The modules in this template looks really bland is it possible to add background colour to left module?
Is it possible to add a backgound colour to a module on my website see attached

webiste: Click Here
User avatar
Senior Boarder

GK User
Mon Jan 09, 2012 2:20 pm
Hi,

You can add a suffix class for that module in its configuration page, let's say "mysuffix". Then use this css code to add a background for it:
Code: Select all
.mysuffix{
backbround: url("https://www.gavick.com/forum/download/file.php?avatar=258659_1322502298.jpg") repeat scroll 0 0 transparent;
}
User avatar
Platinum Boarder

GK User
Mon Jan 09, 2012 7:47 pm
Where exactly do I define this module suffix.
User avatar
Senior Boarder

GK User
Mon Jan 09, 2012 8:05 pm
Where exactly do I define this module suffix so that I can call it like entering _mysuffix in any module.
User avatar
Senior Boarder

GK User
Tue Jan 10, 2012 12:48 am
Put the code fragment in your override.css file and add the class to the module via Module > Advanced Options > Module Class Suffix [ field ].
User avatar
Expert Boarder

GK User
Wed Jan 11, 2012 11:23 pm
Thanks for the reply, I was unable to get this one working.
I added the following code and entered mysuffix to the field and still not seen the required change. All that happens is the border
around the module disappears.

This is what I did -
Added code to override.css and Custom CSS code filed in template manager & and enable override.css option in template settings
Place image mod-bg_image.jpg in the template directory: /templates/gk_finance_business/images

Code:
.mysuffix{
backbround: url('/templates/gk_finance_business/images/mod-bg_image.jpg') repeat scroll 0 0 transparent;
}


Image location:
The image is here: \templates\gk_finance_business\images\mod-bg_image.jpg
User avatar
Senior Boarder

Konrad M
Thu Jan 12, 2012 9:03 am
Hi
You have wrong patch to image in css, should be:
Code: Select all
Code:
.mysuffix{
background: url('../images/mod-bg_image.jpg') repeat scroll 0 0 transparent;
}

try this one
User avatar

GK User
Thu Jan 12, 2012 4:44 pm
Thanks for the reply
Tried it but it's still not working, I'm not sure why. I also tried it on another website (localhost) and it's still doing the same thing, all that happens is the border around the module disappears and that's it.
User avatar
Senior Boarder

GK User
Thu Jan 12, 2012 4:54 pm
Website Click here
User avatar
Senior Boarder

Konrad M
Fri Jan 13, 2012 10:22 am
Did you add sapce before suffix name in module settings ?
User avatar

GK User
Fri Jan 13, 2012 9:50 pm
Konrad M wrote:Did you add sapce before suffix name in module settings ?

Still not working, with and without the space. Will send PM
User avatar
Senior Boarder

GK User
Tue Jan 17, 2012 2:38 pm
Any update on this issue?
User avatar
Senior Boarder

Konrad M
Tue Jan 17, 2012 2:42 pm
Unfortunetly no. I didn't recieve any PM from you with access.
User avatar

GK User
Wed Jan 18, 2012 6:09 pm
PM sent. Please confirm receipt.

Thanks Much
User avatar
Senior Boarder

Konrad M
Wed Jan 18, 2012 11:17 pm
I ve got. I added rule to suffix in override.css and suffix to Search module.
User avatar

GK User
Thu Jan 19, 2012 2:46 pm
Konrad M wrote:I ve got. I added rule to suffix in override.css and suffix to Search module.

Thanks, but what about using background image instead of the hex colour code?

Image location:
The image is here: \templates\gk_finance_business\images\mod-bg_image.jpg
User avatar
Senior Boarder

Konrad M
Thu Jan 19, 2012 2:57 pm
I added rule for image in override.css but then I chcecked folder by ftp and there is no image in this location.
User avatar

GK User
Thu Jan 19, 2012 3:05 pm
Ok ignore last post. Finally got it working.
Thanks for the help :D
User avatar
Senior Boarder

Konrad M
Thu Jan 19, 2012 3:06 pm
I'm glad it is finally working ;)
User avatar


cron