Community Forums › Forums › Archived Forums › Design Tips and Tricks › Reposition Post Meta under Post Info
- This topic has 8 replies, 5 voices, and was last updated 12 years, 7 months ago by
David Chu.
-
AuthorPosts
-
December 21, 2013 at 9:12 am #80613
AnitaC
KeymasterI must need more coffee or a drink (I know it's early EST), but I cannot ... for the life of me... find how to reposition the Post-Meta (Category and Tags) under the Post-Info (Author, Date). I know I've seen it somewhere... but my Googling is not coming up with it, nor can I find it in the SP Snippets.
Need help with customization or troubleshooting? Reach out to me.
December 21, 2013 at 9:28 am #80615Ozzy
Memberit depends if you're using HTML5 or not.
for non-HTML5 sites:
for HTML5 sites:
http://my.studiopress.com/snippets/entry-footer/
December 21, 2013 at 9:31 am #80616AnitaC
KeymasterRight now I am just using the Sample and say for the Blog page and Archive page, I'd rather have it under the Info. I didn't realize in HTML5 there was a "name change" to Entry Footer. I had already looked here - http://my.studiopress.com/snippets/entry-footer/, but didn't see how to "reposition" it as they did in say the navigation instructions.
Need help with customization or troubleshooting? Reach out to me.
December 21, 2013 at 9:35 am #80618Ozzy
MemberDecember 21, 2013 at 9:35 am #80619Brad Dalton
ParticipantYou can add the Post Meta short codes to the post info field using Simple Edits or PHP code.
Then you can remove the post meta using Simple edits, Simple Hooks, CSS or PHP.
Thats not the only way to do it but it works.
December 21, 2013 at 9:40 am #80620Sridhar Katakam
Participantadd_action( 'genesis_before_entry', 'sk_reposition_post_meta' ); function sk_reposition_post_meta() { remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_open', 5 ); remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_close', 15 ); remove_action( 'genesis_entry_footer', 'genesis_post_meta' ); add_action( 'genesis_entry_header', 'genesis_post_meta', 13 ); }
December 21, 2013 at 9:42 am #80621AnitaC
KeymasterThanks guys! I added Brad's code before Sridhar added his and it worked! I am bookmarking this for future reference.
Need help with customization or troubleshooting? Reach out to me.
December 21, 2013 at 10:00 am #80623Brad Dalton
ParticipantOr you could use this.
remove_action( 'genesis_entry_footer', 'genesis_post_meta' ); add_action( 'genesis_entry_header', 'genesis_post_meta', 14 );
December 21, 2013 at 12:33 pm #80644David Chu
ParticipantYes,
"What Brad said". I derived that by reading my own article, where I published some examples of dealing with the new hooks. I got it to work with a priority of 12. There are so many un-documented "slots" for things to go in with the new HTML5 ARTICLE structure, that one must experiment to find them all.http://davidchu.net/blog/genesis-2-0-html5-hooks/
Dave
Dave Chu ยท Custom WordPress Developer – likes collaborating with Designers
-
AuthorPosts
- The topic ‘Reposition Post Meta under Post Info’ is closed to new replies.