i7nvd
|
Hi everyone,
I'm trying to add a new block in a custom position on my page. The block only shows up user pages (domain.com/user/1 user/2 etc), which I have defined. The block looks okay on its own, but the problem is that it overlaps the content in post-content. here's what I've got.
In my theme.info, I added the line:
regions[newblock] = New Block
In my CSS, I did this:
.newblock {
z-index: -10;
float: right;
width: 352px;
}
And the line I'm trying to paste into page.tpl.php is this:
<?php if (!empty($skin_preview)) { echo '<div class="skin_preview">'.render($skin_preview).'</div>'; }?><div class="cleared"></div>
First of all, I don't know where to properly place it in page.tpl (i.e. there are many <div class="tp_postcontent"> spots - I'm not sure which one is right.). Sometimes it appears behind the rest of the body text, sometimes it appears over top of the body text, and sometimes it doesn't show up at all. Where do I put it so the rest of the content in postcontent wraps around this div? Did I do something wrong in the coding somewhere?
|