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
Views: 1,417
New Zenner
Hi need some help to remove the hyperlink from my page banner
the site http://www. neterubookstore.com
Thanks
Totally Zenned
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
New Zenner
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>'?>
<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
Totally Zenned
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>
New Zenner
Hi i have changed the code but the link still remains
Totally Zenned
what is the path of the .php file you are editing...
Do you use an overide file structure
New Zenner
The path to my file is located in my templates common folder
Totally Zenned
includes/ templates/ artshop/ common/ tpl_header.php
notice the highlighted red font which is your custom template
Totally Zenned
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>
New Zenner
Thank you very much all done now working
Totally Zenned
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..
Tell staff why this post should be reviewed.