Support » Theme: Dinky » Remove Author Date

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author Misam Saki

    (@misamplus)

    Hi
    First all, I’m so glad you use the theme.

    For remove date and author meta:

    I used dinky_entry_shortmeta function to make this, so you must find this function in functions.php file and at last lines of dinky_entry_shortmeta function, you must remove printf.

    Tanks for your question

    Hi,

    Thanks. I also did this.

    In the css (To remove Title)

    .post .entry-header .entry-title {
    display: none; <<<<< Change inline-block to none
    clear: both;
    word-wrap: break-word;
    -ms-word-wrap: break-word;

    and this one to remove author date and time

    .post .entry-header .entry-shortmeta {
    display: none; <<<<< Change inline-block to none
    float: right;
    margin: 10px 5px;

    Theme Author Misam Saki

    (@misamplus)

    Yes, you can do this by use “display: none;” in “style.css” file but it only hidden and not removing in content.

    Hello, im a Beginner. So i have problems to deaktivate the metainformation on my posts.

    Wit your example to delete the pritf comamnd the site blocks completly.

    Thanks in advance for your support and great work with this theme.

    Hier the block: what i have to do now? (Step by Step plese :-))

    [ Moderator note: please wrap code in backticks or use the code button. ]

    }
    
    function dinky_entry_shortmeta() {
    	global $post;
    	$date = sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a>',
    		esc_url( get_permalink() ),
    		esc_attr( function_exists('jdate') ? jdate(get_option('date_format'), strtotime($post->post_date)) : get_the_time() ),
    		esc_attr( get_the_date('c') ),
    		esc_html( function_exists('jdate') ? jdate(get_option('date_format'), strtotime($post->post_date)) : get_the_date() )
    	);
    
    	$author = sprintf( '<span class="author vcard"><a href="%1$s" title="%2$s" rel="author">%3$s</a></span>',
    		esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
    		esc_attr( sprintf( __( 'View all posts by %s', 'dinky' ), get_the_author() ) ),
    		get_the_author()
    	);
    
    	$utility_text = __( 'Posted on %3$s<span class="by-author"> by %4$s</span>.', 'dinky' );
    
    	printf(
    		$utility_text,
    		'',
    		'',
    		$date,
    		$author
    	);
    }
    Theme Author Misam Saki

    (@misamplus)

    Replace by it

    function dinky_entry_shortmeta() {
    	global $post;
    	$date = sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a>',
    		esc_url( get_permalink() ),
    		esc_attr( function_exists('jdate') ? jdate(get_option('date_format'), strtotime($post->post_date)) : get_the_time() ),
    		esc_attr( get_the_date('c') ),
    		esc_html( function_exists('jdate') ? jdate(get_option('date_format'), strtotime($post->post_date)) : get_the_date() )
    	);
    
    	$author = sprintf( '<span class="author vcard"><a href="%1$s" title="%2$s" rel="author">%3$s</a></span>',
    		esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
    		esc_attr( sprintf( __( 'View all posts by %s', 'dinky' ), get_the_author() ) ),
    		get_the_author()
    	);
    
    	$utility_text = __( 'Posted on %3$s<span class="by-author"> by %4$s</span>.', 'dinky' );
    
    	/*printf(
    		$utility_text,
    		'',
    		'',
    		$date,
    		$author
    	);*/
    }
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Remove Author Date’ is closed to new replies.