Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Zencart logo replacement and redirect url

Zencart logo replacement and redirect url

Views: 3,457

Results 1 to 5 of 5
27 Jan 2014, 7:59 PM
#1
pablo_escobar avatar

pablo_escobar

New Zenner

Join Date:
Jan 2014
Location:
Maui, Bohol, Philippines, Philippines
Posts:
26
Plugin Contributions:
0

Zencart logo replacement and redirect url

hey on my layout for my page to the left side i replaced the zencart logo (powered by zencart) to a facebook image become a fan

but i wanted to know how to change the link to it because when i click it goes to my home page but it want to redirect it to my facebook url

where in the files would i have to go to change this

<div id="logo"> <a href="http://jdmengineworld.com/"> to my facebook url?

Attachment 13716

27 Jan 2014, 8:26 PM
#2
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Zencart logo replacement and redirect url

This is a bit off:

<!--bof-branding display--> <div id="logoWrapper"> <div id="cos-top"> <div><span class="my-cart"> Please <a href="index.php?main_page=login">Login</a> or <a href="index.php?main_page=login">Create an Account</a></span> <div class="prod-in-cart">
    <a style="color:#fff;" href="http://jdmengineworld.com/index.php?main_page=shopping_cart">Your cart is empty.</a>

    </div></div>
</div>
<div id="logo"><a href="http://jdmengineworld.com/"><img src="includes/templates/e-ssentials/images/logo.gif" alt="Powered by Zen Cart :: The Art of E-Commerce" title=" Powered by Zen Cart :: The Art of E-Commerce " width="190" height="269" /></a></div>
<div id="taglineWrapper">
<div id="navMainSearch">

Mostly because your includes/templates/YOUR_TEMPLATE/common/tpl_header.php contains something displaying in the left sidebox.

I wonder if 'cos-top' is playing a role, some add in perhaps?

27 Jan 2014, 8:38 PM
#3
pablo_escobar avatar

pablo_escobar

New Zenner

Join Date:
Jan 2014
Location:
Maui, Bohol, Philippines, Philippines
Posts:
26
Plugin Contributions:
0

Re: Zencart logo replacement and redirect url

twitchtoo:

This is a bit off:

<!--bof-branding display--> <div id="logoWrapper"> <div id="cos-top"> <div><span class="my-cart"> Please <a href="index.php?main_page=login">Login</a> or <a href="index.php?main_page=login">Create an Account</a></span> <div class="prod-in-cart">
    <a style="color:#fff;" href="http://jdmengineworld.com/index.php?main_page=shopping_cart">Your cart is empty.</a>

    </div></div>
</div>
<div id="logo"><a href="http://jdmengineworld.com/"><img src="includes/templates/e-ssentials/images/logo.gif" alt="Powered by Zen Cart :: The Art of E-Commerce" title=" Powered by Zen Cart :: The Art of E-Commerce " width="190" height="269" /></a></div>
<div id="taglineWrapper">
<div id="navMainSearch">

Mostly because your includes/templates/YOUR_TEMPLATE/common/tpl_header.php contains something displaying in the left sidebox.

I wonder if 'cos-top' is playing a role, some add in perhaps?

i been in the tpl_header.php so many times and i cant find it all i see is this for the logo id (zencart) but no url

<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))) { ?>

and then i also see this but nothing else for the display after that

</div> <br class="clearBoth" /> <!--eof-branding display--> <!--eof-header logo and navigation display-->

but when i run it through my firefox browser and use firebug i see this

<div id="logo"> <a href="http://jdmengineworld.com/"> <img width="190" height="269" title=" Powered by Zen Cart :: The Art of E-Commerce " alt="Powered by Zen Cart :: The Art of E-Commerce" src="includes/templates/e-ssentials/images/logo.gif"> </a>

just wish i knew where to change the URL for the href because its not in tpl_header

thanks - Paul

27 Jan 2014, 8:42 PM
#4
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Zencart logo replacement and redirect url

It's this code then:

<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>

It's building the 'a href' link with your site data just change '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' to 'a href=" your facebook link ">' ... (keep the rest of this line) and it should work nicely.

27 Jan 2014, 10:52 PM
#5
pablo_escobar avatar

pablo_escobar

New Zenner

Join Date:
Jan 2014
Location:
Maui, Bohol, Philippines, Philippines
Posts:
26
Plugin Contributions:
0

Re: Zencart logo replacement and redirect url

twitchtoo:

It's this code then:

<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>

It's building the 'a href' link with your site data just change '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' to 'a href=" your facebook link ">' ... (keep the rest of this line) and it should work nicely.

thank you so much worked perfectly