Results 1 to 10 of 13

Hybrid View

  1. #1
    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.

  2. #2
    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

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

    Default Re: different main page

    Very helpful Kobra, thank you.
    Henrietta


  4. #4
    Join Date
    Oct 2004
    Posts
    417
    Plugin Contributions
    0

    Default Re: different main page

    I use the below code to only show image on homepage. This might be a helpful to others. I'm also using latest zen 1.3.8a. Put the code in your tpl_header.php which is found in the common folder. Make sure to put it in the overrides. you can view my web site link below. I beleive this is what you looking for?

    <!-- bof top image -->
    <?php if ($this_is_home_page) { ?>
    <div align="center">
    <center>
    <table border="0" cellspacing="0" width="800" cellpadding="0">
    <tr>
    <td>
    <img border="0" src="http://your domain/images/your_image.jpg" alt="Athying goes here">
    </td>
    </tr>
    </table>
    </center>
    </div>
    <?php } ?>
    <!-- eof top image -->

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

    Default Re: different main page

    Quote Originally Posted by covone View Post
    I use the below code to only show image on homepage.
    While the use of the $this_is_home_page is absolutely correct, I'd strongly recommend against introducing tables, the center attribute and the deprecated <center> tag into the header template. There are much better and controllable ways of placing a centered image in your header.
    Kuroi Web Design and Development | Twitter

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

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

    Default Re: different main page

    And before I forget, remember that you can also change the appearance of your home page by creating a index_home.css stylesheet.
    Kuroi Web Design and Development | Twitter

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

 

 

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