Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / how to remove logo hyperlink?

how to remove logo hyperlink?

Views: 1,216

Results 1 to 8 of 8
8 Mar 2011, 1:49 AM
#1
slater555 avatar

slater555

Zen Follower

Join Date:
Jan 2011
Posts:
367
Plugin Contributions:
0

how to remove logo hyperlink?

I have 1.3.9h and i would like to remove the logo hyperlink.
https://www.airtightvideo.com/shopping_cart

I am enclosing the beginning part of my tpl_header.php if that helps:


  • 'Bask' Template designed by zen-cart-power.net
  • @copyright Copyright 2011 zen-cart-power.net - 'Bask' template
    */
    ?>
<?php // Display all header alerts via messageStack: if ($messageStack->size('header') > 0) { echo $messageStack->output('header'); } if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) { echo htmlspecialchars(urldecode($_GET['error_message'])); } if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) { echo htmlspecialchars($_GET['info_message']); } else { } ?> <!--bof-header logo and navigation display--> <?php if (!isset($flag_disable_header) || !$flag_disable_header) { ?> <div id="headerWrapper"> <!--bof-navigation display--> <!--bof-branding display--> <div id="logoWrapper" class="float-left"> <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 if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) { if ($banner->RecordCount() > 0) { ?> <div id="bannerTwo" class="banners"><?php echo zen_display_banner('static', $banner);?></div> <?php } } ?> </div> <?php } // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?> </div> <!--eof-branding display--> <div id="navMainWrapper"> <div id="navMain" class="float-right">
<!--bof-header ezpage links-->
<?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
<?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>
<?php } ?>
<!--eof-header ezpage links-->
</div>
	<!--login section-->
	<div id="login_logout_section" class="float-right" width: 300>
	<ul class="list-style-none inline-list">
<?php if ($_SESSION['customer_id']) { ?>
		<li>
		<?php echo HEADER_WELCOME; ?> <a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo ($_SESSION['customer_first_name'].' '.$_SESSION['customer_last_name']);?></a>!  
		</li>
	    <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
<?php } else { if (STORE_STATUS == '0') { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
	<li><?php echo HEADER_OR; ?></li>
    <li><a href="<?php echo zen_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_REGISTER; ?></a></li>
        <li><!-- (c) 2005, 2011. Authorize.Net is a registered trademark of CyberSource Corporation --> <div class="AuthorizeNetSeal"> <script type="text/javascript" language="javascript">var ANS_customer_id="0036e7ff-0a4e-4806-9f39-0049e960ce30";</script> <script type="text/javascript" language="javascript" src="//verify.authorize.net/anetseal/seal.js" ></script> <a href="http://www.authorize.net/" id="AuthorizeNetText" target="_blank">Accept Credit Cards</a></li>
<?php } } ?>
	</ul>

	</div>
	<!--/login section-->

I would like to remove the hyperlink, i have tried to break the logo up into 3 parts to have seperate hyperlinks for each but have had no luck doing that.

thanks

8 Mar 2011, 1:53 AM
#2
kobra avatar

kobra

Black Belt

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

Re: how to remove logo hyperlink?

This is the href for that

<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>
8 Mar 2011, 1:57 AM
#3
slater555 avatar

slater555

Zen Follower

Join Date:
Jan 2011
Posts:
367
Plugin Contributions:
0

Re: how to remove logo hyperlink?

that text is already there, are you saying remove it? including the <div id="logo"></div> part? should i remove it all???

8 Mar 2011, 2:00 AM
#4
kobra avatar

kobra

Black Belt

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

Re: how to remove logo hyperlink?

Edit it/adjust it for your 3 images

8 Mar 2011, 2:02 AM
#5
slater555 avatar

slater555

Zen Follower

Join Date:
Jan 2011
Posts:
367
Plugin Contributions:
0

Re: how to remove logo hyperlink?

so your not saying to remove it? i have been editing it blue and nothing works, simply to remove the hyperlink could you tell me exactly what to delete?

8 Mar 2011, 2:03 AM
#6
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,176
Plugin Contributions:
0

Re: how to remove logo hyperlink?

Slater,
Find this:> <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>

Change to this:

<div id="logo"><?php echo '' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>
8 Mar 2011, 2:07 AM
#7
slater555 avatar

slater555

Zen Follower

Join Date:
Jan 2011
Posts:
367
Plugin Contributions:
0

Re: how to remove logo hyperlink?

thanks, that worked

8 Mar 2011, 2:15 AM
#8
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,176
Plugin Contributions:
0

Re: how to remove logo hyperlink?

Your welcome glad Kobra and I could assist you.. :smile: