Closed (fixed)
Project:
Zen
Version:
7.x-5.6
Component:
CSS/SASS/HTML markup
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 Jan 2016 at 16:31 UTC
Updated:
15 May 2016 at 05:54 UTC
Jump to comment: Most recent
Comments
Comment #2
markconroy commentedHi WillyN,
This is quite easy to achieve (though I would have found it very difficult a few years ago). You need to do 3 things:
1) Declare your regions in your .info file
2) Print these regions in your page.tpl.php file
3) Use some CSS to position things
1) Declare your regions in your .info file
Open YOURTHEME.info,
Under where the regions are printed, add in your new regions. For example:
regions[above_content_one] = Above Content One
regions[above_content_two] = Above Content Two
regions[above_content_three] = Above Content Threee
regions[above_content_four] = Above Content Four
2) Print these in your page.tpl.php file.
Open your page.tpl.php file. Where you want these regions to appear, add code similar to this
3) Add some CSS.
Open your sass file (presuming you are using sass). Add code similar to this (I am using flexbox here to lay these out).
You might need to modify the above to suit your needs, but hopefully that'll get you started.
Comment #3
echoz commentedComment #4
johnalbin