[Support request] Fonts are not looking smooth

Home Forums Support [Support request] Fonts are not looking smooth

Home Forums Support Fonts are not looking smooth

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #933821
    Rohan Verma

    Hello team, I have noticed that while I am in the customizer, all the fonts look smooth but while I visit the site texts are not very smooth. Any idea how to fix this.

    #933827
    Leo
    Staff
    Customer Support

    Hi there,

    Don’t think I’m seeing the problem:
    https://www.screencast.com/t/Xvsz6Ht3zdvf

    It looks pretty smooth to me?

    Are you seeing something different?

    #933836
    Rohan Verma

    This time I am using Montserrat font, so it is looking fine. If I use Georgia Font, it looks weird

    #933880
    Leo
    Staff
    Customer Support

    It’s hard to tell without seeing it unfortunately.

    #934035
    Rohan Verma

    That’s okay, but there is another issue which is a major one. In google search published date is showing up not the updated date. Previously we were using merk’s Voie theme and the modified date was showing up in the search but now published dates are showing. Our ranks were decreased due to this.

    I have added a snippet

    add_filter( 'generate_post_date_output', function() {
        $time_string = '<time class="entry-date published" datetime="%1$s" itemprop="datePublished">%2$s</time>';
    
        if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {
            $time_string = '<time class="entry-date" datetime="%3$s" itemprop="dateModified">%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() )
        );
    
        return sprintf( '<span class="posted-on">%1$s</span>', // WPCS: XSS ok, sanitization ok.
            sprintf( '<a href="%1$s" title="%2$s" rel="bookmark">%3$s</a>',
                esc_url( get_permalink() ),
                esc_attr( get_the_time() ),
                $time_string
            )
        );
    } );

    and a css code
    .entry-date:not(.published):before {
    content: “Last updated : “;
    }

    I have added these 2 days ago still the published dates are showing up in the results. Can you check and guide me

    #934437
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    When you run one of your posts through Google structured data tool, do you see the updated/modified date?: https://search.google.com/structured-data/testing-tool

    #934506
    Rohan Verma

    I guess it is showing up in the structure data but not in the google, previously our updated date was showing. 2 days ago we moved to GP premium theme, after setting up everything we noticed all the search results showing the published date, not the updated date. Screenshot >

    https://prnt.sc/o3wqzw

    I am using this PHP

    add_filter( ‘generate_post_date_output’, function( $output, $time_string ) {
    $time_string = ‘<time class=”entry-date published” datetime=”%1$s” itemprop=”datePublished”>%2$s</time>’;

    if ( get_the_time( ‘U’ ) !== get_the_modified_time( ‘U’ ) ) {
    $time_string = ‘<time class=”entry-date updated-date” datetime=”%3$s” itemprop=”dateModified”>%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() )
    );

    return sprintf( ‘<span class=”posted-on”>%s</span> ‘,
    $time_string
    );
    }, 10, 2 );

    without any css

    #934511
    Tom
    Lead Developer
    Lead Developer

    That PHP looks good to me. Maybe give Google a couple of days to re-crawl the site to see if they add it back. As long as the theme displays the date and has the necessary structured data (usually not even required), Google should pick it up.

    #934524
    Rohan Verma

    Okay let see

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.