Community Forums › Forums › Archived Forums › Design Tips and Tricks › Move Author Box Higher
- This topic has 7 replies, 4 voices, and was last updated 9 years, 11 months ago by
fattony69.
-
AuthorPosts
-
April 26, 2015 at 7:31 pm #149230
fattony69
ParticipantHey!
I recently installed two plugins,
I am trying to move the author box above both of these plugins, but I am not sure how to do so. I appreciate the help.
http://edmassassin.com/superheroes-anonymous-6-road-to-red-rocks/May 2, 2015 at 9:09 am #149821Davinder Singh Kainth
MemberRefer - http://wpsites.net/web-design/change-position-of-author-box-in-studiopress-themes/
Sunshine PRO genesis theme
Need Genesis help? Davinder @ iGuiding Media | My Blog | Fresh Genesis ThemesMay 3, 2015 at 5:59 pm #150055fattony69
ParticipantThanks for the suggestion. Unfortunately, I have currently done this on my functions file and it still doesn't go above the plugins.
May 3, 2015 at 10:46 pm #150065Shivanand Sharma
MemberHi, I can see that the author box is hooked into entry_content. You just need to update the priority of the hook. So for example, in your action hook:
add_action( 'genesis_entry_content', 'genesis_do_author_box_single', 11 );
Change the last parameter to a lower number to define higher priority. You can change it to:
add_action( 'genesis_entry_content', 'genesis_do_author_box_single', 3 ); //change the last parameter and see. You may like to experiment with priority between 2 to 5.
May 4, 2015 at 2:13 am #150067Sridhar Katakam
ParticipantSettings > Facebook Comments > Display Settings > Uncheck 'Singular Posts'.
Then add this in functions.php:
// Display author box on single posts add_filter( 'get_the_author_genesis_author_box_single', '__return_true' ); // Remove author box on single Posts from its default location remove_action( 'genesis_after_entry', 'genesis_do_author_box_single', 8 ); // Add author box on single Posts after content add_action( 'genesis_entry_content', 'genesis_do_author_box_single' ); // Disable related posts under Posts add_filter( 'rp4wp_append_content', '__return_false' ); // Display Related Posts and Facebook Comments after content add_action( 'genesis_entry_content', 'sk_related_posts_fb_comments' ); function sk_related_posts_fb_comments() { if ( function_exists( 'rp4wp_children' ) ) { // Display related posts of current post rp4wp_children(); } echo do_shortcode( '[fbcomments]' ); }
May 8, 2015 at 12:00 am #150851fattony69
ParticipantThanks for your help! That worked perfectly on the single pages. Although, it caused a slight issue. It shows on archive pages as well. When I try to add if ( is_single() ), it really throws it all off.
May 8, 2015 at 4:01 am #150871Sridhar Katakam
ParticipantChange
// Display Related Posts and Facebook Comments after content add_action( 'genesis_entry_content', 'sk_related_posts_fb_comments' ); function sk_related_posts_fb_comments() { if ( function_exists( 'rp4wp_children' ) ) { // Display related posts of current post rp4wp_children(); } echo do_shortcode( '[fbcomments]' ); }
to
// Display Related Posts and Facebook Comments after content add_action( 'genesis_entry_content', 'sk_related_posts_fb_comments' ); function sk_related_posts_fb_comments() { if ( ! is_singular( 'post' ) ) { return; } if ( function_exists( 'rp4wp_children' ) ) { // Display related posts of current post rp4wp_children(); } echo do_shortcode( '[fbcomments]' ); }
May 9, 2015 at 6:45 pm #151348fattony69
ParticipantThank you so much for your help!
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.