Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Page & Category Menu Bars »

How to create a static home page?


  #1  
Old Apr 20, 2009, 09:55 AM
tomlucas
 
2 posts · Apr 2009
Northern Florida
When I initially created this blog, it was with another theme and after finding this wonderful theme have converted it. And, the "Home Page" had all the postings.

Now, I have created a static page that I wish to be my "Home Page."

For the time being, I have created a "work around." However, when anyone goes to my URL,
http://samtom.net/blog they go straight to the default home page that's currently labeled "Postings" rather than to the static page I've designated as "Home."

Also, this static page is titled "Home" which puts the link in link area, but also places a bolded "Home"
at the beginning of the static page. How do I eliminate the bolded "Home" in the body of the static page?

How do I get all in the proper slots so everything works like it should including the proper order of the links above the header?

Many thanks,

Tom
  #2  
Old Apr 20, 2009, 07:18 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
Regarding links in the menu see Theme Options -> Page Menu Bar

To set a static page as the home page see Site Admin -> Settings -> Reading

To remove the page heading from the page body on the homepage add this to HTML/CSS Inserts -> CSS Insert

HTML Code:
body#body-frontpage div.post-title {
display: none;
}
This might cause problems with Google as you're effectively "hiding" text. Alternatively try this to move the heading off the screen instead:

HTML Code:
body#body-frontpage div.post-title {
margin-left: -999em;
}
The Google-safe version would be to manually edit index.php and replace this
PHP Code:
        <!-- Post Headline -->                    
        <div class="post-headline">    
        <h2><?php 
        
if( !is_single() AND !is_page() ) { ?>
            <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php 
            
if (function_exists('the_title_attribute')) { 
                
the_title_attribute();
            } 
            elseif (
function_exists('the_title')) { 
                
the_title();
            } 
?>"><?php 
        
the_title(); 
        if( !
is_single() AND !is_page() ) { ?>
            </a><?php 
        
?>
        </h2>
        </div>
with this

PHP Code:
<?php if ( !is_front_page() ) { ?>
        <!-- Post Headline -->                    
        <div class="post-headline">    
        <h2><?php 
        
if( !is_single() AND !is_page() ) { ?>
            <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php 
            
if (function_exists('the_title_attribute')) { 
                
the_title_attribute();
            } 
            elseif (
function_exists('the_title')) { 
                
the_title();
            } 
?>"><?php 
        
the_title(); 
        if( !
is_single() AND !is_page() ) { ?>
            </a><?php 
        
?>
        </h2>
        </div>
<?php ?>

Last edited by Flynn; Apr 21, 2009 at 03:31 AM. Reason: Changed is_frontpage() to is_front_page()
  #3  
Old Apr 21, 2009, 12:47 AM
clevis
 
1 posts · Apr 2009
Thanks for the post Quinn - very helpful!

I think there's a minor typo in the PHP, to whit:

"<?php if ( !is_frontpage() ) { ?>"

should be

"<?php if ( !is_front_page() ) { ?>"

Cheers!

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I create a Home Page with Posts in it? wdycus Post-Kicker, -Byline & -Footer 5 Aug 31, 2010 06:48 AM
including page menu bar in static home page Lee Mandell Page & Category Menu Bars 1 Jun 4, 2009 07:35 AM
Sidebars are still on static home page, won't go away. krystyna Sidebars & Widgets 1 May 25, 2009 06:01 PM
Static Home Page - Pages - Articles - Posts ScottiedogDave Atahualpa 3 Wordpress theme 3 Apr 17, 2009 06:10 AM
Static Home page, separate tab for posts pbravin Page & Category Menu Bars 1 Feb 24, 2009 07:55 AM


All times are GMT -6. The time now is 06:32 PM.


Powered by vBulletin® Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.