- This topic has 9 replies, 3 voices, and was last updated 8 years, 7 months ago by
Tom.
-
AuthorPosts
-
August 14, 2017 at 2:30 pm #365915
Adrian Cojocariu
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.
August 14, 2017 at 11:55 pm #366112Tom
Lead DeveloperLead DeveloperHey 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 🙂
August 17, 2017 at 3:15 am #367843Adrian Cojocariu
That worked like a charm, Tom.
Also, how can I add a small author picture before the author text?
Regards,
Adrian C.August 17, 2017 at 8:05 am #367974Leo
StaffCustomer SupportAugust 18, 2017 at 3:18 am #368577Adrian Cojocariu
Wow Tom’s got backup! 😀 Nice !
Sorry Leo, it doesn’t seem to work for me.
I added the code in Functions.php
August 18, 2017 at 9:00 am #368748Leo
StaffCustomer SupportHmm any chance you can provide a link to a page that’s not working? Thanks!
August 28, 2017 at 5:58 pm #375041Adrian Cojocariu
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
August 28, 2017 at 11:52 pm #375153Tom
Lead DeveloperLead DeveloperThis 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?
August 29, 2017 at 2:53 am #375250Adrian Cojocariu
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.
August 29, 2017 at 11:04 am #375523Tom
Lead DeveloperLead DeveloperAny chance you can clear your caching plugins and deactivate them temporarily just to see if they’re causing the issue?
-
AuthorPosts
- You must be logged in to reply to this topic.