Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Excerpts, Read more, Pagination (http://forum.bytesforall.com/forumdisplay.php?f=20)
-   -   [SOLVED] Remove BYLINE on a specific PAGE? (http://forum.bytesforall.com/showthread.php?t=12421)

Factorfiction Jan 23, 2011 03:54 PM

[SOLVED] Remove BYLINE on a specific PAGE?
 
I have a "link collection" page to external sites.

On this page I don't want to show my byline.

Is it possible to remove it on just this page?

Thanks!

lmilesw Jan 23, 2011 04:24 PM

You can use CSS to not display on a particular page. For instance to not display the byline on the home page you would use the following.
HTML Code:

body.home .post-byline {
display: none;
}

You just have to fine the class for the particular page. I generally look at the page source and search for "body class"

Factorfiction Jan 24, 2011 04:25 AM

Body class looked like this.

HTML Code:

<body class="page page-id-219 logged-in">
So, my css coud would be?

HTML Code:

body.page-id-219 .post-byline {
display: none;
}

Going to try it out.

Edit: Yep, it worked.


All times are GMT -6. The time now is 08:41 AM.

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