Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1
    Join Date
    Nov 2012
    Posts
    50
    Plugin Contributions
    0

    help question i'd like to replace the home page with a static html page (how though?)

    i want all the HOME links within the zen cart site to link back to the index.html as well. is there an easy way to do this?

    thanks.

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

    Default Re: i'd like to replace the home page with a static html page (how though?)

    Most hosts will load html preferentially so you can try this and just place a link on that page to your shop /index.php
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Nov 2012
    Posts
    50
    Plugin Contributions
    0

    Default Re: i'd like to replace the home page with a static html page (how though?)

    Quote Originally Posted by kobra View Post
    Most hosts will load html preferentially so you can try this and just place a link on that page to your shop /index.php
    but how do i get all the links going back to that page from the zen pages?

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

    Default Re: i'd like to replace the home page with a static html page (how though?)

    Find your templates copy of tpl_header.php and this code
    Code:
    <div id="navMain">
        <ul class="back">
        <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
    Change code in red to an href back to your html page
    Leave the <li>
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Nov 2012
    Posts
    50
    Plugin Contributions
    0

    Default Re: i'd like to replace the home page with a static html page (how though?)

    PHP Code:
    <?php

    /**

     * Common Template - tpl_header.php

     *

     * this file can be copied to /templates/your_template_dir/pagename<br />

     * example: to override the privacy page<br />

     * make a directory /templates/my_template/privacy<br />

     * copy /templates/templates_defaults/common/tpl_footer.php to /templates/my_template/privacy/tpl_header.php<br />

     * to override the global settings and turn off the footer un-comment the following line:<br />

     * <br />

     * $flag_disable_header = true;<br />

     *

     * @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_header.php 4813 2006-10-23 02:13:53Z drbyte $

     */

    ?>

    <?php



        

      
    // Display all header alerts via messageStack:

      
    if ($messageStack->size('header') > 0) {

        echo 
    $messageStack->output('header');

      }

      if (isset(
    $_GET['error_message']) && zen_not_null($_GET['error_message'])) {

      echo 
    htmlspecialchars(urldecode($_GET['error_message']));

      }

      if (isset(
    $_GET['info_message']) && zen_not_null($_GET['info_message'])) {

       echo 
    htmlspecialchars($_GET['info_message']);

    } else {



    }

    ?>





    <?php

    if (!isset($flag_disable_header) || !$flag_disable_header) {

    ?>



    <div id="header">

        <div class="header-inner">

            <div class="main-width">

                <div class="wrapper">

                    <div class="logo">

                        <!-- ========== LOGO ========== -->

                            <a href="<?php echo zen_href_link(FILENAME_DEFAULT);?>"><?php echo zen_image(DIR_WS_TEMPLATE.'images/logo.png'); ?></a>

                        <!-- ========================== -->

                    </div>

                    <div class="right-head">

                        <div class="wrapper">

                            <div class="search">

                                <!-- ========== SEARCH ========== -->

                                    <?php echo zen_draw_form('quick_find_header'zen_href_link(FILENAME_ADVANCED_SEARCH_RESULT'''NONSSL'false), 'get');?>

                                        <div>

                                    <?php 

                                        
    echo zen_draw_hidden_field('main_page',FILENAME_ADVANCED_SEARCH_RESULT);

                                        echo 
    zen_draw_hidden_field('search_in_description''1') . zen_hide_session_id();

                                    
    ?>

                                    

                                    <span class="corner"></span>

                                    <?php echo zen_draw_input_field('keyword''''class="input1"');?>

                                    <?php echo zen_image_submit ('search.gif'HEADER_SEARCH_BUTTON'class="input2" ');?>

                                    

                                    

                                        </div>

                                    </form>

                                <!-- ============================ -->

                            </div>

                            <div class="navigation">

                                <!-- ========== NAVIGATION LINKS ========== -->                                

                                    

                                <!-- ====================================== -->

                            </div>

                        </div>

                        <div class="wrapper box2">

                        

                                <!-- ========== MENU ========== -->

                                        <?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE$_SERVER['REMOTE_ADDR'])))) { ?>

                                            <?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE$current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>

                                        <?php ?>

                                <!-- ========================== -->

                            

                        </div>

                    </div>

                </div>

            </div>

        </div>

    </div>



        

        <?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

                
    }

            }

        
    ?>

       

                    

        

    <?php ?>
    seems the guy that set this up edited this. does this mean i need to make the changes you mention in the "tpl_ezpages_bar_header.php" ?

  6. #6
    Join Date
    Nov 2012
    Posts
    50
    Plugin Contributions
    0

    Default Re: i'd like to replace the home page with a static html page (how though?)

    p.s. thanks for the help ;)

  7. #7
    Join Date
    Nov 2012
    Posts
    50
    Plugin Contributions
    0

    Default Re: i'd like to replace the home page with a static html page (how though?)

    this is whats in the tpl_ezpages_bar_header.php
    PHP Code:
    <?php

    /**

     * Page Template

     *

     * Displays EZ-Pages Header-Bar content.<br />

     *

     * @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_ezpages_bar_header.php 3377 2006-04-05 04:43:11Z ajeh $

     */



      /**

       * require code to show EZ-Pages list

       */

      
    include(DIR_WS_MODULES zen_get_module_directory('ezpages_bar_header.php'));

    ?>

    <?php if (sizeof($var_linksList) >= 1) { ?>

    <div id="nav-cat"> 

    <div id="level1"> 

      <ul> 

        <?php 

        $count 
    1;

            foreach(
    $var_linksList as $list) { 

                
    $link_list substr($list['link'], strrpos($list['link'], '/')); 

                
    $link_referer str_replace('&''&amp;'$_SERVER['REQUEST_URI']); 

                
    $link_referer substr($link_refererstrrpos($link_referer'/'));

                

                

                if(
    $link_list == $link_referer){ 

                    
    $class 'selected'

                }else{ 

                    
    $class ''

                } 

                if(
    $this_is_home_page && strpos($link_list'main_page=index')){ 

                    
    $class 'selected'

                } 

               if(!
    next($var_linksList)){

                    
    $last 'last';

                }

                else 
    $last ''

                if(
    $count == 1){

                    
    $first 'first';

                }

                else 
    $first ''

                echo 


                    <li class="' 
    $class ' '.$last.' '.$first.'"> 

                        <a href="' 
    $list['link'] . '"> 

                            <span class="corner"></span>

                            <span> 

                                <span>' 
    $list['name'] . '</span> 

                            </span> 

                        </a> 

                    </li> 

                '


                
    $count ++;

            } 

           
    ?> 

      </ul> 

    </div>

    </div>

    </div>

    <?php ?>

  8. #8
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: i'd like to replace the home page with a static html page (how though?)

    Link to the site??

    Where do you have a "Home" link

    To have clicking your logo take you back to your html page replace this href with yours in the file you posted
    Code:
    <!-- ========== LOGO ========== -->
    
                            <a href="<?php echo zen_href_link(FILENAME_DEFAULT);?>"><?php echo zen_image(DIR_WS_TEMPLATE.'images/logo.png'); ?></a>
    Zen-Venom Get Bitten

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

    Default Re: i'd like to replace the home page with a static html page (how though?)

    It is not in the tpl_ezpages_bar_header.php file
    As ezpages are in the database you would need to change the link reference in
    admin > tools > EZ-Pages > edit the header link
    Zen-Venom Get Bitten

  10. #10
    Join Date
    Nov 2012
    Posts
    50
    Plugin Contributions
    0

    Default Re: i'd like to replace the home page with a static html page (how though?)


 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v154 I like to have my home page opened with the categories showing all the categories box
    By cj.dekrijger in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 18 Aug 2015, 09:32 PM
  2. v151 Trying to make New Products on Home Page static/stay on page
    By happangl7 in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 13 Aug 2013, 05:22 PM
  3. How to replace Header menu with static buttons?
    By perfumbg in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 13 Nov 2010, 06:50 PM
  4. How Do I Replace the EZ-Page Header Bar with a Adsense Script?
    By catmandu79 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 28 Dec 2008, 02:25 PM
  5. I would like to edit the HTML on my home page.
    By bparker in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 31 Oct 2008, 08:07 AM

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