Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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, 10:55 AM
tomlucas
 
2 posts · Apr 2009
Northern Florida
How to create a static home page?

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, 08: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 04:31 AM. Reason: Changed is_frontpage() to is_front_page()
  #3  
Old Apr 21, 2009, 01: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



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 07:48 AM
including page menu bar in static home page Lee Mandell Page & Category Menu Bars 1 Jun 4, 2009 08:35 AM
Sidebars are still on static home page, won't go away. krystyna Sidebars & Widgets 1 May 25, 2009 07:01 PM
Static Home Page - Pages - Articles - Posts ScottiedogDave Atahualpa 3 Wordpress theme 3 Apr 17, 2009 07:10 AM
Static Home page, separate tab for posts pbravin Page & Category Menu Bars 1 Feb 24, 2009 08:55 AM


All times are GMT -6. The time now is 05:54 PM.


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