Community Forums › Forums › Archived Forums › Design Tips and Tricks › Post titles in Mindstream?
- This topic has 8 replies, 5 voices, and was last updated 12 years, 9 months ago by
WMcKinley.
-
AuthorPosts
-
March 17, 2013 at 5:40 am #28522
enmaku
MemberI really like the Mindstream theme but I'm not in love with the fact that post titles aren't displayed in the timeline or in posts themselves. Is there an easy (functions.php or easier) way to put them back in?
March 17, 2013 at 5:45 am #28524Pinky
MemberMarch 17, 2013 at 5:48 am #28525enmaku
MemberNot finding anything about post titles Pinky. Page titles, post authorboxes etc are all there, and google shows me how to *remove* the title from posts but not how to put it back when someone else has already removed it...
March 17, 2013 at 6:16 am #28527Pinky
MemberAh soz about that.... try this then:
In the functions.php file remove this - obviously take a backup copy first!...
add_action( 'genesis_before_post', 'mindstream_remove_elements' ); /** * If post has post format, remove the title, post info, and post meta. * If post does not have post format, then it is a default post. Add * title, post info, and post meta back. * * @since 1.0 */ function mindstream_remove_elements() { // Remove if post has format if ( get_post_format() ) { remove_action( 'genesis_post_title', 'genesis_do_post_title' ); remove_action( 'genesis_before_post_content', 'genesis_post_info' ); remove_action( 'genesis_after_post_content', 'genesis_post_meta' ); } // Add back, as post has no format else { add_action( 'genesis_post_title', 'genesis_do_post_title' ); add_action( 'genesis_before_post_content', 'genesis_post_info' ); add_action( 'genesis_after_post_content', 'genesis_post_meta' ); } }
cheers
Pinky
March 17, 2013 at 6:24 am #28529enmaku
MemberThat appears to have done the trick - well, after I noticed that I'd missed deleting the add_action line along with the rest of it anyway 😉
Thanks!
March 17, 2013 at 6:29 am #28530Pinky
Memberno worries Mate... glad I could help!
cheers
Pinky
March 19, 2013 at 2:43 pm #29487rb5235
MemberHi Pinky,
I to wanted the post titles back and found that what you pointed out above to remove in the functions.php file worked fine.
Now I would like to make the title font a little smaller it is displaying as a H1. Could you point me it the right direction to set it to a H2 or H3.
Thanks for any help!
March 19, 2013 at 7:28 pm #29547macarena61
MemberHi Pinky,
Just as rb5235, I also want to reduce the font title as it is very large compared to the rest of the layout. I had thought it was the
#title {
font-size: 42px;
font-size: 2.625rem;}
and reduced it to 28px and 1.75rem
I also reduced the
h1,
.entry-title,
.entry-title a {
font-size: 36px;
font-size: 2.25rem;
}to: font-size: 20px;
font-size: 1.25rem;but that didn't work either... could you kindly point us in the right direction? Thank you, much appreciated!
March 19, 2013 at 7:34 pm #29551WMcKinley
MemberHi,
On line 591 of your style.css I changed the font size from 48px to 36px and it worked fine.Everyone should be using FireBug!
W. McKinley – PowerEmini.com
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.