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 »

Removing Page titles in single pages with out removing post titles


 
Prev Previous Post   Next Post Next
  #1  
Old Mar 16, 2009, 06:48 AM
robertbrand's Avatar
robertbrand
 
2 posts · Mar 2009
Sydney Australia
Layout Removing Page titles in single pages with out removing post titles

I have a drop down menu that uses the page titles. I am trying to remove the page names being repeated at the top of each single page. I have implemented code that removes it by inserting php code in the index.php file around the class="post-headline" code, but it also removes the post titles when you click on a post and it goes to a single page view.

No title looks bad. How do I keep post titles on single pages, but get rid of the repeat of the page title. It just takes up room and I have full length titles for each page anyway. Page names when used in a menu may be short such as "info", but I do not want "info" as my title for the page.

www.echoesofapollo.com

Home page is the blog. Click on any other page and the page name is gone (good)

Click on a post and the title is gone (bad)

Code that was used (from previous threads):

<!-- Post Headline -->
<?php
if (!is_page() AND !is_single()) { ?>
<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 } ?>

This replaced the code in the index.php:

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

Any thoughts? regards RB

Last edited by robertbrand; Mar 17, 2009 at 07:38 PM. Reason: Added sample code and link to website
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
removing titles on each page nickcee Atahualpa 3 Wordpress theme 4 Jun 11, 2009 09:14 AM
[SOLVED] Removing tags from multi post pages bushtool Atahualpa 3 Wordpress theme 2 May 31, 2009 10:18 AM
How do I use TTF Titles Plugin on the widget titles? chavahn Sidebars & Widgets 0 Mar 5, 2009 10:05 AM
Removing Page Titles Velma Atahualpa 3 Wordpress theme 2 Feb 16, 2009 06:01 PM
Take Page Titles and Widget Titles for example... bseppa Sidebars & Widgets 0 Dec 12, 2008 07:44 PM


All times are GMT -6. The time now is 12:11 AM.


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