Comments margretbjork started the conversationNovember 22, 2017 at 8:47pmadd your website to Google Search ConsoleIm trying to Reauthenticate with Google to add your website to Google Search Console but the code never works. 2,701PenciDesign repliedNovember 23, 2017 at 4:32amHi,Please try add more this code to the end of functions.php file: /** * Add hatom data * * @since 1.2.1 */ if ( ! function_exists( 'penci_add_suf_hatom_data' ) && ( ( function_exists( 'is_penci_amp' ) && ! is_penci_amp() ) || ! function_exists( 'is_penci_amp' ) ) ) { function penci_add_suf_hatom_data( $content ) { $t = get_the_modified_time( 'F jS, Y' ); $author = get_the_author(); $title = get_the_title(); if ( ( is_home() || is_singular() || is_archive() ) && ! get_theme_mod( 'penci_remove_hatom_data' ) ) { $content .= '<div class="hatom-extra" style="display:none !important;visibility:hidden;"><span class="entry-title">' . $title . '</span> was last modified: <span class="updated"> ' . $t . '</span> by <span class="author vcard"><span class="fn">' . $author . '</span></span></div>'; } return $content; } add_filter( 'the_content', 'penci_add_suf_hatom_data' ); } /** * Remove suf hatom data in call function the_excerpt * * @since 1.2.3 */ if ( ! function_exists( 'penci_remove_excerpt_suf_hatom_data' ) ) { function penci_remove_excerpt_suf_hatom_data( $excerpt ) { $t = get_the_modified_time( 'F jS, Y' ); $author = get_the_author(); $title = get_the_title(); $replace = $title . ' was last modified: ' . $t . ' by ' . $author; return str_replace( $replace, '', $excerpt ); } add_filter( 'wp_trim_excerpt', 'penci_remove_excerpt_suf_hatom_data' ); } like on this image.Hope this help, Best Regards, PenciDesign Sign in to reply ...
add your website to Google Search Console
Im trying to Reauthenticate with Google to add your website to Google Search Console but the code never works.
Hi,
Please try add more this code to the end of functions.php file:
like on this image.
Hope this help,
Best Regards,
PenciDesign