Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages »

[SOLVED] How can I selectively style (or remove) a post/page title from selected post


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old May 11, 2011, 05:04 PM
arthurmild
 
50 posts · Aug 2010
Cape Town
[SOLVED] How can I selectively style (or remove) a post/page title from selected post

I want to remove the post title on an individual page on this site





I thought of using CSS {display:none:} but am having trouble nailing down the exact css syntax to identify style the specific H1 tag in question...

Code:
div#post-14.post-14 page type-page hentry post div.post-headline h1 {display:none;}
doesn't work


An alternative thought would be to hard code something along the lines of

Code:
if 

page id = 14 then don't display the post title

else 

do your regular thing
(in proper php of course), but this seems rather inelegant and not how we do things around here



More generally, what is a sensible approach to take should I ever want to style page/post titles differently for specific pages/posts ?
  #2  
Old May 11, 2011, 06:55 PM
lmilesw's Avatar
lmilesw
 
10,097 posts · Jul 2009
Central New York State USA
You only need the id of the post and the h1 or .post-headline so either of the following should work.
HTML Code:
#post-14 .post-headline {
    display: none;
}
Or
HTML Code:
#post-14 h1 {
    display: none;
}
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #3  
Old May 12, 2011, 03:27 PM
arthurmild
 
50 posts · Aug 2010
Cape Town
Thank you very much.

I had a feeling I was over-thinking this one.


Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to remove menu2 (category menu bar) from some selected pages rcmadawala Header configuration & styling 1 Oct 15, 2010 10:26 AM
Home Page Displays only Selected Posts hamandeggs Atahualpa 3 Wordpress theme 1 Aug 26, 2010 09:49 AM
[SOLVED] Remove page title from certain pages misterfriend Atahualpa 3 Wordpress theme 4 Jun 7, 2010 03:40 PM
how to remove Post Title from Single Post page ONLY vargaso Center area post/pages 2 Apr 30, 2010 01:38 PM
How to remove link to individual posts in post title? kristofferrom Center area post/pages 3 Apr 29, 2010 11:14 AM


All times are GMT -6. The time now is 01:56 PM.


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