I created a Zen sub-theme and I cannot get the second sidebar to appear to the right of the content region. It always appears above it in the "Highlighted" region. See example here: http://kristinemcgilvray.com/test

I would think the default view for the second sidebar would be to the right of the content. I'm sure I am missing something obvious in layout-fixed.css, but I just can't get this to look right.

Files: 
CommentFileSizeAuthor
#3 screenshot1.png345.33 KBkomal.savla

Comments

pmcgilvray’s picture

I am currently pushing this down with a top:266px; property, but I can see this being a problem with some pages.

shruti.sheth’s picture

Hello,
The highlighted region is itself present in the content region, on the top part of it. So the second sidebar is actually to the right of the content region but if the block in the highlighted region has more width than the second sidebar seems to be to the right of the highlighted region.
If you want the second sidebar to the right of the main content then give the margin-top according to the requirement to 'region-sidebar-second' class.

Hope this helps!

Regards,
Shruti Sheth

komal.savla’s picture

FileSize
345.33 KB

Hi,
The placement of the regions are incorrect, i.e The highlighted region is inside the content region and sidebar second region is outside the content region i.e the current html structure of the page is like this:

Main
-- Content
    -- Highlighted
-- Sidebar second

In your page.tpl.php put the highlighted region before the content region div and inside the main div . i.e the structure should look like this:

Main
-- Highlighted region
-- Content
-- Sidebar second

And then remove the top:266px; property from the following css

.region-sidebar-second .section {
  top:266px;
}

I am attaching the screenshot of modified html structure for your reference.

Thanks,
Komal

barraponto’s picture

Category: bug » support
zer0ne’s picture

Version: 7.x-3.x-dev » 7.x-3.1
Component: layout.css » PHP/JS code

I'm pretty sure this is the same problem I am having so I thought I would consolidate my question here.

I wanted to put a block in the "Highlighted" region that was the with of the whole site and the content with the side-bars would be below. I made the changes suggested here, putting the highlighted region above the content, but when I did that, the navigation was positioned below the highlighted region. The navigation needs to be above the highlighted region. Now I'm trying to find out why the navigation is below the highlighted.

Anyone have this problem after moving the highlighted region above the content?

zer0ne’s picture

OK, that was easy. I just put the navigation region above where I put the highlighted region so it'd look like this:

-- Navigation region
-- Highlighted region
-- Content
-- Sidebar second

I made the changes in the page.tpl.php

The navigation region is originally in between the content and the sidebars. I'm starting to see that the navigation and sidebars were probably intentionally placed after the main content in the code for better SEO so I just needed to find a work around for that.

zer0ne’s picture

I'd actually like to put the navigation region back where it was below the content so I can keep the original intentions of placing it below the content region in the code. If anyone knows what CSS that needs to be tweaked to get this to work, I'd appreciate it.

Right now it's like this (page.tpl.php):

-- Navigation region
-- Highlighted region
-- Content
-- Sidebar second

But would like to have it like this:

-- Highlighted region
-- Content
-- Navigation region
-- Sidebar second

And have the navigation appear above the highlighted region on the frontend, as it was intended.

JohnAlbin’s picture

Status: Active » Closed (fixed)

closing old support issues