Welcome, Guest
Username Password: Remember me

Add URL link to header image
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Add URL link to header image

Add URL link to header image 12 years, 9 months ago #7947

  • cspgsl
  • OFFLINE
  • Fresh Boarder
  • Posts: 17
  • Karma: 0
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

Re: Add URL link to header image 12 years, 8 months ago #7964

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4863
  • Karma: 105
<a href="/"> is usually used.

Re: Add URL link to header image 12 years, 8 months ago #7970

  • cspgsl
  • OFFLINE
  • Fresh Boarder
  • Posts: 17
  • Karma: 0
Thanks, I am trying to figure out in which file and where in the code that line would go.

Re: Add URL link to header image 12 years, 8 months ago #7971

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4863
  • Karma: 105
If you use mod_mj_header module for logo, then it should be added to modules/mod_mj_header/tmpl/default.php

Re: Add URL link to header image 12 years, 8 months ago #7972

  • cspgsl
  • OFFLINE
  • Fresh Boarder
  • Posts: 17
  • Karma: 0
I think I have done this wrong then.
In www.businesssitedesign.com/templates/mobile_smartphone/resources/styles/baseStyles.css I inserted the following. Should I have done something different?

#header {
background-image: url("../images/mobile.png");
background-color: #513f2b;
background-repeat: no-repeat;
}


Thanks

Re: Add URL link to header image 12 years, 3 months ago #11212

  • kvinOtho
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
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?
  • Page:
  • 1
Time to create page: 0.11 seconds

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.