Hello,
I want to display the dates in each blog post, but remove it from the google search results. Is there a way? I use the pro theme with child theme. Thanks!
Hello,
I want to display the dates in each blog post, but remove it from the google search results. Is there a way? I use the pro theme with child theme. Thanks!
Hey Michael,
Regretfully, there’s no option in our theme for that. Please try installing a third-party SEO plugin like Yoast SEO. Please refer to the plugins documentation for usage instructions.
Thanks.
Thanks, but with Yoast it is not possible. I have another solution, maybe you can tell me where I can find:
<?php the_time('F jS, Y h:i A') ?>I want to replace the code above with a JavaScript calling it using the document.write() function.
<script> document.write("<?php the_time('F jS, Y h:i A') ?>") </script>
Hello Michael,
We do not use that statement. We actually have this:
//
// Date.
//
$date = sprintf( '<span><time class="entry-date" datetime="%1$s">%2$s</time></span>',
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date() )
);
You can find this in the x_{yourstack}_entry_meta() function. You will need to edit the exact stack that you are using. You may find this function in {yourstack}.php (e.g. ethos.php) in {x or pro}/framework/functions/frontend/ folder.
Hope this helps.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.