WordPress Static Page Messes Up Theme

by SJstar
3 replies
  • WEB DESIGN
  • |
Hello,

I'm using this theme here

New WP Themes

and each time I try to create a static homepage, it removes the about section of the theme (the image and 'welcome to our website' section directly below the navigation menu). Could someone tell me how what I'm doing wrong or point me in the right direction to find a solution?
#messes #page #static #theme #wordpress
  • Profile picture of the author xtrapunch
    When you use as static page as home page, the template is different from regular homepage. This causes the problem.
    Signature
    >> Web Design, Wordpress & SEO - XtraPunch.com <<
    Web Design & SEO Agency | Serving World Wide from New Delhi, India

    {{ DiscussionBoard.errors[3812090].message }}
  • Profile picture of the author dassad
    Originally Posted by SJstar View Post

    Hello,

    I'm using this theme here

    New WP Themes

    and each time I try to create a static homepage, it removes the about section of the theme (the image and 'welcome to our website' section directly below the navigation menu). Could someone tell me how what I'm doing wrong or point me in the right direction to find a solution?

    Hello, you can add the welcome text and the image to pages to, even the index using a static page with some easy modifications.

    Please note that this way ALL YOUR PAGES will have this section in the header.

    So here it is how you can do it:

    1. Open you wordpress admin dashboard
    2. Go to Apperance / Editor
    3. On the right side click PAGE.PHP
    4. in the SECOND line add add this line of code:
    Code:
    <?php include (TEMPLATEPATH . '/home-about.php'); ?>
    5. Your page.php first twoo lines need to look like this:

    Code:
    <?php get_header(); ?>
    <?php include (TEMPLATEPATH . '/home-about.php'); ?>
    <div class="span-24" id="contentwrap">
    Also here is another method and i'm not sure if works with static page index but you can check it. The file that you need to edit is the same just the code that you have to insert in the second line looks like this:

    Code:
    <?php if(is_home()) { include (TEMPLATEPATH . '/home-about.php'); } ?>
    So your first three lines should be these:

    Code:
    <?php get_header(); ?>
    <?php if(is_home()) { include (TEMPLATEPATH . '/home-about.php'); } ?>
    <div class="span-24" id="contentwrap">
    Save your theme and check it First try the second solution so the welcome text and image appears only in the FRONT PAGE and not at other pages to.

    Regards,
    daSSad
    {{ DiscussionBoard.errors[3812342].message }}
    • Profile picture of the author SJstar
      Originally Posted by dassad View Post

      Hello, you can add the welcome text and the image to pages to, even the index using a static page with some easy modifications.

      Please note that this way ALL YOUR PAGES will have this section in the header.

      So here it is how you can do it:

      1. Open you wordpress admin dashboard
      2. Go to Apperance / Editor
      3. On the right side click PAGE.PHP
      4. in the SECOND line add add this line of code:
      Code:
      <?php include (TEMPLATEPATH . '/home-about.php'); ?>
      5. Your page.php first twoo lines need to look like this:

      Code:
      <?php get_header(); ?>
      <?php include (TEMPLATEPATH . '/home-about.php'); ?>
      <div class="span-24" id="contentwrap">
      Also here is another method and i'm not sure if works with static page index but you can check it. The file that you need to edit is the same just the code that you have to insert in the second line looks like this:

      Code:
      <?php if(is_home()) { include (TEMPLATEPATH . '/home-about.php'); } ?>
      So your first three lines should be these:

      Code:
      <?php get_header(); ?>
      <?php if(is_home()) { include (TEMPLATEPATH . '/home-about.php'); } ?>
      <div class="span-24" id="contentwrap">
      Save your theme and check it First try the second solution so the welcome text and image appears only in the FRONT PAGE and not at other pages to.

      Regards,
      daSSad
      I just tried this today and I have to thank you so much!!! I couldn't get the second one to work, but I did get the first one to work so the section shows on all pages; I like that much better. Thank you very much!!!!
      {{ DiscussionBoard.errors[3836449].message }}

Trending Topics