Zen Cart Logo
Forums / General Questions / Remove link from page banner

Remove link from page banner

Views: 1,417

Results 1 to 11 of 11
21 Apr 2011, 10:26 PM
#1
khaybet avatar

khaybet

New Zenner

Join Date:
Apr 2011
Posts:
23
Plugin Contributions:
0

Remove link from page banner

Hi need some help to remove the hyperlink from my page banner

the site http://www. neterubookstore.com

Thanks

21 Apr 2011, 10:30 PM
#2
haredo avatar

haredo

Totally Zenned

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

Re: Remove link from page banner

khaybet:

Hi need some help to remove the hyperlink from my page banner

the site http://www. neterubookstore.com

Thanks

If you want to completely remove the link in the header you will need to edit the file includes/ templates/ your template/ common/ tpl_header.php

21 Apr 2011, 11:57 PM
#3
khaybet avatar

khaybet

New Zenner

Join Date:
Apr 2011
Posts:
23
Plugin Contributions:
0

Re: Remove link from page banner

Hi here is a copy of the file could you point me in the right direction

<div id="headerWrapper"> <!--bof-branding display--> <div id="logoWrapper"> <div id="logotext"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . STORE_NAME . '</a>' ?></div> <!-- Alternatively use a Logo Image <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> --> </div> <?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 } } ?> <!--eof-branding display--> <!--bof-navigation display--> <div id="navMainWrapper"> <div id="navMain"> <?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><img src="<?= DIR_WS_TEMPLATE . 'images/homebutton.gif"></a>'?> <?php if ($_SESSION['customer_id']) { ?>

<a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><img src="<?= DIR_WS_TEMPLATE . 'images/logoffbutton.gif"></a>'?>
<a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><img src="<?= DIR_WS_TEMPLATE . 'images/myaccountbutton.gif"></a>'?>

<?php } else { if (STORE_STATUS == '0') { ?>
<a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><img src="<?= DIR_WS_TEMPLATE . 'images/loginbutton.gif"></a>'?>
<?php } } ?> <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
<a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><img src="<?= DIR_WS_TEMPLATE . 'images/cartbutton.gif"></a>'?>
 <a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><img src="<?= DIR_WS_TEMPLATE . 'images/checkoutbutton.gif"></a>'?>
<?php }?> </div> <div class="navMainSearch forward"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div> <br class="clearBoth" /> </div> <!--eof-navigation display--> <!--eof-header logo and navigation display--> <!--bof-optional categories tabs navigation display--> <!-- <?php require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?>--> <!--eof-optional categories tabs navigation display--> <!--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> <?php } ?>

Thank you for your response

22 Apr 2011, 12:03 AM
#4
haredo avatar

haredo

Totally Zenned

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

Re: Remove link from page banner

Find this above in the code. > <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> -->

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

</div>
22 Apr 2011, 12:25 AM
#5
khaybet avatar

khaybet

New Zenner

Join Date:
Apr 2011
Posts:
23
Plugin Contributions:
0

Re: Remove link from page banner

Hi i have changed the code but the link still remains

22 Apr 2011, 12:32 AM
#6
haredo avatar

haredo

Totally Zenned

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

Re: Remove link from page banner

what is the path of the .php file you are editing...
Do you use an overide file structure

22 Apr 2011, 12:36 AM
#7
khaybet avatar

khaybet

New Zenner

Join Date:
Apr 2011
Posts:
23
Plugin Contributions:
0

Re: Remove link from page banner

The path to my file is located in my templates common folder

22 Apr 2011, 12:44 AM
#8
haredo avatar

haredo

Totally Zenned

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

Re: Remove link from page banner

includes/ templates/ artshop/ common/ tpl_header.php

notice the highlighted red font which is your custom template

22 Apr 2011, 12:47 AM
#9
haredo avatar

haredo

Totally Zenned

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

Re: Remove link from page banner

Sorry I am wrong from above...

Find this:> <div id="logotext"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . STORE_NAME . '</a>' ?></div>

Change to this:> <div id="logotext"></div>

22 Apr 2011, 12:52 AM
#10
khaybet avatar

khaybet

New Zenner

Join Date:
Apr 2011
Posts:
23
Plugin Contributions:
0

Re: Remove link from page banner

Thank you very much all done now working

22 Apr 2011, 12:58 AM
#11
haredo avatar

haredo

Totally Zenned

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

Re: Remove link from page banner

You are most welcome. Glad I could locate the .php file for you..

What I used is Moxilla Firefox browser with an add on called Firebug. Which allows me to locate the div id and classes..