Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Center area post/pages (http://forum.bytesforall.com/forumdisplay.php?f=32)
-   -   [SOLVED] How can I selectively style (or remove) a post/page title from selected post (http://forum.bytesforall.com/showthread.php?t=14123)

arthurmild May 11, 2011 05:04 PM

[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



http://thinkingspaceweb.com/aaa_home...itle_h1_eg.png

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 ?

lmilesw May 11, 2011 06:55 PM

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;
}


arthurmild May 12, 2011 03:27 PM

Thank you very much.

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

:)


All times are GMT -6. The time now is 09:48 AM.

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