MarkieMarc
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
Forum: Fixing WordPress
In reply to: How to remove timestamp from Twenty Fourteen theme?Hi vtxyzzy,
What I actually meant is to delete the date from the snippet in Google. The code you mentioned is only for not displaying on the front end I think….
Forum: Fixing WordPress
In reply to: How to remove timestamp from Twenty Fourteen theme?It seems to be quit hard to get this issue fixed.
I believe the function is in the template-tags.php file. But what are we supposed to do next? Copy this file into the child theme path without the lines: [if ( ! function_exists( ‘twentyfourteen_posted_on’ ) ) :[ Moderator note: code fixed. Please wrap code in the backtick character or use the code button. ]
/** * Print HTML with meta information for the current post-date/time and author. * * @since Twenty Fourteen 1.0 */ function twentyfourteen_posted_on() { if ( is_sticky() && is_home() && ! is_paged() ) { echo '<span class="featured-post">' . __( 'Sticky', 'twentyfourteen' ) . '</span>'; } // Set up and print post meta information. printf( '<span class="entry-date"><a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s">%3$s</time></a></span> <span class="byline"><span class="author vcard"><a href="%4$s" rel="author">%5$s</a></span></span>', esc_url( get_permalink() ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ), esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), get_the_author() ); }]? Or put some kind of code in a new function.php file in the child theme folder, like some people suggest in other posts?
Viewing 2 replies - 1 through 2 (of 2 total)