Hello,

No doubt this problem is down to my lack of understanding but I can't seem to find the answer.

I've created a zen sub-theme with zenophile and called it mechanic. I switched over to mechanic and all is fine. I've managed to make changes to it by editing the mechanic.css like putting in a background image for header and body and It's all good!

However, I seem to hit a brick wall when it comes to changing the position of blocks. I want to make the primary links appear in the lower part of the header. How do I position blocks using page.tpl.php and css?

By the way, I don't know PHP but I do have a fair understanding of html and css.

Cheers

Comments

DragoonBoots’s picture

You'll have to use a little PHP here. Here's the basic structure, which you can customize.

echo 'HTML CODE BEFORE LINK LIST';
foreach ($primary_links as $link) {
  echo 'HTML CODE BEFORE EACH LINK';
  echo '<a href="' . $link['href'] . '">' . $link['title'] . '</a>';
  echo 'HTML CODE AFTER EACH LINK';
}
echo 'HTML CODE AFTER LINK LIST';

Just put that where in page.tpl.php you want the links to appear.

animammal’s picture

Sorry for the late reply, I took a long weekend in spain.

I pasted your code into page.tpl.php as suggested and after playing with it for a while, the primary links are just where and how I wanted them. I'm also much clearer on how all this stuff works.

Thank very much!