Archived topic
Fonts are not looking smooth
8 replies · Started by Rohan Verma on June 18, 2019
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.
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?
This time I am using Montserrat font, so it is looking fine. If I use Georgia Font, it looks weird
It's hard to tell without seeing it unfortunately.
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
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
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 >
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
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.
Okay let see