Forums / Templates, Stylesheets, Page Layout / How can I make my site logo be a link to home?

How can I make my site logo be a link to home?

Locked

Started by danallkins on 10 May 2008, 1:03 PM · Views: 1,695

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
10 May 2008, 1:03 PM
#1
danallkins avatar

danallkins

Zen Follower

Join Date:
Aug 2006
Posts:
135
Plugin Contributions:
0

How can I make my site logo be a link to home?

Hi,

The logo to my site is not a link... is it possible yo make it a link back the the front page?

http://www.badluckclothing.co.uk

Cheers
Dan

10 May 2008, 6:58 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: How can I make my site logo be a link to home?

If referring to the page you linked - then you do not are not using the logo function and only have the top image as a background image.

Check default coding and make it a gif and name it logo.gif

It will then be a link

Zen-Venom Get Bitten

12 May 2008, 7:47 PM
#3
danallkins avatar

danallkins

Zen Follower

Join Date:
Aug 2006
Posts:
135
Plugin Contributions:
0

Re: How can I make my site logo be a link to home?

Where should that image be stored?
my CSS said this:

#logoWrapper{
background-image: url('../images/badluck_w.jpg');
background-repeat: repeat-x;
background-color: #ffffff;
height:150px
}

Which is the error I think you were talking about.

12 May 2008, 7:54 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: How can I make my site logo be a link to home?

Looking at your view source:

<!--bof-branding display-->
<div id="logoWrapper">

<!--    <div id="logo"><a href="http://www.badluckclothing.co.uk/"><img src="includes/templates/badluck/images/" alt="BadLuckClothing" title=" BadLuckClothing " /></a></div> -->
</div>
<br class="clearBoth" />
<!--eof-branding display-->

You do not have a logo.gif image there to be loaded

As I outlined - turn your image into a gif and name it "logo.gif" and it is uploaded to your template/images folder or in your case this is:

includes/templates/badluck/images/logo.gif

Zen-Venom Get Bitten

12 May 2008, 8:41 PM
#5
danallkins avatar

danallkins

Zen Follower

Join Date:
Aug 2006
Posts:
135
Plugin Contributions:
0

Re: How can I make my site logo be a link to home?

I've done that and still no joy?!

12 May 2008, 8:50 PM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: How can I make my site logo be a link to home?

Go back and check your copy of header.php and make sure that the red entries are there and adjust the dimension values to yours

// added defines for header alt and text
  define('HEADER_ALT_TEXT', 'Powered by Zen Cart :: The Art of E-Commerce');
  define('HEADER_SALES_TEXT', 'TagLine Here');
  define('HEADER_LOGO_WIDTH', '192px');
  define('HEADER_LOGO_HEIGHT', '64px');
  define('HEADER_LOGO_IMAGE', 'logo.gif');

Zen-Venom Get Bitten

12 May 2008, 9:30 PM
#7
danallkins avatar

danallkins

Zen Follower

Join Date:
Aug 2006
Posts:
135
Plugin Contributions:
0

Re: How can I make my site logo be a link to home?

Done that... when I view the source I can see the logo.gif is now there, but it still isn't a link?!

13 May 2008, 4:42 AM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: How can I make my site logo be a link to home?

Try posting this section from your copy of tpl_header.php

<div id="headerWrapper">

<!--bof-branding display-->

<div id="logoWrapper">

    <div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>

<?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) { ?>

    <div id="taglineWrapper">

<?php

Zen-Venom Get Bitten

15 May 2008, 10:51 PM
#9
danallkins avatar

danallkins

Zen Follower

Join Date:
Aug 2006
Posts:
135
Plugin Contributions:
0

Re: How can I make my site logo be a link to home?

kobra:

Try posting this section from your copy of tpl_header.php

<div id="headerWrapper"> <!--bof-branding display--> <div id="logoWrapper">
<div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>
<?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) { ?>
<div id="taglineWrapper">
<?php ``` Sorry, do you want me to post my tpl_header.php file?
16 May 2008, 12:03 AM
#10
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: How can I make my site logo be a link to home?

I think just the section of the file that I posted over the full file

Zen-Venom Get Bitten