• Resolved Soifua

    (@soifua)


    Hi-

    I’m trying to remove the part of the template that shows when the post was updated. Looks like:

    POSTED ON MAY 8, 2019 (UPDATED ON MAY 9, 2019)

    I’ve been poking around the php, but I can’t find the template. I found the reference, at least one of them, and it’s this:

    <?php carbon_lite_header_title(); ?>

    But I can’t see where to edit it and I’m not sure that this is the only reference.

    Any help appreciated.

    thanks,
    Soif

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter Soifua

    (@soifua)

    I found the solution to this by poking around some more.

    go to this template:
    inc/template-tags.php

    find this:
    // If the post has been updated, create another time string.

    and comment everything out so it looks like this:

    	// If the post has been updated, create another time string.
    	// $updated_on = '';
    	
    	//if ( get_the_date() !== get_the_modified_date() ) {
    	//	$update_time = '<time class="entry-date updated" datetime="%1$s">%2$s</time>';
    	//	$update_time = sprintf( $update_time,
    	//		esc_attr( get_the_modified_date( 'c' ) ),
    	//		esc_html( get_the_modified_date() )
    	//	);
    
    		// Get the month archive link of the updated post.
    	//    $month_archive_link = get_month_link( get_the_modified_time( 'Y' ), get_the_modified_time( 'm' ) );
    
    	//	$updated_on = sprintf(
    	//		esc_html_x( ' (Updated on %s)', 'post update date', 'carbon-lite' ),
    	//		'<a href="' . esc_url( $month_archive_link ) . '" rel="bookmark">' . $update_time . '</a>'
    	//	);
    //	}
Viewing 1 replies (of 1 total)
  • The topic ‘Remove “Updated On…”’ is closed to new replies.