Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
How can i add more regions to this?
i see nothing in the *.info.......which must mean standard 3 regions left/right/content?
Comments
Comment #1
jthorson CreditAttribution: jthorson commentedI had the same question ... all I did was add the regions into the *.info file, and modified page.tpl.php.
Inside marinelli.info, I added:
and inside page.tpl.php:
Seems to have worked ... I'm playing around with the css now to try and skin things appropriately.
Comment #2
expatme CreditAttribution: expatme commentedthanks a lot
Comment #3
Durran CreditAttribution: Durran commentedI have been fooling with this as well.. I have added two content areas "above" the main page content center, and a full sized content area (970px) under the secondary links, and one below content (970px).
I am terrible at css.. I have a good question here. Maybe a few of us could get this working!
I am trying to "class" or add two areas above the main page content that area side by side, and not stacked. I have tried and failed.
I am taking an educated guess that it is held within the div class or id area.
so looking at this example:
Does the "div id" take priority over the "div class" ?
And if a person can use either one (which I believe is correct, one OR the other), which one would be better. Also, which css file would this modification be added to?
It would seem that the two areas would need to be (in total width) 485 pixels each.
so how would a person (css "know how" guy) code this in the stylesheet?
I think this would be great for this awesome theme..
Thoughts anyone, or tips!!!
Comment #4
Durran CreditAttribution: Durran commentedThis would be applicable to almost all recent versions of Marinelli 6.x
I have been fooling with this as well.. I have added two content areas "above" the main page content center, and a full sized content area (970px) under the secondary links, and one below content (970px).
I am terrible at css.. I have a good question here. Maybe a few of us could get this working!
I am trying to "class" or add two areas above the main page content that area side by side, and not stacked. I have tried and failed.
I am taking an educated guess that it is held within the div class or id area.
so looking at this example:
Does the "div id" take priority over the "div class" ?
And if a person can use either one (which I believe is correct, one OR the other), which one would be better. Also, which css file would this modification be added to?
It would seem that the two areas would need to be (in total width) 485 pixels each.
so how would a person (css "know how" guy) code this in the stylesheet?
I think this would be great for this awesome theme..
Thoughts anyone, or tips!!!
Comment #5
expatme CreditAttribution: expatme commenteddiv id = UNIQUE !! per page
class you can have as many instances on the page as you like.
drupal themes use the id from the nodeid
Comment #6
Durran CreditAttribution: Durran commentedAhh, I think I understand, Ive been grasping the whole css "realm" as of lately.. (and slowly!)
Would you know as for the "twin-area" ? And how a guy might code this in css?
Comment #7
ishmael-sanchez CreditAttribution: ishmael-sanchez commentedI agree I like having more than just the default regions to work with. Here is my implementation with a custom sub theme
info file:
page.tpl.php:
Comment #8
ishmael-sanchez CreditAttribution: ishmael-sanchez commentedLike mentioned here ID's are unique per page and classes can appear more than once. Most module use classes so to override you might have to adjust the CSS specificity, check out http://www.ishmaelsanchez.com/css-specificity (Shameless plug). For two side by side blocks just add two blocks to the abovecontent region and float the top most block left and the other right. Use a width of 450px (Since most likely you will want space between the blocks, padding or margin) and try to keep them the same height so they look sharp. And you will need to add a rule like
clear:both
to the content below those two blocks to prevent the floated content from 'coming' down and messing up the layout.Comment #9
Compel CreditAttribution: Compel commentedI'm curious how to get two blocks side by side in the slide down region in Marinelli.
Comment #10
Ela CreditAttribution: Ela commented#1 works for me, Thanks!
Comment #11
oadaeh CreditAttribution: oadaeh at Flatt and Sons commentedThis issue is being closed because it is against a branch for a version of Drupal that is no longer supported.
If you feel that this issue is still valid, feel free to re-open and update it (and any possible patch) to work with the 7.x-4.x branch.
Thank you.