Page 1 of 3 123 LastLast
Results 1 to 10 of 28
  1. #1
    Join Date
    Dec 2010
    Posts
    257
    Plugin Contributions
    0

    Default How Do I Add A Text Box At The Bottom Of The Index Page?

    One of my clients would like to add a text box at the bottom of her index page (http://www.carnal-pleasures.com/zencart/index.php). The text box in question is the table that's up near the top, talking about internet censorship. She'd like to move it down to just above the Home bar, and extend it across the entire width of the page. That will move the book selections back up where they belong.

    I've learned a lot about php over the last few years, but this is out of my league. Could someone please walk me through this? Thank you!!!!!!!!!!

  2. #2
    Join Date
    Dec 2010
    Location
    UK
    Posts
    1,771
    Plugin Contributions
    3

    Default Re: How Do I Add A Text Box At The Bottom Of The Index Page?

    Quote Originally Posted by Scully View Post
    One of my clients would like to add a text box at the bottom of her index page (http://www.carnal-pleasures.com/zencart/index.php). The text box in question is the table that's up near the top, talking about internet censorship. She'd like to move it down to just above the Home bar, and extend it across the entire width of the page. That will move the book selections back up where they belong.

    I've learned a lot about php over the last few years, but this is out of my league. Could someone please walk me through this? Thank you!!!!!!!!!!
    This is much easier than you think... simply create a banner (admin-tools-banner manager). Add the text as html then display the banner. You'll also want to add an if this is homepage tag so the banner only displays on homepage not all pages. If you get stuck just shout.

  3. #3
    Join Date
    Dec 2010
    Posts
    257
    Plugin Contributions
    0

    Default Re: How Do I Add A Text Box At The Bottom Of The Index Page?

    Well, I would have preferred to have it above the Home bar rather than below it, but in retrospect, its size makes the very bottom more practical. What's a homepage tag, and how do I specify it?

    THANK YOU SO MUCH for your prompt help!!

  4. #4
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: How Do I Add A Text Box At The Bottom Of The Index Page?

    You can have the box above the navSupp area by placing it in Footer Position 1, but it will only span the centerbox width, not the whole mainWrapper width. Try it both ways.

  5. #5
    Join Date
    Dec 2010
    Posts
    257
    Plugin Contributions
    0

    Default Re: How Do I Add A Text Box At The Bottom Of The Index Page?

    Okay, thanks. It's probably best at the bottom for now, though.

    How do I make sure it stays only on the index page?

  6. #6
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: How Do I Add A Text Box At The Bottom Of The Index Page?

    There's probably a way to turn all banners off on pages other than the main page, but I did it banner by banner - add the red part in includes/templates/YOUR_TEMPLATE/common/tpl_main_page.php:


    <!--bof- banner #6 display -->
    <?php
    if ((SHOW_BANNERS_GROUP_SET6 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET6)) && $this_is_home_page) {
    if ($banner->RecordCount() > 0) {
    ?>
    <div id="bannerSix" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
    <?php
    }
    }
    ?>
    <!--eof- banner #6 display -->

  7. #7
    Join Date
    Dec 2010
    Location
    UK
    Posts
    1,771
    Plugin Contributions
    3

    Default Re: How Do I Add A Text Box At The Bottom Of The Index Page?

    Cool, I've used pretty much the same thing except I've used banner 4, centre column width rather than full footer width.

    PHP Code:
    <?php



      
    if ($this_is_home_page && (SHOW_BANNERS_GROUP_SET4 != '' && $banner zen_banner_exists('dynamic'SHOW_BANNERS_GROUP_SET4))) {



        if (
    $banner->RecordCount() > 0) {

    ?>

    <div id="bannerFour" class="banners"><?php echo zen_display_banner('static'$banner); ?></div>

    <?php

        
    }

      }

    ?>

  8. #8
    Join Date
    Dec 2010
    Posts
    257
    Plugin Contributions
    0

    Default Re: How Do I Add A Text Box At The Bottom Of The Index Page?

    When I added && $this_is_home_page) where you indicated, and saved it to the server, the entire page vanished, leaving behind only the background color.

  9. #9
    Join Date
    Dec 2010
    Location
    UK
    Posts
    1,771
    Plugin Contributions
    3

    Default Re: How Do I Add A Text Box At The Bottom Of The Index Page?

    Quote Originally Posted by Scully View Post
    When I added && $this_is_home_page) where you indicated, and saved it to the server, the entire page vanished, leaving behind only the background color.
    banner 6 or Banner 4?

  10. #10
    Join Date
    Dec 2010
    Posts
    257
    Plugin Contributions
    0

    Default Re: How Do I Add A Text Box At The Bottom Of The Index Page?

    Banner 6, as that's what Stevesh specified. But to be honest, I have no idea what banner I'm using. I pretty much created one from scratch because none of the existing ones, that had been deactivated, looked like what I needed. The Banner Group is wide-banners, if that helps any.

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. How to add text box on bottom of every page?
    By lc123 in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 5 Jun 2011, 11:19 PM
  2. How do I get rid of the advertisement on the bottom of my index.php page?
    By moonlight in forum Installing on a Windows Server
    Replies: 2
    Last Post: 17 Jan 2010, 12:50 AM
  3. Replies: 0
    Last Post: 9 Jun 2008, 03:33 AM
  4. How do I add text to the BOTTOM of the main page only?
    By wtashby in forum General Questions
    Replies: 1
    Last Post: 25 Feb 2007, 01:09 AM
  5. how to remove the ad banner at the bottom of the index page?
    By chrisj in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 30 Aug 2006, 01:48 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR