Header Rotating banner Images - Location
two Questions:
Q1: I have a header located on my site that I want to change. Current it shows up on every page. I really like the look of it on the home page, however I dont want it to show up on every other page. Is there a way to change it so that it shows up ONLY on the home page in it's current location??
http://www.driftbuildstore.com
Q2: How do I delete the Boxes under the roating images? They appear to be images with hot links on them but I can not figure out where to delete them from.... Or more to the point, not delet but edit the code so they dont show up but I can put them back later if I choose.
Please please help!! :frusty::frusty:
Re: Header Rotating banner Images - Location
Quote:
Originally Posted by
outeredge2
two Questions:
Q1: I have a header located on my site that I want to change. Current it shows up on every page. I really like the look of it on the home page, however I dont want it to show up on every other page. Is there a way to change it so that it shows up ONLY on the home page in it's current location??
You can test for "home page" using the variable $this_is_home_page
eg:
PHP Code:
if ($this_is_home_page) {
then display the header
}
Sorry not sure where to put this in a TM template
Re: Header Rotating banner Images - Location
Quote:
Originally Posted by
gilby
You can test for "home page" using the variable $this_is_home_page
eg:
PHP Code:
if ($this_is_home_page) {
then display the header
}
Where do I put this code?
Re: Header Rotating banner Images - Location
I think I put it in here.... tpl_main_page.php
However Im not certain.
Anyone with more coding knowledge able to tell me if this code will work and if so where do I put it??
PHP Code:
if ($this_is_home_page) {
then display the header
}
Re: Header Rotating banner Images - Location
Quote:
Originally Posted by
outeredge2
I think I put it in here.... tpl_main_page.php
However Im not certain.
Anyone with more coding knowledge able to tell me if this code will work and if so where do I put it??
PHP Code:
if ($this_is_home_page) {
<code to display the banners>
}
You would put the if() around the code that displays the banners.
As it appears on all pages it will be in your custom template files somewhere so that should narrow it down
Try includes/templates/theme346/common/tpl_header.php
Re: Header Rotating banner Images - Location
Quote:
Originally Posted by
gilby
You would put the if() around the code that displays the banners.
As it appears on all pages it will be in your custom template files somewhere so that should narrow it down
Try includes/templates/theme346/common/tpl_header.php
So I looked into the code and I already have the mentioned PHP code: if($this_is_home_page){}
This is the code I have:
PHP Code:
</script></center>
<?php
if($this_is_home_page){
?>
<!-- BOF- BANNER #2 display -->
<?php
if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) {
if ($banner->RecordCount() > 0) {
?>
<div id="bannerTwo"><?php echo zen_display_banner('static', $banner);?></div>
<?php
}
}
?>
<!-- EOF- BANNER #2 display -->
<div class="category-icons">
<a href="index.php?main_page=index&cPath=2"><?php echo zen_image(DIR_WS_TEMPLATE.'images/category1-icon.jpg'); ?></a><a href="index.php?main_page=index&cPath=3"><?php echo zen_image(DIR_WS_TEMPLATE.'images/category2-icon.jpg'); ?></a><a href="index.php?main_page=index&cPath=4"><?php echo zen_image(DIR_WS_TEMPLATE.'images/category3-icon.jpg'); ?></a><a href="index.php?main_page=index&cPath=6"><?php echo zen_image(DIR_WS_TEMPLATE.'images/category4-icon.jpg'); ?></a><a href="index.php?main_page=index&cPath=7"><?php echo zen_image(DIR_WS_TEMPLATE.'images/category5-icon.jpg'); ?></a>
</div>
<?php
}
?>
<?php
if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) {
if (HEADER_SALES_TEXT != '') {
?>
<div id="tagline"><?php echo HEADER_SALES_TEXT;?></div>
<?php
}
}
?>
Any suggestions. It doesn't seem to be working!! :/
Re: Header Rotating banner Images - Location
Quote:
Originally Posted by outeredge2
Any suggestions. It doesn't seem to be working!!
As you have a template monster template - I would start by asking them