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 »

[SOLVED] Remove page title from certain pages


  #1  
Old Jun 7, 2010, 12:56 PM
misterfriend
 
17 posts · Mar 2010
Hello
I want to remove the page title from certain pages on my site while keeping the page name in the menu bar.
I found this code in an earlier post to put into the Loop

<?php if (!is_page() ) { bfa_post_headline('<div class="post-headline">','</div>'); } ?>

But this removes the title from all pages. How do I specify individual pages? As you can tell I'm still trying to get my head round php so bear with me if this seems obvious
Cheers
  #2  
Old Jun 7, 2010, 02:58 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
see http://codex.wordpress.org/Conditional_Tags
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Jun 7, 2010, 03:13 PM
misterfriend
 
17 posts · Mar 2010
Hmm.
I added this line in the loop

<?php if (is_page('40') ) { bfa_post_headline('<div class="post-headline">','</div>'); } ?>

But it adds the title (so I have it twice) to page 40 instead of removing it. What am i doing wrong?
Thanks
  #4  
Old Jun 7, 2010, 03:19 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
you don't want to add the line, you want to replace the existig line. And since you dont want it to show on that page, you need the NOT symbol (which is the exclamation point - '!') like your original post
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Jun 7, 2010, 03:40 PM
misterfriend
 
17 posts · Mar 2010
Brilliant! Slowly getting my head round basic php and this was very helpful.
You are a genius
cheers

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove title in Category Page tommy35 Header configuration & styling 2 Aug 22, 2010 06:37 PM
[SOLVED] How to remove space left by blank page title Stingraynut Center area post/pages 11 May 16, 2010 06:28 PM
static front page, page title on header, remove content but keep sidebar questions Magic Atahualpa 3 Wordpress theme 0 Jan 25, 2010 12:12 AM
[SOLVED] How to remove the category pages title? ahc Excerpts, Read more, Pagination 4 Dec 27, 2009 11:43 AM
[SOLVED] Can I Remove Page Title from a Static Page? kippiper Post-Kicker, -Byline & -Footer 7 Oct 26, 2009 05:48 PM


All times are GMT -6. The time now is 03:38 AM.


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