Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #99099
    Frank
    Participant

    Hi, after updating to Clean Magazine Pro 2.0 I’m not seeing the Author of a blog post anymore. Could it be a Problem with the theme?
    regards, Frank

    #99108
    Pratik
    Keymaster

    Hi Frank,
    Please check the demo at https://catchthemes.com/demo/clean-magazine/

    It has version 2.1 and the author is showing fine.

    Please post in your site url for further help.

    Regards,
    Pratik

    #99125
    Frank
    Participant

    Hi Patrik,
    thanks for Reply. I have updated clean Magazine pro to Version 3.0 at 25.08. After 25.08 Google Webmaster Tools says: missing author tag

    Here is my site:

    https://www.frankysweb.de

    As you will see, date and comments are displayed, but not the author. many thanks for your Help.

    regards Frank

    #99139
    Pratik
    Keymaster

    Hi Frank,

    Can you let me know how many authors you have in your site?

    In case of only one author, the author will not be displayed, as it becomes irrelevant. In case of multiple authors, that will be displayed.

    Please check and let me know.

    Regards,
    Pratik

    #99232
    Frank
    Participant

    Hi Pratik,

    you are right, there is only one author. How do i get the authar tag back? Could i create a dummy wuthor without having a post and author will be displayed again? Or is there a smarter solution?

    regards, Frank

    #99247
    Pratik
    Keymaster

    Hi @franksyweb,
    Adding dummy author will solve the issue. If you want a more cleaner approach, then you need to create a child theme and modify a function. If you are comfortable with making modifications via child theme, please let me know and I will provide you the codes and instructions.

    Check Child Theme Creation page for more info.

    Regards,
    Pratik

    #99297
    Frank
    Participant

    Hi Pratik,

    i have created a second author, but author tag will not be displayed. Could you please provide me some instructions to Display it by a child theme?
    many thanks
    Frank

    #99324
    Pratik
    Keymaster

    Hi Frank,

    Add following code in you child theme’s functions.php file: http://pastebin.com/LXBX2nKg

    Let me know how it goes.

    Regards,
    Pratik

    #99381
    Frank
    Participant

    Hi,

    i have created a Folder “clean-Magazine-pro-child” and placed a style.css in the Folder:

    /*
    Theme Name: Clean Magazine Pro Childtheme
    Description: Author Tag Dispay
    Author: NA
    Author URI: NA
    Template: clean-magazine-pro
    Version: 1.0
    Tags:
    */

    after that i have created the functions.php with the patebin Code. After activating the child theme, the layout of the site is broken, maybe the child can’t load css?

    regards, Frank

    #99387
    Frank
    Participant

    Btw: I have added a second author and created a post with the second author: author tag will not be displayed.

    #99632
    Pratik
    Keymaster

    You will also need to add some code in functions.php file.

    Make functions.php file and add in following code:

    
    <?php
    /**
     * Child Theme functions and definitions
     *
     */
    
    /**
     * Loading Parent theme stylesheet
     *
     */
    add_action( 'wp_enqueue_scripts', 'clean_magazine_child_enqueue_styles' );
    function clean_magazine_child_enqueue_styles() {
        wp_enqueue_style( 'clean_magazine-parent-style', get_template_directory_uri() . '/style.css' );
    }
    
    #99696
    Frank
    Participant

    Hi,
    now the CSS is loaded, but with diferent Settings as in the parent theme defined, author tag also isn’t displayed.

    here is my functions.php:

    <?php
    /**
     * Child Theme functions and definitions
     *
     */
     
    /**
     * Prints HTML with meta information for the current post-date/time and author.
     */
    function clean_magazine_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( __( '<span class="screen-reader-text">Posted on</span>', 'clean-magazine' ) ),
    		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.', 'clean-magazine' ) ),
    		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', 'clean-magazine' ), esc_html__( '1 Comment', 'clean-magazine' ), esc_html__( '% Comments', 'clean-magazine' ) );
    		echo '</span>';
    	}
    
    	edit_post_link( esc_html__( 'Edit', 'clean-magazine' ), '<span class="edit-link">', '</span>' );
    
    	echo '</p><!-- .entry-meta -->';
    }
    
    /**
     * Loading Parent theme stylesheet
     *
     */
    add_action( 'wp_enqueue_scripts', 'clean_magazine_child_enqueue_styles' );
    function clean_magazine_child_enqueue_styles() {
        wp_enqueue_style( 'clean_magazine-parent-style', get_template_directory_uri() . '/style.css' );
    }
    
    #100516
    Frank
    Participant

    Hi,

    i have updated to Version 2.2 now, but the Problem still persists. could you Help me with the missing author tag?

    regards, Frank

    #100541
    Pratik
    Keymaster

    Hi Frank,
    You will need to use child theme as this is not a bug. This is how it is supposed to be. Since yours is special case, you will need to make modifications via child theme.

    About the settings, you will need to setup the settings same as parent theme for child theme as well.

    Regards,
    Pratik

    #100618
    Frank
    Participant

    Hi,
    ok, but I’m wondering why the child theme also won’t Display the author tag? Even with the Code posted above and a second author the theme and child theme will not display the author for posts.

    #100639
    Pratik
    Keymaster

    Just a few notes:
    * Just checking, have is your child theme active?
    * Also, is there any caching/compression plugin activated, I am not able to see anything when viewing source?

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