Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #80708
    Cleo
    Member

    Hi, I noticed that in webmaster tools for http://www.cyprus101.com I have 150 errors for missing author tags. Do you have any instructions on how to add rel=”author” to Gridalicious theme? Thanks

    #80716
    Pratik
    Keymaster

    Hi @Cleo: Can you check your site url? http://www.cyprus101.com does not have Gridalicious theme. I doubt it is even built in WordPress. This support forum is exclusively for Catch Themes Plugin and themes.

    Let me know if I can be of any other help.

    #80718
    Cleo
    Member

    The blog is, you can see it here http://www.cyprus101.com/blog/313948/

    #80721
    Pratik
    Keymaster

    hi @Cleo,
    Yes now I got it.

    The author is hidden because there there is only one author in your blog who has published posts. Author will appear if you have another user with a post.

    If you want to show the author with single user, you will need to do a bit of customization. For that first, you need to build a child theme. The instructions for child theme is given here.

    Then, in your Child Theme’s functions.php, add following code:

    
    /**
     * Prints HTML with meta information for the current post-date/time and author.
     */
    function gridalicious_entry_meta() {
    	echo '<p class="entry-meta">';
    
    	$time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>';
    
    	if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {
    		$time_string = '<time class="entry-date published" datetime="%1$s">%2$s</time><time class="updated" datetime="%3$s">%4$s</time>';
    	}
    
    	$time_string = sprintf( $time_string,
    		esc_attr( get_the_date( 'c' ) ),
    		esc_html( get_the_date() ),
    		esc_attr( get_the_modified_date( 'c' ) ),
    		esc_html( get_the_modified_date() )
    	);
    
    	printf( '<span class="posted-on">%1$s<a href="%2$s" rel="bookmark">%3$s</a></span>',
    		sprintf( _x( '<span class="screen-reader-text">Posted on</span>', 'Used before publish date.', 'gridalicious' ) ),
    		esc_url( get_permalink() ),
    		$time_string
    	);
    
    	printf( '<span class="byline"><span class="author vcard">%1$s<a class="url fn n" href="%2$s">%3$s</a></span></span>',
    			sprintf( _x( '<span class="screen-reader-text">Author</span>', 'Used before post author name.', 'gridalicious' ) ),
    			esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
    			esc_html( get_the_author() )
    		);
    
    	if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) {
    		echo '<span class="comments-link">';
    		comments_popup_link( esc_html__( 'Leave a comment', 'gridalicious' ), esc_html__( '1 Comment', 'gridalicious' ), esc_html__( '% Comments', 'gridalicious' ) );
    		echo '</span>';
    	}
    
    	edit_post_link( esc_html__( 'Edit', 'gridalicious' ), '<span class="edit-link">', '</span>' ); 
    
    	echo '</p><!-- .entry-meta -->';
    }
    

    Let me know if this solves your issue or not.

    Thanks

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Author tags’ is closed to new replies.