We're merging with GenerateBlocks! Learn more here.

[Support request] Meta – Author

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Meta – Author

Tagged: ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #8703
    Horst
    Participant

    Hello,
    I would like to move the author to the right and show the avatar to the left in front of it. Can this be represented?
    s. Link: https://horstschulte.com/blog/

    Many Thanks.

    greetings
    horst

    #8707
    Tom
    Keymaster

    Hi there,

    You can add the avatar like this:

    add_filter( 'wpsp_author_output', function() {
        return sprintf(
            '<span class="wp-show-posts-byline wp-show-posts-meta">
                <span class="wp-show-posts-author vcard" itemtype="http://schema.org/Person" itemscope="itemscope" itemprop="author">
                    <a class="url fn n" href="%1$s" title="%2$s" rel="author" itemprop="url">
                        %4$s <span class="author-name" itemprop="name">%3$s</span>
                    </a>
                </span>
            </span>',
            esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
            esc_attr( sprintf( __( 'View all posts by %s', 'wp-show-posts' ), get_the_author() ) ),
            esc_html( get_the_author() ),
            get_avatar( get_the_author_meta( 'ID' ) )
        );
    } );

    Then you’ll need some CSS to style it – let me know if you need help with that.

    Where on the right do you want it to show? At the bottom right corner?

    #8717
    Horst
    Participant

    Hello Tom,
    Thanks for the quick help. Thanks for the great Theme GP and the Plugin Show-List.

    I have already implemented it, but would like to make the placement as in the screenshot (https://screenpresso.com/=RO1rc). I can not get that. : – /

    The other thing (see: http://bit.ly/2KBJ03S) I have inserted in the screenshot. Maybe it’s so understandable what I want? Of course, the rolling articles should be displayed there – in a slightly larger section (like featured post).

    Thank you.
    greetings
    Horst

    #8720
    Horst
    Participant

    Hello Tom,

    I solved the first part.

    greetings
    horst

    #8733
    Tom
    Keymaster

    Ah, so you want some posts to be “featured” (larger) than others? Would those be random posts, or specific ones?

    #8742
    Horst
    Participant

    Hello,

    randomly every 4 or 5 rows. It would be great.

    Thank you.

    many Greetings
    horst

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