Community

Mayo - Header Background Image - Home Link?

Hello All,

I tired and tired, but couldn't figure out a way to add a hyperlink to the header background image that would link it to home.

Thank You.

Comments

background-image or <img>?

If you mean the background-image property in CSS you can use jQuery to select that area and do your stuff, but if you mean the image tag within your header area you can alter it via region--header.tpl.php and add your desired HTML code.

Always

  1. Think about the problem ...
  2. Find the proper solution
  3. code it up!

Hello Navid, Could you please

Hello Navid,

Could you please provide an example?

Thank You.

Anyone?

Anyone?

Please Help

Please Help

region--header.tpl.php

According to Drupal 7 template suggestions, you can override default templates in your theme. For example, if there is a header region (which is defined in your theme's .info file) template suggestion for this region would be region--header.tpl.php. Look for different variables which are generated inside region.tpl.php and override them as you wish.

Always

  1. Think about the problem ...
  2. Find the proper solution
  3. code it up!
nobody click here