Active
Project:
Forest Floor
Version:
6.x-1.7
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
12 Apr 2010 at 16:53 UTC
Updated:
10 Jun 2015 at 01:38 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Anonymous (not verified) commentedComment #2
Deepika.chavan commentedHi,
A. If you want to give bg-color to main- content of each page, please try this :-
A-1. Add following function in forest_floor's template.php file to add id for individual node :
A-2. Replace following code in forest_floor's page.tpl.php :
With this one :
A-3. Add following css to give background color for each page (node id will change accordingly):
OR
B. If you want to give bg-color to wrapper of each page, please try this :-
B-1. Add following function in forest_floor's template.php file to add class for individual node :
B-2. Replace following code in forest_floor's page.tpl.php :
With this one :
B-3. Add following css to give background color for each page (node id will change accordingly):
Rgrds,
Deepika Chavan
Comment #3
BrunoB-1 commentedI'm a newbee and have some questions regarding to this post:
When you say: Add following function in forest_floor's template.php, do you simply have to add it at the bottom? When I open it with notebook, just past it at the end?
Add following css to give background color for each page (node id will change accordingly. Do I have to make a new .css file? Or ad it somwhere in the style.css?
Comment #4
Deepika.chavan commentedHi ,
1. If "function phptemplate_preprocess_page(&$vars)" is already there in your template.php file, then just add following code anywhere inside that function :
2. if it is not there then please add following code anywhere in template.php file (I added at the end of my template.php file) :
3. Good practice is to create new css file. but you can add that css code in style.css file also. (please clear cached data).
Rgrds,
Deepika Chavan.