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 »

What if I want no title on a Page?


  #1  
Old Dec 12, 2008, 04:02 PM
bseppa
 
55 posts · Dec 2008
Should I create a Page Template as I did in Atahualpa 2 or am I missing something? Will my Atahualpa 2 page template work in Atahualpa 3?

Thanks!
  #2  
Old Dec 12, 2008, 04:20 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
Atahualpa 2 templates wouldn't work

You'd have to either create pagename.php or page.php, or change in index.php line 202


PHP Code:
elseif (function_exists('the_title')) {the_title();} ?> 
to (XXX = ID of that page)

PHP Code:
elseif (function_exists('the_title') AND $current_page_id != 'XXX') {the_title();} ?> 
I have not tested this
  #3  
Old Dec 12, 2008, 07:32 PM
bseppa
 
55 posts · Dec 2008
Line 202 looks like this now:

PHP Code:
elseif (function_exists('the_title') AND $current_page_id != '3') {the_title();} ?>"><?php the_title(); if( !is_single() AND !is_page() ) { ?></a><?php ?></h2>
No dice. '3' is the unique ID of my Home Page but "Home" still shows up above the content.

I like this approach because I only ever have to do this for one page. Thoughts?
  #4  
Old Dec 13, 2008, 01:19 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
Sorry I gave you a wrong code

Wrap the whole section from line 198-203 in index.php

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>
into

PHP Code:
<?php if($current_page_id != '3') { ?>
... line 198-203 ...
<?php ?>


  #5  
Old Dec 13, 2008, 01:25 PM
bseppa
 
55 posts · Dec 2008
That was it... thanks!
  #6  
Old Dec 13, 2008, 01:26 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
So you've set a static page as your homepage? In that case

PHP Code:
<?php if ( !is_front_page() ) { ?>
... line 198-203 ...
<?php ?>
should work, too, with the added flexibility that it would work even after you chose another page as the homepage

To others who want to do the same: is_front_page was added in Wordpress 2.5
  #7  
Old Dec 13, 2008, 01:28 PM
bseppa
 
55 posts · Dec 2008
Just changed to

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

Worked great and you are right about my use of the static page feature.

I am loving this theme!

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing page title from static front page in 3.41 or 3.42? whomadewho New Versions, & Updating 2 Jul 13, 2009 10:54 PM
How do I change the Font color and bullets for the Page title in the Page Widget chrysos Page & Category Menu Bars 2 May 31, 2009 06:15 PM
Show Post Title as Page Title patgeary Header configuration & styling 2 Mar 27, 2009 07:10 PM
Page Title different Page Menu Bar Listing Shepherd Jim Page & Category Menu Bars 0 Mar 10, 2009 10:25 PM
Change color of post title only, not page title jockoe Atahualpa 3 Wordpress theme 1 Feb 26, 2009 06:14 PM


All times are GMT -6. The time now is 01:46 AM.


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