Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #83747
    Baron
    Member

    http://www.baroncapital.com

    They want the date link in the post to not be linked to anything and black. They only want it to show the date.

    How do I do that?

    I love this theme.

    #83765
    Mahesh
    Participant

    Hi Baron,

    Thank you for using Catch Responsive Pro.
    For the above, you have to create a child theme. You can find more details on creating the child theme HERE. Then in child theme’s functions.php add the following codes.

    function catchresponsive_entry_meta() {
    	echo '<p class="entry-meta">';
    
    	$time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>';
    
    	if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {
    		$time_string = '<time class="entry-date published" datetime="%1$s">%2$s</time><time class="updated" datetime="%3$s">%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() )
    	);
    
    	printf( '<span class="posted-on">%1$s %3$s</span>',
    		sprintf( _x( '<span class="screen-reader-text">Posted on</span>', 'Used before publish date.', 'catch-responsive' ) ),
    		esc_url( get_permalink() ),
    		$time_string
    	);
    
    	if ( is_singular() || is_multi_author() ) {
    		printf( '<span class="byline"><span class="author vcard">%1$s<a class="url fn n" href="%2$s">%3$s</a></span></span>',
    			sprintf( _x( '<span class="screen-reader-text">Author</span>', 'Used before post author name.', 'catch-responsive' ) ),
    			esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
    			esc_html( get_the_author() )
    		);
    	}
    
    	if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) {
    		echo '<span class="comments-link">';
    		comments_popup_link( esc_html__( 'Leave a comment', 'catch-responsive' ), esc_html__( '1 Comment', 'catch-responsive' ), esc_html__( '% Comments', 'catch-responsive' ) );
    		echo '</span>';
    	}
    
    	edit_post_link( esc_html__( 'Edit', 'catch-responsive' ), '<span class="edit-link">', '</span>' );
    
    	echo '</p><!-- .entry-meta -->';
    }

    Regards,
    Mahesh

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Unlink the date function in the blog’ is closed to new replies.