Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #1378231
Reauthenticate with Google
Closed

Comments

  • margretbjork started the conversation

    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.

  •  2,700
    PenciDesign replied

    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