- This topic has 8 replies, 3 voices, and was last updated 1 year, 7 months ago by
Rohan Verma.
-
AuthorPosts
-
June 18, 2019 at 12:41 pm #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.
June 18, 2019 at 12:44 pm #933827Leo
StaffCustomer SupportHi there,
Don’t think I’m seeing the problem:
https://www.screencast.com/t/Xvsz6Ht3zdvfIt looks pretty smooth to me?
Are you seeing something different?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/June 18, 2019 at 12:53 pm #933836Rohan Verma
This time I am using Montserrat font, so it is looking fine. If I use Georgia Font, it looks weird
June 18, 2019 at 1:50 pm #933880Leo
StaffCustomer SupportIt’s hard to tell without seeing it unfortunately.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/June 18, 2019 at 7:16 pm #934035Rohan 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
June 19, 2019 at 5:05 am #934437Tom
Lead DeveloperLead DeveloperHi 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
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJune 19, 2019 at 5:57 am #934506Rohan 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 >
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
June 19, 2019 at 6:00 am #934511Tom
Lead DeveloperLead DeveloperThat 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.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJune 19, 2019 at 6:13 am #934524Rohan Verma
Okay let see
-
AuthorPosts
- You must be logged in to reply to this topic.