Originally Posted by
RodG
I think the 1st thing to do would be to determine the value of "$this_is_home_page" isn't somehow being set when NOT the home page.
Right.. except as I indicted earlier I am also using the $this_is_home_page on the same page to display the slideshow ONLY on the home page and that code works just fine..
Originally Posted by
RodG
The other thing I might try would be to add an 'else' condition to the code so that it explicitly outputs something like
echo "<style>#ez-feature-top-container-wrap {display: block;}</style>" if NOT the home page.
Good morning.. Looks like we had the same idea Rod.. After thinking about this overnight I too realized that this was the answer.. So I changed my code as follows:
Code:
<?php
if ($this_is_home_page) {
echo "<style>#ez-feature-top-container-wrap {display:block !important;}</style>";
} else {
echo "<style>#ez-feature-top-container-wrap {display:none;}</style>";
}
?>
Now the container displays on the home page ONLY. Thanks everyone for the tips and pointers.. Put it all together and it got me moving in the right direction.. Gotta love the Zen Cart community!!
Bookmarks