Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 25
  1. #11
    Join Date
    Sep 2008
    Location
    Los Angeles, CA
    Posts
    67
    Plugin Contributions
    0

    Default Re: Home Page Layout

    Thank you, misty. That should help; appreciate it. Another thing I realized, I will need to change the logo to a different .jpg for the home page as well as hide the "Home," "Login," and Search feature. How is this controlled?

  2. #12
    Join Date
    Sep 2008
    Location
    Los Angeles, CA
    Posts
    67
    Plugin Contributions
    0

    Default Re: Home Page Layout

    I figured how to hide the "Home," "Login," and Search field by putting
    Code:
    #navMainWrapper {
    	display: none;
    	}
    in index_home.css. Still don't know what to do with the logo/header image. I would like to replace it with a transparent gif so I could position it where I want and it would still be a link.

  3. #13
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Home Page Layout

    Quote Originally Posted by nosleephotel View Post
    I figured how to hide the "Home," "Login," and Search field by putting
    Code:
    #navMainWrapper {
        display: none;
        }
    in index_home.css. Still don't know what to do with the logo/header image. I would like to replace it with a transparent gif so I could position it where I want and it would still be a link.
    Depends how you have named logo/header image..
    URL of your site is?

  4. #14
    Join Date
    Sep 2008
    Location
    Los Angeles, CA
    Posts
    67
    Plugin Contributions
    0

    Default Re: Home Page Layout

    Here is the link: http://vanessamooney.com/temp/. I was going to hide the logo by putting
    Code:
    #logoWrapperOuter {
    	display: none;
    	}
    in my index_home.css. What would be preferable is if I could instead use a transparent gif, make it the size of the "Vanessa Mooney Jewelry" logo (which is the background image applied to #wholeHeader in index_home.css) and position it over "Vanessa Mooney Jewelry."

    I can do the second and third step but making the logo image a different image for just the home page is what I don't know how to do.

  5. #15
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Home Page Layout

    There is a variant of the Smart Backgrounds code in the support thread (post 104) that is built to switch logos for specific pages. You would put it in /includes/templates/your_template/common/tpl_header.php.
    If you only want the home page different, you could simplify that to:
    PHP Code:
    <!--bof-branding display-->
    <div id="logoWrapper">
    <?php //Smart Backgrounds - for foreground logo - homepage only - 20081006
    $smart_image '';
    //change filename to smartimg_ and pagename only if  page image exists
    $smart_image = (file_exists(DIR_WS_TEMPLATE_IMAGES 'smartimg_' $current_page_base '.gif'))?'smartimg_' $current_page_base '.gif':HEADER_LOGO_IMAGE//default/home page image will be as defined (HEADER_LOGO_IMAGE)
    // /Smart Backgrounds
    ?>
        <div id="logo"><?php echo '<a href="' HTTP_SERVER DIR_WS_CATALOG '">' zen_image($template->get_template_dir($smart_imageDIR_WS_TEMPLATE$current_page_base,'images'). '/' $smart_imageHEADER_ALT_TEXT) . '</a>'?></div>
    Save the homepage logo as
    /includes/templates/your_template/images/smartimg_indexHome.gif.

  6. #16
    Join Date
    Sep 2008
    Location
    Los Angeles, CA
    Posts
    67
    Plugin Contributions
    0

    Default Re: Home Page Layout

    Thanks, Glenn. I'll give it a go.

  7. #17
    Join Date
    Sep 2008
    Location
    Los Angeles, CA
    Posts
    67
    Plugin Contributions
    0

    help question Re: Home Page Layout

    Okay, new questions, guys. I want to add a div layer with some image buttons at the top of my home page. Is there a way I can add this in the tpl_header.php but only for the home page or put it in the code just before the tpl_header.php is called (not sure which file this would be? Here is a screen shot of what I'm trying to accomplish: Screenshot

  8. #18
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Home Page Layout

    Those two buttons would definitely want to go in tpl_header.php, not before it.
    Surround the div with a test:
    PHP Code:
    <?php if ($this_is_home_page) { >?
     
    your HTML button code;
    <?
    php ?>

  9. #19
    Join Date
    Sep 2008
    Location
    Los Angeles, CA
    Posts
    67
    Plugin Contributions
    0

    Default Re: Home Page Layout

    Glenn, thanks for the help. Only tweak was putting the "?" on the left of the ">" in the first line. So it was like:
    PHP Code:
    <?php if ($this_is_home_page) { ?>
     your HTML button code;
    <?php ?>

  10. #20
    Join Date
    Dec 2007
    Posts
    57
    Plugin Contributions
    0

    Default Re: Home Page Layout

    Quote Originally Posted by gjh42 View Post
    You can disable header, footer and sidebars for the home page and have all of your code for the functions you want in define_main_page.php. (Ez-pages can't handle PHP code.)

    See my site for an example.
    I added my code to define_main_page.php yet it does not show on the main page? any ideas?

    Currently it starts with one of the categories yet even if i disable that, i just get a blank area.

    Thanks
    Erez

    www.respectyourtaste.com

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Home Page Layout
    By vanessac in forum Templates, Stylesheets, Page Layout
    Replies: 16
    Last Post: 14 May 2011, 01:28 PM
  2. Home page layout
    By irishshopper in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 10 Jul 2010, 07:02 PM
  3. No layout in my home page
    By tracy_natalia in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 11 Mar 2010, 01:45 PM
  4. Layout on home page
    By evil turinp in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 30 Jul 2009, 06:53 PM
  5. Home page layout
    By gfds in forum Basic Configuration
    Replies: 0
    Last Post: 10 Mar 2008, 11:23 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