By Sophia on
Hi, I have a question about theming zen. I am trying to change the location of the primary/secundairy links, but I am a newbie when it comes to theming. Right now, the
page.tpg.php says
<div id="main"><div id="main-inner" class="clear-block<?php if ($search_box || $primary_links || $secondary_links || $navbar) { print ' with-navbar'; } ?>">
and the css file
#primary /* Primary links */
{
background: #ff5500;
display: block;
}
#secondary /* Secondary links */
{
background: #6DA6E2;
border-bottom: solid #2763A5 4px;
}
I am so new to all of this, I dno't even know which one to change but basically what I want is the links bar to appear right beneath the header section, as part of the header almost and separate from the body.
Thanks for any help!
Comments
Ok Sophia, The css is just
Ok Sophia,
The css is just putting a background color and a border on the primary and secondary links. What you are looking for is indeed in the page.tpl.php file.
Find the line that has something like
<?php print $primary_links; ?>. Move it to where you would like it to print instead.It's that easy huh??? Thanks
It's that easy huh??? Thanks very much, theming is great fun :)
Edit, hmm I am at a loss what to do, it looks a bit more complicated than that. The whole page code is
But I don't want my primary/sec links as part of "main", I want it above "main" (main's background is white, the rest is blue. I want it in the blue section above "main")
Sorry to be a nuisance, I'm sure I'll get the hang of it soon! :)
First no apologies
First no apologies necessary. You are asking good questions, providing good information and trying to learn.
I owe you an apology. I do not have a current copy of the zen theme available and I must be getting tired, so I gave you a bad answer.
Around line 117 of the page.tpl.php you will see this code:
I completely forgot that you should be looking for the theme_links() call. Like I said I must be getting tired early today. Anyway, this is what that code does:
IF there are primary links to display, THEN we put out a div with the id=primary and then print the result of a call to the theme_links() function. If you pick up that entire block and move it where you want it, all should be as you like.
Whoo hooo, that did the
Whoo hooo, that did the trick, thanks! Now I need to figure out how to center it, I guess it's back to the css drawing board, lol!
Yet another edit: never mind, I found it! It's in the layout.css file. I'm sure I shall have more questions soon :)
Ok, I have juggled around a
Ok, I have juggled around a lot of codes. It all looks well in the browser, but let me post the page again to see if I put all the divs and ifs right
Does that look all right to you?
Looks ok to me. sorry been
Looks ok to me. sorry been gone a few days.
I ended up editing
I ended up editing zen_classic after all, and I think it is only fair I show you the end result: http://sophiahosting.com
Thanks for your assistence, much appreciated. Oh I posted a thread in the showcase forum as well, because I integrated it with WHCMS (WHMCompleteSolution). So if people are interested I can show how to do it (even though it was very quick and dirty :) ) Here is the other thread http://drupal.org/node/309494
subscribing
subscribing