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.
How do I replace the 'Home' menu link with a picture.
I can find lots of ways to do it in D6, but can't find anything for D7.
Thanks
Glenn
Comments
Comment #1
Deepika.chavan CreditAttribution: Deepika.chavan commentedHi,
I tried the same thing on my local site.
- Create custom css file in /css dir say 'local.css' .
- Add following line of code in 'genesis.info' file.
stylesheets[all][] = css/local.css
- Add following css code in local.css file to replace the home link with image.
Placed the 'home-link.png' image in '/images' dir.
- You can add following code if you want rollover effect. just change the background image in following code.
- Please clear cached data.
HTH!!
Rgrds,
Deepika Chavan.
Comment #2
glennnz CreditAttribution: glennnz commentedOK, getting there. Now I'm trying to get the menu to display inline. I've put the menus in as blocks, rather than through the theme, and I have:
I can get them to either be not inline, with the background image, or inline with both background image AND the link text.