Hello,
I'm using bartik as a base to create a custom theme and I'd like to add a region under the content and over the comments.
I have been trying to reproduce the steps provided here http://drupal.org/node/706632#comment-2775676 to achieve what I want to do for Zen Subtheme with no success.
I'll try to explain what I did in order to see if someone can help me a little bit more:
1. I defined it on bartik.info file as it follows (more or less in line 18):
regions[header] = Header
regions[help] = Help
regions[page_top] = Page top
regions[page_over_comments] = Over comments
regions[page_bottom] = Page bottom
regions[highlighted] = Highlighted
2. I edited template.php and added this code in line 12:
if (!empty($variables['page']['page_over_comments'])) {
$variables['classes_array'][] = 'page_over_comments';
}
since I think that's what I did wrong I will copy as well its context:
/**
* Add body classes if certain regions have content.
*/
function bartik_custom_preprocess_html(&$variables) {
if (!empty($variables['page']['featured'])) {
$variables['classes_array'][] = 'featured';
}
// That's my addition
if (!empty($variables['page']['page_over_comments'])) {
$variables['classes_array'][] = 'page_over_comments';
}
//Here ends my addition