Steve,
Do NOT feel stupid. We've all been there and continue to be there in many ways.
It's way more efficient in use of the world's resources (which includes your brain power) for you to ask and get quick help -- it took me three minutes to write that email, than for you to bang your head, potentially for hours. People have helped me so many times and I'm sure you will help others -- or already have. No knowledge in Drupal is "comprehensive" -- you don't have to be a "ninja" or anything special to answer a question that you know the answer to.
Regarding your situation. Congratulations on figuring it out.
Indeed, no need to use the Drupal l() function.
Regarding the href-- there are different opinions on this, and sometimes it depends on whether you have a multi-site or not. But my strong preference for any single installation site is for all href's to pages inside the site to be "root relative." All references should start with a forward slash after the first quotes. In this case I would no need to provide any specific page path since it is the default home page. Here is how I would do the href:
<a href="/">
best,
Shai
On Mon, Jul 21, 2008 at 10:42 AM, Steve Hays <hays@ohio.edu> wrote:
Shai,
I did not edit the page.tpl. Instead, I disabled the title and slogan in the theme configuration. Then in .css I replaced the header background image with my new image.
The result is that the HTML output of the header on all pages is blank <div id = "header"> </div>
What you said, though, enabled me to figure it out. I simply needed to set the a href statement around the whole header div, and it worked.
By the way, I simply set it as <a href = "home">, which works on local host. I hope this won't cause problems after upload? I.e., I don't need to use the Drupal l() function to maintain proper internal links?
Thanks for the pointer. Now that I see it, I feel pretty stupid for needing to bother people with this.
Steve
On Jul 21, 2008, at 10:16 AM, Shai Gluskin wrote:
Hi Steve,
Sounds like you must have edited the page.tpl.page for the theme you are using in order to get the header image you wanted. Is that correct? That's where the html goes as well.
Why don't you post that snippet of the code and then I or someone can post back with the simple snippet you'll need to get that to be a hyperlink.
But you could try on your own as well --, just make sure that the php part is "off" near where you have the header image, and put in the html. <?php turns php on and ?> turns it off. Html happily goes outside of those tags.
Shai
So then you just go inside the theme folder for the theme you are using and go to page.
On Mon, Jul 21, 2008 at 10:05 AM, Steve Hays <hays@ohio.edu> wrote:
I have included the Site Title and Slogan in a header background image that occupies the header of my site. Can someone please tell me how to code (and where to put it) a link so that a click anywhere in the header takes the user to the front page? I would have no problem with this if it were simple HTML, but the compartmentalized PhP structure of Drupal has me pretty confused.
Thanks in advance,
Steve Hays Classics Ohio University
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]