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 »

Removing Page titles in single pages with out removing post titles


  #1  
Old Mar 16, 2009, 07:48 AM
robertbrand's Avatar
robertbrand
 
2 posts · Mar 2009
Sydney Australia
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 08:38 PM. Reason: Added sample code and link to website
  #2  
Old Apr 1, 2009, 09:42 PM
computereverything
 
1 posts · Apr 2009
hey dude,

checked out your site, looks good!

i believe the answer your looking for is:


Goto your styles.css file and do a find for: div.post.headline {

create a new line after the { and add the following: display:none


let me know if that helps!

If you like Atahualpa check out my site www.ComputerEverything.net
  #3  
Old Apr 2, 2009, 10:57 AM
d_random
 
51 posts · Apr 2009
I am having the same problem.

Based on what computereverything suggested, below is the edited code in styles.css. Is this correct, it does not seem to have any effect?

Code:
div.post-headline {
display:none
	/* more  ... */
	}
  #4  
Old Apr 2, 2009, 10:12 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
The code you used

PHP Code:
  if( !is_single() AND !is_page() ) 
means "if this is not a post, and not a page"

Use

PHP Code:
  if( !is_page() ) 
for "if this is not a page"

or

PHP Code:
  if( is_page() ) 
for "if this IS a page"
  #5  
Old Apr 2, 2009, 10:23 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
Quote:
Originally Posted by d_random
I am having the same problem.

Based on what computereverything suggested, below is the edited code in styles.css. Is this correct, it does not seem to have any effect?

Code:
div.post-headline {
display:none
    /* more  ... */
    }
The theme still requires PHP edits in theme files for certain customizations, but you should never have to edit style.css to add CSS, there's Atahualpa Theme Options -> HTML/CSS Inserts -> CSS Inserts for that

HTML Code:
div.page div.post-headline {
display: none;
}
Note that Google might object to this since you're basically "hiding" text, vene if only a little bit of text. I am adding a PHP based "don't display titles on pages" option in the next version.
  #6  
Old Apr 6, 2009, 10:04 AM
d_random
 
51 posts · Apr 2009
Cool! Thanks Flynn. I'll hold out to the updated then.
  #7  
Old May 12, 2009, 06:59 AM
eyup
 
34 posts · Mar 2009
Quote:
Originally Posted by Flynn
I am adding a PHP based "don't display titles on pages" option in the next version.
Hi Flynn,

By next version do you mean 3.3.4 ?

Regards
  #8  
Old Jun 21, 2011, 11:33 AM
loislanemiami's Avatar
loislanemiami
 
14 posts · Apr 2009
Miami, Florida
Send a message via AIM to loislanemiami
I need to know how to remove the page titles that show up on my pages themselves. For example: I do not want the word "Services" listed on my page before I list my services.

See here how the "Welcome" shows up at the beginning of the page text:

http://threebuddiespaintandbody.com/

Also I have version 3.6.7

And, I will need very specific instructions. Pretend like you are addressing a six year old when you explain how I can accomplish this task.

I would also like a tab (page) that says "Home" but I do not want it to include any text. I just want that page to go to www.threebuddiespaintandbody.com.

Thanking you in advance.

Bookmarks



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


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


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