Your site appears to be under a maintenance/coming soon mode of some sort. We won’t be able to see the issue while this is the case.
its live now.. please chk
Your theme appears to add the date and time twice, once for the published date, and once for the updated date:
<time class="entry-date published" datetime="2016-07-28T14:05:38+00:00">July 28, 2016</time>
<time class="updated" datetime="2016-07-28T14:07:03+00:00">July 28, 2016</time>
While the updated date is hidden with CSS, AddThis appears to ignore this. Looking at your theme (ColorNews, it appears), the date function is pluggable. So you add this to a Child Theme, the issue should be resolved:
function colornews_published_date() {
$time_string = '<time class="entry-date published" datetime="%1$s">%2$s</time>';
if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {
$time_string .= '';
}
$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() )
);
printf( __( '<span class="posted-on"><a href="%1$s" title="%2$s" rel="bookmark">%3$s</a></span>', 'colornews' ),
esc_url( get_permalink() ),
esc_attr( get_the_time() ),
$time_string
);
}
(This is a copy of the original function, I just removed the HTML for the updated date).
Should i add this in function.php
Yes. Preferably in your Child Theme‘s functions.php. Read more about Child Themes here: https://codex.wordpress.org/Child_Themes
Its giving error… you can chk it on website.. it appearing on header
Did you add this to functions.php? Make sure to add it inside the <?php ?> tags.
Code applied.. date is still showing 2 times in fb share π
Is there any way to remove updated date?
The code appears to be working, the updated date is not on the page anymore. It’s possible that the preview is cached on Facebook with the old version. When I went to share a post I hadn’t shared before, the date only appeared once, which is a good sign.
Try running the URLs through facebooks debugging tool: https://developers.facebook.com/tools/debug/
I didn’t have any luck, but I’m not sure my browser is handling the non-english characters properly.
Wow… its working in some articles…
But its not working in some articles.. Why?
I think it’s just that Facebook has cached some of them. After a while Facebook will refresh its cache and it’ll appear correct. Future posts should appear correct also.
Yahoo π
You are awesome π
Thanks for helping me out.