Skip to content
Public Ticket #882

Reauthenticate with Google

Conversation thread

PenciDesign replied

Staff Reply

Hi,

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

Want to join this conversation or access attachments? Sign in first.