Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Oct 2004
    Posts
    417
    Plugin Contributions
    0

    help question Customizing home page

    Can someone look at my site http://www.csgiftstore.com. I hv created the top banner where it shows the sales. I edited tpl_header.php. but when you click other pages the image still shows. I just want the image to show on the homepage.

    Any one can assist pls.

    tks

  2. #2
    Join Date
    Jan 2005
    Location
    USA, St. Louis
    Posts
    3,710
    Plugin Contributions
    9

    Default Re: Customizing home page

    Quote Originally Posted by covone View Post
    Can someone look at my site http://www.csgiftstore.com. I hv created the top banner where it shows the sales. I edited tpl_header.php. but when you click other pages the image still shows. I just want the image to show on the homepage.

    Any one can assist pls.

    tks
    That's because tpl_header.php is used for every page of the site.

    Not sure if this is the best way to do it, but it seems to work.

    Wrap your code for that image with:
    <?php if (!$this_is_home_page) { ?>

    PUT HTML CODE HERE

    <?php } ?>

    Hope that helps!

  3. #3
    Join Date
    Oct 2004
    Posts
    417
    Plugin Contributions
    0

    help question Re: Customizing home page

    Jettrue,
    Thanks for reply.
    I'm not to experience in PHP and can you elaborate it for me pls:

    Wrap your code for that image with:
    <?php if (!$this_is_home_page) { ?>

    What do I put in the above "this_is_home_page, where does the code go?

    PUT HTML CODE HERE
    <?php } ?>

    What do I put in the above?

    Tks for helping me out.

  4. #4
    Join Date
    Jan 2005
    Location
    USA, St. Louis
    Posts
    3,710
    Plugin Contributions
    9

    Default Re: Customizing home page

    Quote Originally Posted by covone View Post
    Jettrue,
    Thanks for reply.
    I'm not to experience in PHP and can you elaborate it for me pls:

    Wrap your code for that image with:
    <?php if (!$this_is_home_page) { ?>

    What do I put in the above "this_is_home_page, where does the code go?

    PUT HTML CODE HERE
    <?php } ?>

    What do I put in the above?

    Tks for helping me out.
    Put your HTML code there:
    <!-- Top Sale -->
    <div align="center">
    <center>
    <table border="0" cellspacing="1" width="800">
    <tr>
    <td><map name="FPMap0">
    <area href="http://www.csgiftstore.com/page.html?chapter=0&id=9" shape="rect" coords="516, 90, 651, 111">
    </map>
    <img border="0" src="https://zx7.ewdhosting.com/~csgiftst/test3/images/sales/tp01.jpg" usemap="#FPMap0"></td>
    </tr>
    </table>
    </center>
    </div>
    <!-- Top Sale -->

  5. #5
    Join Date
    Oct 2004
    Posts
    417
    Plugin Contributions
    0

    help question Re: Customizing home page

    This is what I did and I get and error:

    <?php if (!$this_is_home_page) { ?>
    <?php } <div align="center">
    <center>
    <table border="0" cellspacing="1" width="800">
    <tr>
    <td><map name="FPMap0">
    <area href="http://www.csgiftstore.com/page.html?chapter=0&id=9" shape="rect" coords="516, 90, 651, 111">
    </map>
    <img border="0" src="https://zx7.ewdhosting.com/~csgiftst/test3/images/sales/tp01.jpg" usemap="#FPMap0"></td>
    </tr>
    </table>
    </center>
    </div>?>

  6. #6
    Join Date
    Jan 2005
    Location
    USA, St. Louis
    Posts
    3,710
    Plugin Contributions
    9

    Default Re: Customizing home page

    Quote Originally Posted by covone View Post
    This is what I did and I get and error:

    <?php if (!$this_is_home_page) { ?>
    <?php } <div align="center">
    <center>
    <table border="0" cellspacing="1" width="800">
    <tr>
    <td><map name="FPMap0">
    <area href="http://www.csgiftstore.com/page.html?chapter=0&id=9" shape="rect" coords="516, 90, 651, 111">
    </map>
    <img border="0" src="https://zx7.ewdhosting.com/~csgiftst/test3/images/sales/tp01.jpg" usemap="#FPMap0"></td>
    </tr>
    </table>
    </center>
    </div>
    The code is supposed to go between those two... like this:
    <?php if (!$this_is_home_page) { ?>

    <div align="center">
    <center>
    <table border="0" cellspacing="1" width="800">
    <tr>
    <td><map name="FPMap0">
    <area href="http://www.csgiftstore.com/page.html?chapter=0&id=9" shape="rect" coords="516, 90, 651, 111">
    </map>
    <img border="0" src="https://zx7.ewdhosting.com/~csgiftst/test3/images/sales/tp01.jpg" usemap="#FPMap0"></td>
    </tr>
    </table>
    </center>
    </div>

    <?php } ?>

 

 

Similar Threads

  1. Customizing home page with javascript
    By brokenbird in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 28 Aug 2011, 04:52 AM
  2. home page text and footer do not show on home page
    By terrancesmith98 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 27 Oct 2010, 01:45 AM
  3. Customizing Admin Index (Home) Page Question
    By firstimpression in forum General Questions
    Replies: 0
    Last Post: 5 Nov 2009, 12:12 AM
  4. Customizing the Home Page
    By only1patrick in forum General Questions
    Replies: 9
    Last Post: 30 Jul 2009, 01:37 AM
  5. customizing and removing product from home page
    By katandmouse in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 6 Aug 2007, 06:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg