Archived topic
Show autthor below featured img but title above?
9 replies · Started by Adrian Cojocariu on August 14, 2017
Hey Tom.
Could you help me move the author name below the featured image but keep the title above?
Also, I'd like to add a small image of the author before the text.
Thanks so much.
Hey Adrian,
Give this a shot:
add_action( 'wp', 'generate_move_post_meta' );
function generate_move_post_meta() {
remove_action( 'generate_after_entry_title', 'generate_post_meta' );
add_action( 'generate_after_entry_header', 'generate_post_meta', 50 );
}
Let me know :)
That worked like a charm, Tom.
Also, how can I add a small author picture before the author text?
Regards,
Adrian C.
Wow Tom's got backup! :D Nice !
Sorry Leo, it doesn't seem to work for me.
I added the code in Functions.php
Hmm any chance you can provide a link to a page that's not working? Thanks!
Hey Leo, it doesn't work for the entire domain.
It's seo project . ro without spaces.
Go to the blog section, and under the featured image you can see
"de My name".
I want a tiny circle icon with my face before that
This should definitely do that: https://generatepress.com/forums/topic/add-author-photo-for-each-post-in-blog-home/#post-335202
Are you using the latest GP? Any custom functions or files?
The only custom function in the child theme is the one mentioned above, to move the featured image.
add_action( 'wp', 'generate_move_post_meta' );
function generate_move_post_meta() {
remove_action( 'generate_after_entry_title', 'generate_post_meta' );
add_action( 'generate_after_entry_header', 'generate_post_meta', 50 );
}
However, I tried removing it and adding the image code but it still doesn't work :-??
Maybe it's one of my plugins like W3 total cache and autopotimize or prioritize CSS... but I don't wanna remove any of them as they help me a lot with SEO.
Any chance you can clear your caching plugins and deactivate them temporarily just to see if they're causing the issue?