Shape 5

Joomla Templates => New Vision - Club => : slyce March 21, 2013, 01:36:01 PM



: Article Background
: slyce March 21, 2013, 01:36:01 PM
Hi,

In the demo it states that you can set a white background for an article. How do I go about doing this?


: Re: Article Background
: mikenicoll March 21, 2013, 10:25:44 PM
Hello,

You can just add a background call to the component like this:

Just add this in the template.css

#s5_component_wrap_inner {
    background: none repeat scroll 0 0 #ff0000;
}

-Mike


: Re: Article Background
: slyce March 22, 2013, 09:43:24 AM
I added it to template.css but nothing changed at all.


: Re: Article Background
: mikenicoll March 22, 2013, 07:52:06 PM
Hello,

I tested this locally and it is working. You can try this instead:

Add To Bottom of Template.CSS

#s5_component_wrap {
background: #ff0000 !important;}

-Mike


: Re: Article Background
: slyce March 24, 2013, 08:40:30 AM
I tried this too, and still nothing happened at all. I am working from a fresh site shaper installation


: Re: Article Background
: mikenicoll March 24, 2013, 10:20:03 PM
Hello,

I tested this locally and it works fine. I have made this modification on more than one site without any issues. The odds are your not entering the coding correctly or it isn't being saved properly.

-Mike


: Re: Article Background
: slyce March 25, 2013, 09:55:15 AM
Ok, I got both options to work by manually adding the code to the css file instead of using the Joomla css editor.

It doesn't look as nice nice as the one in the demo though, which appears to have some padding and a border. I am referring to the page titled "Template Specific Features" in the demo, where it says "OPTIONAL BACKGROUND FOR COMPONENT/ARTICLE AREA".

Is there a simple way to replicate it?


: Re: Article Background
: mikenicoll March 25, 2013, 02:59:22 PM
Hello,

If you just want a white background just go to:

Template Manager > Template Specific > White Background For Component Area > Yes

-Mike


: Re: Article Background
: slyce March 26, 2013, 11:13:35 AM
Can't believe I missed that!  ???

Thanks for your help!


: Re: Article Background
: mikenicoll March 26, 2013, 04:40:00 PM
NP :)

-Mike