Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Linking banner to news and article section

Linking banner to news and article section

Locked

Views: 1,460

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
24 Nov 2006, 17:37
#1
ctcentralinfo avatar

ctcentralinfo

Totally Zenned

Join Date:
Apr 2005
Posts:
853
Plugin Contributions:
0

Linking banner to news and article section

I am trying to figure out how to link the banner on the front page of https://www.books-japan-online.com to the news and article
management section of the site:

http://www.books-japan-online.com/news

I was told that in the tpl_header.php find where it calls the link for the image and
replace the link with what I want

<?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-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 } ?>
24 Nov 2006, 23:32
#2
kobra avatar

kobra

Black Belt

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

Re: Linking banner to news and article section

Try looking in the admin > tools > banner manager > select the banner and edit > look for the Banner URL: entry box and enter http://www.books-japan-online.com/news
Save and this should redirect the clicking of the banner to the url that you have entered

25 Nov 2006, 11:14
#3
ctcentralinfo avatar

ctcentralinfo

Totally Zenned

Join Date:
Apr 2005
Posts:
853
Plugin Contributions:
0

Re: Linking banner to news and article section

The image was added without using the banner manager.

27 Nov 2006, 22:17
#4
ctcentralinfo avatar

ctcentralinfo

Totally Zenned

Join Date:
Apr 2005
Posts:
853
Plugin Contributions:
0

Re: Linking banner to news and article section

This is the bit of code for the banner:

<td><img src="<?php echo DIR_WS_TEMPLATES . $template_dir; ?>/images/design/banner.jpg" border="0" alt=""></td>

Now I have to figure out how to link the news and article mangement mod to it.

27 Nov 2006, 23:14
#5
ctcentralinfo avatar

ctcentralinfo

Totally Zenned

Join Date:
Apr 2005
Posts:
853
Plugin Contributions:
0

Re: Linking banner to news and article section

It's cool, I just added <a href="/news"> and it worked.