Posted by KH0 on February 10, 2013 at 11:22am
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.
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
codeit 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
codeit up!