Results 1 to 10 of 10
  1. #1
    Join Date
    Mar 2008
    Posts
    26
    Plugin Contributions
    0

    Default Moving "New Products" center box higher on home page

    www.200westmain.com/citypretties

    I would like to move the New Products center box up higher on my page. In other words, I'd like to set it between the text I have there - about smack in the middle.

    Is there a simple way to do this?

    Thanks!

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Moving "New Products" center box higher on home page

    Look at your admin > tools > define pages editor > main_page.php and remove any space at the bottom of this content
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Mar 2008
    Posts
    26
    Plugin Contributions
    0

    Default Re: Moving "New Products" center box higher on home page

    Quote Originally Posted by kobra View Post
    Look at your admin > tools > define pages editor > main_page.php and remove any space at the bottom of this content
    Hello Kobra,

    Thank you. I have done this and it removes the space between the bottom of the text and the centerbox. But what I'd like to do is set the centerbox midway on the page, between lines of text, right above where it says "Custom orders are always welcome!"

    Is it possible to do this?

    Thank you again,
    CPJ

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Moving "New Products" center box higher on home page

    Not above as this is only what is contained in the main_page.php file

    If you want the text "Custom orders are always welcome!" to be after the new listings you would remove fron the define main_page.php file and can add it in a div in your copy of common/tpl_main_page.php file
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Mar 2008
    Posts
    26
    Plugin Contributions
    0

    Default Re: Moving "New Products" center box higher on home page

    Quote Originally Posted by kobra View Post
    Not above as this is only what is contained in the main_page.php file

    If you want the text "Custom orders are always welcome!" to be after the new listings you would remove fron the define main_page.php file and can add it in a div in your copy of common/tpl_main_page.php file
    Okay. I just wanted it higher on the page, but I guess I'm just too verbose. Thanks for your help.

    CPJ

  6. #6
    Join Date
    Aug 2008
    Posts
    96
    Plugin Contributions
    0

    Default Re: Moving "New Products" center box higher on home page

    Quote Originally Posted by CPJ View Post
    Okay. I just wanted it higher on the page, but I guess I'm just too verbose. Thanks for your help.

    CPJ
    edit your stylesheet.css

    find .centerBoxWrapper

    and add the line margin-top:-300px;

    before }

    with this it will move 300px up (the minus)

    che tutorial how to save stylesheets

  7. #7
    Join Date
    Mar 2008
    Posts
    26
    Plugin Contributions
    0

    Default Re: Moving "New Products" center box higher on home page

    Quote Originally Posted by procella View Post
    edit your stylesheet.css

    find .centerBoxWrapper

    and add the line margin-top:-300px;

    before }

    with this it will move 300px up (the minus)

    che tutorial how to save stylesheets
    Thank you, Procella. I have done that and it works, but now my afore-mentioned verbosity is on top of the centerbox. How do I correct this? See it here:

    http://200westmain.com/citypretties/

    Thanks,
    Becky

  8. #8
    Join Date
    Mar 2008
    Posts
    26
    Plugin Contributions
    0

    Default Re: Moving "New Products" center box higher on home page

    I've returned my stylesheet to its previous incarnation, but the text was imposed on top of the centerbox images. Is there a way around this?

  9. #9
    Join Date
    Dec 2008
    Posts
    55
    Plugin Contributions
    0

    Default Re: Moving "New Products" center box higher on home page

    I'd also like to know how to do this...

  10. #10
    Join Date
    Dec 2008
    Posts
    55
    Plugin Contributions
    0

    Default Re: Moving "New Products" center box higher on home page

    I found the answer in a similar thread: https://www.zen-cart.com/forum/showthread.php?t=82643

    What you need to do is:

    * Go to your zencart\includes\templates\custom\templates folder (in my case custom is replaced by cherry_zen, yours may be different.

    * Open the file tpl_index_default.php in your favorite text editor (I personally use Notepad ++).

    * Make sure you make a backup of this file prior to doing any editing (you can do this by copying it into the same folder).

    * Whatever boxes you would like to move, copy and paste to the top of the page, like so:

    Let's say we want to move "New Products" above our main text content.

    Look for something like this:

    Code:
    <?php
    /**
     * Page Template
     *
     * Main index page<br />
     * Displays greetings, welcome text (define-page content), and various centerboxes depending on switch settings in Admin<br />
     * Centerboxes are called as necessary
     *
     * @package templateSystem
     * @copyright Copyright 2003-2006 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: tpl_index_default.php 3464 2006-04-19 00:07:26Z ajeh $
     */
    ?>
    <div class="centerColumn" id="indexDefault">
    <h1 id="indexDefaultHeading"><?php echo HEADING_TITLE; ?></h1>
    
    <?php if (SHOW_CUSTOMER_GREETING == 1) { ?>
    <h2 class="greeting"><?php echo zen_customer_greeting(); ?></h2>
    <?php } ?>
    
    <!-- deprecated - to use uncomment this section
    <?php if (TEXT_MAIN) { ?>
    <div id="" class="content"><?php echo TEXT_MAIN; ?></div>
    <?php } ?>-->
    
    <!-- deprecated - to use uncomment this section
    <?php if (TEXT_INFORMATION) { ?>
    <div id="" class="content"><?php echo TEXT_INFORMATION; ?></div>
    <?php } ?>-->
    
    <?php if (DEFINE_MAIN_PAGE_STATUS >= 1 and DEFINE_MAIN_PAGE_STATUS <= 2) { ?>
    <?php
    /**
     * get the Define Main Page Text
     */
    ?>
    Right above where it says DEFINE_MAIN_PAGE_STATUS, paste in your boxes you want displayed above your content, in this case the "New Products" box:

    Code:
    <?php
    /**
     * display the New Products Center Box
     */
    ?>
    
    
    <?php require($template->get_template_dir('tpl_modules_whats_new.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_whats_new.php'); ?>
    Upload to the correct folder on your server and voila! You now have your boxes above your text content.

 

 

Similar Threads

  1. How to remove ellipses ("...") after "All Products" and "New Products" on home page?
    By jthurman in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 18 May 2010, 03:30 PM
  2. Number of products in "Featured Products" box on home page.
    By SandraSD in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 17 Dec 2009, 04:12 AM
  3. make product details show up in "featured products" center box on main page
    By traypup in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 31 Mar 2009, 01:41 AM
  4. Inside the "Categories" box it says "New Products" and "All Products"...
    By john9 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 25 Feb 2007, 07:55 AM
  5. How to remove center box "New Products for..."
    By trijohnd in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 15 Aug 2006, 11:58 AM

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