Add URL link to header image

cspgsl
12 years, 8 months ago
At www.businesssitedesign.com I have inserted a logo image into the header. How would I create a link in the image to to home page?

Thanks
dryabov
12 years, 8 months ago
<a href="/"> is usually used.
cspgsl
12 years, 8 months ago
Thanks, I am trying to figure out in which file and where in the code that line would go.
dryabov
12 years, 8 months ago
If you use mod_mj_header module for logo, then it should be added to modules/mod_mj_header/tmpl/default.php
kvinOtho
12 years, 3 months ago
in the header.php look for code to call the image and use the code below:

<a href="/<?php bloginfo('url'); ?>" title="Home">insert your code for your image</a>

about the vertical line, check your style.css and look for border-left and border-right properties and try to remove them.

open your rotating_images.php, replace code below:

<img src="/<?php bloginfo('template_url'); ?>/headers/header_<?php echo $random_image; ?>.jpg" alt="Click here to return to the home page!" />

with this one:

<a href="/<?php bloginfo('url'); ?>" title="Home">
<img src="/<?php bloginfo('template_url'); ?>/headers/header_<?php echo $random_image; ?>.jpg" alt="Click here to return to the home page!"/> </a>

then log in to your webhost cpanel then to the file manager, upload your edited rotating_images.php exactly the same directory ok?

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.