[Resolved] Author Box

Home Forums Support [Resolved] Author Box

Home Forums Support Author Box

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #878642
    ivar

    I’m sorry it’s not the work of your theme or plugin, but can you tell me how to implement this?
    https://hackhub.ru/wp-content/uploads/2019/04/1-1.png

    Peeped on site:
    https://brodude.ru/samye-bednye-strany-mira-kotorye-nikogda-ne-razbogateyut/

    #878914
    David
    Staff
    Customer Support

    Hi there,

    this article provides a simplified version:

    https://docs.generatepress.com/article/entry-meta-style/

    Let me know if that helps.

    #879290
    ivar

    Thanks, it works, but…

    how to remove date and add “category”?

    when I uncheck “date” in the settings – the whole line disappears, and the categories appear after the article, not here

    :)…and how to increase the indentation from the title?

    Example page: https://hackhub.ru/kak-nachat-vesti-blog-s-nulya

    #879727
    Tom
    Lead Developer
    Lead Developer

    Use this as your function instead:

    add_filter( 'generate_post_author_output', function( $author) {
    	printf( ' <span class="byline">%1$s</span>',
    		sprintf( '<span class="author vcard" itemtype="http://schema.org/Person" itemscope="itemscope" itemprop="author">%4$s<a href="%1$s" title="%2$s" rel="author"><span class="author-name" itemprop="name">%3$s</span></a></span>',
    			esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
    			esc_attr( sprintf( __( 'View all posts by %s', 'generatepress' ), get_the_author() ) ),
    			esc_html( get_the_author() ),
    			get_avatar( get_the_author_meta( 'ID' ) )
    		)
    	);
    
    	if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) {
    		echo '<span class="comments-link">';
    			comments_popup_link( __( 'Leave a comment', 'generatepress' ), __( '1 Comment', 'generatepress' ), __( '% Comments', 'generatepress' ) );
    		echo '</span>';
    	}
    
    	$categories_list = get_the_category_list( ', ' );
    
    	if ( $categories_list ) {
    		printf( '<span class="cat-links"><span class="screen-reader-text">%1$s </span>%2$s</span>',
    			esc_html_x( 'Categories', 'Used before category names.', 'generatepress' ),
    			$categories_list
    		);
    	}
    } );

    Let me know ๐Ÿ™‚

    #879988
    ivar

    Great, thanks!

    #880595
    Tom
    Lead Developer
    Lead Developer

    You’re welcome ๐Ÿ™‚

    #889053
    ivar

    Hello, the question remains, can the question-How to increase the interval ?
    screenshot

    #889193
    Tom
    Lead Developer
    Lead Developer

    Try this:

    header.entry-meta {
        margin-top: 30px;
    }
    #889359
    ivar

    unfortunately, it doesn’t work…

    #889433
    David
    Staff
    Customer Support

    Hi there,

    small change to the CSS:

    header .entry-meta {
        margin-top: 30px;
    }
    #889455
    ivar

    Great, thanks David!

    #889755
    David
    Staff
    Customer Support

    Glad we could be of help

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