Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Jun 2007
    Posts
    3
    Plugin Contributions
    0

    Default different main page

    Hello I'm working with one of these dreaded Template monster templates, however so far things are going okay, I think.

    However I want to use a large image on my home page, then have it disappear for all of the others.

    What code do I have to add?

    My site is http://www.ningunpecado.com/catalog

    Thanks

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

    Default Re: different main page

    What ever you do will probably not work with their template - -

    But you can attempt to use the admin > tools > defines page editor > main_page.php > and insert the image there

    If the template uses the main_page.php function there you have it

    If not you will need to get with them
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jun 2007
    Posts
    3
    Plugin Contributions
    0

    Default Re: different main page

    I thought that there was a main page only bit of code that I could put in?

  4. #4
    Join Date
    Mar 2005
    Location
    South coast of MA, USA
    Posts
    98
    Plugin Contributions
    0

    Default Re: different main page

    One way to do that without messing up anything is to create a "default.php" page by saving the index.php page as default.php.

    Then change what you want on the default.php page... make that the landing page by changing your htaccess file list to default.php index.php index.html

    That way the default page will appear first, but everything will work - you product pages, search results...etc since they use the index.php page.
    You should add a link to the default page too.

  5. #5
    Join Date
    Jun 2007
    Posts
    3
    Plugin Contributions
    0

    Default Re: different main page

    Sorry but what and where is my htaccess file list?

  6. #6
    Join Date
    Mar 2005
    Location
    South coast of MA, USA
    Posts
    98
    Plugin Contributions
    0

    Default Re: different main page

    To change yourd default directory page:
    http://www.javascriptkit.com/howto/htaccess6.shtml

    Your htaccess file is in the root diectory

  7. #7
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: different main page

    Zen Cart has a variable called $this_is_home_page that can be used to differentiate the contents of the home page from all others. For example
    if ($this_is_home_page) {
    your special code in here
    } else {
    normal code for all other pages in here
    }
    However, because of the way that Template Monster completely re-write much of the template code, there is a high risk that this will not work for you.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  8. #8
    Join Date
    Apr 2007
    Posts
    98
    Plugin Contributions
    0

    Default Re: different main page

    Now I'm having problem to understand about adding image on the main page. OK I got the "add the image inside your define_main_page.php" part, but how to link the image?

    Example, my image "title2.jpg" is inside my /include/templates/MY_TEMPLATE/images/ subfloder. How can I put the code inside "define_main_page.php" to link my image from this subfolder?

    Please somebody help.

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

    Default Re: different main page

    In the define page editor you can enter normal html code for this - just create you anchor statement sorts like:
    Code:
    <a href="Your_reference"><img src="images/your_image.gif" alt="alt_text" width="80" height="80" /></a>
    Zen-Venom Get Bitten

  10. #10
    Join Date
    Mar 2007
    Location
    WAY out West
    Posts
    89
    Plugin Contributions
    0

    Default Re: different main page

    Very helpful Kobra, thank you.
    Henrietta


 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 Different main page when logged in
    By DigiBooks in forum General Questions
    Replies: 5
    Last Post: 11 Jul 2015, 06:29 PM
  2. header different on main page
    By johnybravo in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 26 Sep 2011, 10:30 AM
  3. How to make the HOME page (index) different than the STORE page (main page)?
    By Dianna668 in forum Templates, Stylesheets, Page Layout
    Replies: 14
    Last Post: 27 Apr 2011, 05:29 PM
  4. Different main page
    By CabernetCat in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 2 Jul 2009, 10:48 AM
  5. Defining different (dynamic) main page
    By Dzy in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 25 Jun 2008, 10:25 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