- This topic has 15 replies, 2 voices, and was last updated 8 years, 2 months ago by Pratik.
-
AuthorPosts
-
September 10, 2016 at 2:44 am #99099FrankParticipant
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, FrankSeptember 10, 2016 at 9:33 am #99108PratikParticipantHi 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,
PratikSeptember 10, 2016 at 11:32 pm #99125FrankParticipantHi 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 tagHere is my site:
As you will see, date and comments are displayed, but not the author. many thanks for your Help.
regards Frank
September 11, 2016 at 11:18 am #99139PratikParticipantHi 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,
PratikSeptember 13, 2016 at 12:11 am #99232FrankParticipantHi 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
September 13, 2016 at 9:17 am #99247PratikParticipantHi @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,
PratikSeptember 13, 2016 at 11:43 pm #99297FrankParticipantHi 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
FrankSeptember 14, 2016 at 10:14 am #99324PratikParticipantHi Frank,
Add following code in you child theme’s functions.php file: http://pastebin.com/LXBX2nKg
Let me know how it goes.
Regards,
PratikSeptember 15, 2016 at 1:24 am #99381FrankParticipantHi,
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
September 15, 2016 at 2:48 am #99387FrankParticipantBtw: I have added a second author and created a post with the second author: author tag will not be displayed.
September 19, 2016 at 9:58 am #99632PratikParticipantYou 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' ); }
September 19, 2016 at 11:27 pm #99696FrankParticipantHi,
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' ); }
September 29, 2016 at 12:35 am #100516FrankParticipantHi,
i have updated to Version 2.2 now, but the Problem still persists. could you Help me with the missing author tag?
regards, Frank
September 29, 2016 at 12:21 pm #100541PratikParticipantHi 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,
PratikSeptember 30, 2016 at 12:29 am #100618FrankParticipantHi,
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.September 30, 2016 at 9:50 am #100639PratikParticipantJust 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? -
AuthorPosts
- The topic ‘Author Tag missing’ is closed to new replies.