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:confused: |
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 |
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 { |
The code you used
PHP Code:
Use PHP Code:
or PHP Code:
|
Quote:
HTML Code:
div.page div.post-headline { |
Cool! Thanks Flynn. I'll hold out to the updated then.
|
Quote:
By next version do you mean 3.3.4 ? Regards |
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. |
All times are GMT -6. The time now is 08:14 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.