Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2011
    Posts
    7
    Plugin Contributions
    0

    Default Make 'Home' Main_Page.php

    I know the question of how to change the Home page has been asked loads on here. I still have a problem getting what i want though and can't get my head round it.

    Ive just started the site and got few tweaks that i need to fix before it goes live though. Im using a previously built website of a friends who is hosting it for me and the 'Home' Link is not what i want it to be. He had it as a direct link to a product. I want it to be a link to the define_main_page.php so i can have text info on the front page to welcome customers.

    Currently the code in tpl_header is:

    PHP Code:
    <li><?php echo '<a href="' HTTP_SERVER '">'?>&nbsp;<?php echo HEADER_TITLE_HOME_PAGE?></a></li>
    This is the site www.flagsofwar.com

    Any help would be most welcome and sorry for being such a Noob.

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

    Default Re: Make 'Home' Main_Page.php

    It already is by default if you have main_page.php enabled

    No need to alter the code
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Aug 2011
    Posts
    7
    Plugin Contributions
    0

    Default Re: Make 'Home' Main_Page.php

    What i have doesn't goto Main Page

    My site says 'There are no products to list in this category.'

    PHP Code:
    <!--bof-navigation display-->
    <div id="navMainWrapper">
    <div id="navMain">
        <ul class="back">
        <li><?php echo '<a href="' HTTP_SERVER DIR_WS_CATALOG '">'?><?php echo HEADER_TITLE_CATALOG?></a></li>
    <li><a href="http://www.facebook.com/pages/Flags-of-War/162420477106933"target="_blank">Facebook</a>
    <a href="http://flagsofwar.##########################"target="_blank">Blog</a></li>
    <?php if ($_SESSION['customer_id']) { ?>
        <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF'''SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF?></a></li>
        <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT'''SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT?></a></li>
    <?php
          
    } else {
            if (
    STORE_STATUS == '0') {
    ?>
        <li><a href="<?php echo zen_href_link(FILENAME_LOGIN'''SSL'); ?>"><?php echo HEADER_TITLE_LOGIN?></a></li>
    <?php } } ?>

    </ul>
    </div>

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

    Default Re: Make 'Home' Main_Page.php

    Check your settings
    admin > config > layout settings > Main Page - Opens with Category > 0
    admin > config > layout settings > Always Show Categories on Main Page > 0

    admin > config > Define Page Status > Define Main Page Status > 1

    Maybe one or two more??
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Aug 2011
    Posts
    7
    Plugin Contributions
    0

    Default Re: Make 'Home' Main_Page.php

    Ah mate you are a legend. Thanks so much.

 

 

Similar Threads

  1. Home Button and index.php?main_page=index
    By Delights in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 11 Sep 2010, 01:56 AM
  2. Replies: 0
    Last Post: 12 Feb 2010, 07:10 PM
  3. Can I change my home page to index.php?main_page=page&id=1 ?
    By Derek_ICD in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 13 Oct 2009, 08:06 PM
  4. main_page=products_all - how to make this the default view?
    By lanexa in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 11 Mar 2009, 11:17 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