[Support request] Show autthor below featured img but title above?

Home Forums Support [Support request] Show autthor below featured img but title above?

Home Forums Support Show autthor below featured img but title above?

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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.

    #366112
    Tom
    Lead Developer
    Lead Developer

    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 ๐Ÿ™‚

    #367843
    Adrian Cojocariu

    That worked like a charm, Tom.

    Also, how can I add a small author picture before the author text?

    Regards,
    Adrian C.

    #367974
    Leo
    Staff
    Customer Support
    #368577
    Adrian Cojocariu

    Wow Tom’s got backup! ๐Ÿ˜€ Nice !

    Sorry Leo, it doesn’t seem to work for me.

    I added the code in Functions.php

    #368748
    Leo
    Staff
    Customer Support

    Hmm any chance you can provide a link to a page that’s not working? Thanks!

    #375041
    Adrian 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

    #375153
    Tom
    Lead Developer
    Lead Developer

    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?

    #375250
    Adrian 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.

    #375523
    Tom
    Lead Developer
    Lead Developer

    Any chance you can clear your caching plugins and deactivate them temporarily just to see if they’re causing the issue?

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.