Forum Replies Created
-
AuthorPosts
-
FrankParticipant
Hi Sapana,
ok, I will do so. How could I send you the pot file? I already have 90% translated to German.
Kind Regards,
FrankFrankParticipantHi Sapana,
thanks for your response. Is the Pro .po file the same as in the free version? If yes I will start to translate it. If not could you please send me the .po file of the pro version?
Kind regards,
FrankFrankParticipantHi,
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.FrankParticipantHi,
i have updated to Version 2.2 now, but the Problem still persists. could you Help me with the missing author tag?
regards, Frank
FrankParticipantHi,
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' ); }
FrankParticipantBtw: I have added a second author and created a post with the second author: author tag will not be displayed.
FrankParticipantHi,
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
FrankParticipantHi 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
FrankFrankParticipantHi 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
FrankParticipantHi 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
FrankParticipantHi Sakin,
many thanks, i will give it a try.FrankParticipantHi Sakin, many thanks for your quick reply. Your solution works perfect!
FrankFrankParticipantHi Sakin,
i will wait for the next Version, thanks for your reply.
Regards,
Frank -
AuthorPosts