Jump to content
Sign in to follow this  
tonyrage

Remove Byline from Sticky

Recommended Posts

tonyrage    0
tonyrage

I am using Platform/PageLines and I have one sticky. I would like just that sticky to not show the author, date and comments sections. Currently those are the three attributes that are on the byline for all posts as defined in the Blog and Posts section of the Page Lines settings. Can someone please help me with code for the style sheet that I can add to make this happen? Again, I want the posts to have that byline info, but not the sticky. I currently have a function that makes the sticky show the whole post and not an excerpt. I got this off a forum. function dan_sticky_filter($content) { if(is_sticky()) $content = the_content(); return $content; } add_filter('the_excerpt', 'dan_sticky_filter'); A bonus would be to remove the "continue reading" at the bottom of the sticky. I am fairly new to wordpress and php and css so step by step instructions would be really welcome. Thanks!

Share this post


Link to post
Share on other sites
Simon    247
Simon
Stickies have a .sticky class if im not mistaken, you can use display:none

Share this post


Link to post
Share on other sites
tonyrage    0
tonyrage
I added .sticky {display:none} to my style.css and now the entire post is hidden! would it be .sticky .byline {display:none} and to remove the "continue reading"?

Share this post


Link to post
Share on other sites
Simon    247
Simon
Use firebug to find the right classes ;)

Share this post


Link to post
Share on other sites
tonyrage    0
tonyrage
I tried: .sticky .documentByLine {display:none;} And it did not work. Any other suggestions?

Share this post


Link to post
Share on other sites
Simon    247
Simon
Not sure where you got 'documentByLine' thats not a css class at all. This will do it: [code].sticky .metabar { display: none; }[/code]

Share this post


Link to post
Share on other sites
tonyrage    0
tonyrage
Thanks so much Pross! That worked perfectly!

Share this post


Link to post
Share on other sites
tonyrage    0
tonyrage
Any idea what the class is for the "continue reading" link at the bottom of the post?

Share this post


Link to post
Share on other sites
Simon    247
Simon
[code].sticky .continue_reading_link a[/code] You should practice more with firebug ;)

Share this post


Link to post
Share on other sites
tonyrage    0
tonyrage
Thanks. I appreciate the help and I am trying to learn as much on my own as I can. I am not doing any of this as a service to others, for my own use. I have not figured out firebug at all, although I installed it! More research is in order for sure, but I am learning quickly and will try and limit how much I ask questions vs figuring it out on my own.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×