I am using this function to display Last Updated date on pages
# Display Last Modified Date in Pages
add_action( ‘generate_after_entry_header’, ‘tu_page_meta’ );
function tu_page_meta() {
if ( is_singular( ‘page’ ) ) : ?>
<?php generate_posted_on(); ?>
<!– .entry-meta –>
<?php endif;
}
and this CSS
/* Last Modified date Display */
.posted-on .updated {
display: inline-block;
padding-right: 5px;
}
.posted-on .updated + .entry-date {
display: none;
}
.posted-on .updated:before {
content: “Last Updated “;
}
.entry-meta {
display: flex;
justify-content: center;
}
The date is linked back to the post/page where it is being displayed which I don’t want. How can we remove link from date?