Active
Project:
Corporate Clean
Version:
7.x-1.4
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 Apr 2012 at 13:51 UTC
Updated:
14 Jun 2021 at 20:07 UTC
Jump to comment: Most recent
Hi,
I want to add another region in the footer (so that there are four regions there total, side-by-side) and possibly two regions in the content, similar to how the BlueMasters theme has the three regions under the main content. I'm kind of new to Drupal so I'm not really sure how to go about doing this.
Thanks!
Comments
Comment #1
gtsopour commentedComment #2
gtsopour commentedComment #3
gtsopour commentedHello naila_z,
I'll explain you in detail the addition of the extra regions reported. You should edit the corporateclean.info and page.tpl.php files and finally place the new css rules into a new local.css file where custom CSS rules and modifications could be placed. Following this practise, there is no worry if the next theme update will override all your custom css changes.
naila_z, just follow the steps bellow - personally I followed these steps in order to record them :)
1. Edit the corporateclean.info file (sites/all/themes/corporateclean/corporateclean.info)
At this step, you should define your new regions (Content bottom left, Content bottom right and Footer fourth) and your new local.css file. Finally, your corporateclean.info file will contain the following code:
2. Edit the page.tpl.php file (sites/all/themes/corporateclean/page.tpl.php)
2.1 Place the following div with id content-bottom which contains the 2 new regions (Content bottom left, Content bottom right) just under the end of div with id sidebar:
2.2 Modify the div with id footer to contain the new region footer_fourth:
3. Create an empty .css file under the /sites/all/themes/corporateclean folder and name it local.css
Then, place inside the local.css file the following code:
4. Clear all cached data
This step is important in order to force your template to be informed for the changes you have made in the template files. To do this go to Administer » Site configuration » Performance » Clear cached data
Thanks
/George
Comment #4
gtsopour commentedComment #5
Anonymous (not verified) commentedThese directions are terrific! Thank you! I've done something similar -- I want to break up the footer_bottom area into footer_bottom_left and footer_bottom_middle. I've made the changes to the .info and .tpl files, and I've assigned blocks to the new regions, but they're not being displayed. I've left the footer_bottom_right region the way it was, but that isn't displaying, either. And when I try to display the available regions for the theme, the 3 footer_bottom ones don't show up. It seems that the theme doesn't recognize any of the footer_bottom regions. What am I doing wrong?
Comment #6
gtsopour commentedHello rmgross1,
have you cleared your Drupal's cache (Step 4) through Administer » Site configuration » Performance » Clear cached data?
Thanks
/George
Comment #7
worldon commentedHi! This explanation is perfect but I couldn't find my corporate clen file...
It isn't in /sites/all/themes/corporateclean folder..The are the othere themes but not this!!
Any suggestions please??
Thank's in advanced!
Comment #8
avpaderno