Archived

This topic is now archived and is closed to further replies.

  • 0

custom color on page or post


Question

Posted · Report post

I would like to know how it is possible to change the background color as well as the font colors on a particularly page or post. Is it possible to assign color changes to a specific template so it can be used repeatedly? I use a black background with white type for my blog site and posts, but for longer essays, I would like a light background with a dark font.

 

http://www.randallpacker.com

Share this post


Link to post
Share on other sites

4 answers to this question

Posted · Report post

Hi there, yes all css will go into Pagelines>site options>custom code

Share this post


Link to post
Share on other sites

Posted · Report post

Thanks so much!

Share this post


Link to post
Share on other sites

Posted · Report post

Hi there,

 

Yes you can assign different colors and options to a page or post using page specific css. You'll need to use the class for the page or post if you're looking to do different colors for different sets in bulk. Ie all the posts blue etc.

 

 

.post {background: #000000;} 
 

 

 

Or to target a single page/post use the ID. An example of the code is below

 

.page-id-407 {background: #000000;} 

1 person likes this

Share this post


Link to post
Share on other sites

Posted · Report post

Thanks for the reply, sorry it took me so long to get back. Does the CSS need to go in the custom CSS field?

 

Thanks.

Share this post


Link to post
Share on other sites