- Posts: 4
- Thank you received: 1
Article Background color
-
vicramz
Inactive member - Topic Author
- New Member
Less
More
10 years 5 months ago #40537
by vicramz
Article Background color was created by vicramz
I'm trying to change the background color for the content section. Clearly, it's possible, given that each of the pre-determined styles have a different background color.
But, I can't seem to find anywhere to change the background for articles in the custom style.
Any help would be appreciated.
Thanks
vicramz
But, I can't seem to find anywhere to change the background for articles in the custom style.
Any help would be appreciated.
Thanks
vicramz
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
10 years 5 months ago #40544
by ivan.milic
Replied by ivan.milic on topic Article Background color
If you want to just change bg color of all articles add to template_css.css:
.content_sparky {
background:red!impotant;
}
If you want to control bg for each article one way is to define alternative article layouts , but that is complicated operation not for this forum , if you need that you will have to do it your self by looking in joomla dev spec or pay us for custom job.
Easy workaround but only if you want to change background on single article page is to set "Page Class" in menu item pointing to that article (in "Page Display" tab of menu item settings).
For example 'your_page_class'
Then you can add in template_css.css:
.your_page_class .content_sparky {
background:red!impotant;
}
.content_sparky {
background:red!impotant;
}
If you want to control bg for each article one way is to define alternative article layouts , but that is complicated operation not for this forum , if you need that you will have to do it your self by looking in joomla dev spec or pay us for custom job.
Easy workaround but only if you want to change background on single article page is to set "Page Class" in menu item pointing to that article (in "Page Display" tab of menu item settings).
For example 'your_page_class'
Then you can add in template_css.css:
.your_page_class .content_sparky {
background:red!impotant;
}
Please Log in to join the conversation.
-
vicramz
Inactive member - Topic Author
- New Member
Less
More
- Posts: 4
- Thank you received: 1
10 years 4 months ago #40578
by vicramz
Replied by vicramz on topic Article Background color
Thank you for your prompt reply.
I'm assuming that the phrase "red!impotant" is the color to be specified. Can it be defined by hexidecimal number?
And, I'm assuming that "impotant" is not a typo for "important".
Again, thanks for your help.
I'm assuming that the phrase "red!impotant" is the color to be specified. Can it be defined by hexidecimal number?
And, I'm assuming that "impotant" is not a typo for "important".
Again, thanks for your help.
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
10 years 4 months ago #40585
by ivan.milic
Replied by ivan.milic on topic Article Background color
Yes replace red I put as example with any color you want in hex, rgb or rgba notation
Please Log in to join the conversation.
-
vicramz
Inactive member - Topic Author
- New Member
Less
More
- Posts: 4
- Thank you received: 1
10 years 4 months ago - 10 years 4 months ago #40588
by vicramz
Replied by vicramz on topic Article Background color
I do appreciate your help, but I'm not having any luck at all.
I'm trying to change the content area background from orange to a maroon (#800000).
I placed the code you suggested in the css.template_css.css file, saved, and clicked Preview Template.
When I do so, I'm taken to the front page of the site. I navigate to a content page, and the color is still orange. No change.
I explored the styles.css files, and in each one, there is a command in the following syntax:
.sparky_inner .content_sparky {
background:#0096d9;
}
where #0096d9 corresponds to the article background color.
But, using this code in template_css.css produces no change.
However, when I change this color code in the style2.css file, and then save, and then select style 2 for the site, I get the maroon I'm looking for.
So ... how do I use the "custom template feature" to get the maroon article background I need, and still get the other changes I want to make the the template style?
Thanks for your help.
Vic
I'm trying to change the content area background from orange to a maroon (#800000).
I placed the code you suggested in the css.template_css.css file, saved, and clicked Preview Template.
When I do so, I'm taken to the front page of the site. I navigate to a content page, and the color is still orange. No change.
I explored the styles.css files, and in each one, there is a command in the following syntax:
.sparky_inner .content_sparky {
background:#0096d9;
}
where #0096d9 corresponds to the article background color.
But, using this code in template_css.css produces no change.
However, when I change this color code in the style2.css file, and then save, and then select style 2 for the site, I get the maroon I'm looking for.
So ... how do I use the "custom template feature" to get the maroon article background I need, and still get the other changes I want to make the the template style?
Thanks for your help.
Vic
Last edit: 10 years 4 months ago by vicramz.
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
10 years 4 months ago #40601
by ivan.milic
Replied by ivan.milic on topic Article Background color
Style.css ? Are you talking about wordpress?
If you meant
styles/style<X>.css
you can just edit that file
If you meant
styles/style<X>.css
you can just edit that file
Please Log in to join the conversation.
Time to create page: 0.224 seconds