Community Forums › Forums › Archived Forums › Design Tips and Tricks › Post Info & Excerpts on Teasers & Featured Posts
Tagged: .post-info, featured posts, Teaser
- This topic has 12 replies, 2 voices, and was last updated 11 years, 9 months ago by handsonaswegrow.
-
AuthorPosts
-
April 8, 2013 at 6:57 am #33955April 9, 2013 at 12:31 pm #34313Brad DaltonParticipant
Could you remove the PHP code so the post info displays. Its easier to use CSS code for this.
April 9, 2013 at 12:53 pm #34318handsonaswegrowMemberBrad - I sure can. How do I adjust it with CSS?
April 9, 2013 at 1:14 pm #34327Brad DaltonParticipantInstall Firebug and target the post-info date and author classes using the body class for the home page and posts from the source code.
http://www.studiopress.community/topic/customizing-post-info/#post-34289
April 9, 2013 at 1:18 pm #34328handsonaswegrowMemberBrad - but how can I do that to apply to home differently than the posts themselves?
April 9, 2013 at 1:36 pm #34330Brad DaltonParticipantbody class
its hard to test on your site because you have removed most of the post info
April 9, 2013 at 2:58 pm #34350handsonaswegrowMemberokay, I've removed it from my php file and put .post-info and .post-meta to display:none in my css, but I'd like some elements to show on posts (post-meta) and just the date to show on the home page (and archives) How can I tell that the difference with css?
April 9, 2013 at 3:53 pm #34370Brad DaltonParticipantCan't because they're not displaying so i can't inspect them using Firebug.
You need to test this using Firebug first before making the changes in your child themes files.
April 10, 2013 at 2:22 pm #34615handsonaswegrowMemberokay, I've removed the display:none - thought i hate how this looks in the meantime, I hope we can figure this out quickly.
April 10, 2013 at 2:49 pm #34621Brad DaltonParticipantYou'll need to install Firebug and find the different classes for each post info class you want to hide:
.home .post-comments { display:none; } .single-post .post-comments { display:none; }
April 10, 2013 at 3:14 pm #34623handsonaswegrowMemberThank you, I figured it out. Could never find .home and .single-post elements when using Firebug, so I just tried it and that worked. Thank you.
CSS I added to remove post info for comments (from both home and posts), remove date on single posts and remove post-meta from home:
.home .post-comments {
display: none;
}.home .post-meta {
display: none;
}.single-post .post-comments {
display: none;
}.single-post .post-info .date {
display: none;
}April 10, 2013 at 3:15 pm #34624handsonaswegrowMemberBrad - I guess I snuck another question in here too - is there a way to remove excerpts from teasers (and not features)? on the homepage and archives?
April 10, 2013 at 3:36 pm #34633handsonaswegrowMemberAnd I figured that out with CSS too - for mine it was:
.one-half .entry-content {
display: none;
} -
AuthorPosts
- The topic ‘Post Info & Excerpts on Teasers & Featured Posts’ is closed to new replies.