Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I've used Acquia Slate on a few sites now - very nice! Very appreciated for contributing it to the public themes...
I am using the theme on a site without the primary links appearing in the semi-transparent layer on top of the banner image:
http://www.jeweloftheadriatic.com
I would like to make the entire banner image be a link to the home page. Digging around in the php files, I can see in page.tpl.php where the links to the home page are constructed for the logo and site_name... but I'm unsure how I'd make modifications to get the entire banner image a link to home...
Thanks in advance!
Comments
Comment #1
Tono CreditAttribution: Tono commentedI need the same thing.
Nobody willing to help us newbies??
At leat point us in the right direction.
Comment #2
jeremycaldwell CreditAttribution: jeremycaldwell commentedWhich banner image are you referring to? A screenshot with an outline indicating where or what you want to become a link would be helpful.
Comment #3
jeremycaldwell CreditAttribution: jeremycaldwell commentedSorry I see what you are referring to now. Give this bit of CSS a try by adding it to your local.css file.
What that is doing is making the site name title link a block and setting a fixed width/height for it so the entire area acts like a link. It may need to be tweaked to fit your site but I think it will get you mostly the way there.
Comment #4
bsenftner CreditAttribution: bsenftner commentedthanks!
Comment #5
jeremycaldwell CreditAttribution: jeremycaldwell commentedComment #7
dirtysteak CreditAttribution: dirtysteak commentedThis worked for us, but we use a custom header image with site name in it, thus enabling site name plasters over our image.
so I added this code:
this worked, but it puts a small vertical separator line in the middle of our logo. adding a font-size: 150% moved it to a decent spot, FYI.
Thanks for the tip!
Comment #8
dirtysteak CreditAttribution: dirtysteak commentedUPDATE:
This worked great on firefox, but i guess IE and chrome don't like the color transparent bit, so you still see it plastered across our header...back to square one.
Comment #9
jeremycaldwell CreditAttribution: jeremycaldwell commentedIf you are trying to remove the text yet still have it print in your HTML you are going to have to use a method like this in the CSS:
That will move your site name off of the screen and still have it display in your HTML output. Might need to add a "display: block" to it for IE to pick it up though.
Comment #10
dirtysteak CreditAttribution: dirtysteak commentedThanks for the tip, this worked.
We also had success setting the font size to 0%, works in all browsers tested.
Comment #11
khatchad CreditAttribution: khatchad commentedHello. I would also like this functionality but I am not able to make it work given the instructions above. Specifically, I added the following to my local.css file:
but the banner image does not link to anything. The website is located at http://ecoop11.comp.lancs.ac.uk/. Thanks!
Comment #12
khatchad CreditAttribution: khatchad commentedComment #13
nbluto CreditAttribution: nbluto commentedA very simple way to accomplish this is to wrap the entire header
Comment #14
moogly CreditAttribution: moogly commentedBanns has the same origin meaning an official proclamation, and abandon means to change loyalty or disobey orders, semantically "to leave the cloth or flag".
Banners