• Resolved l.p.2

    (@lp2)


    Hi all,

    I’m a complete novice with websites and I can’t find a solution thus far to the problem!

    On my website posts always show a date (news and notice board) which are also hosted on the homepage too (topic and date posted).

    I looked through the php (there is no date/time to delete or comment out) and I copied

    .entry-meta {
    display: none;
    }

    into the css style sheet as someone else suggested but it makes no difference.

    The dates are confusing visitors as they don’t correspond to the content of the posts… please help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi
    It is present in functions.php below code

    function twentytwelve_entry_meta()
    —-

    $date = sprint
    ( '<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( get_the_time() ),
    		esc_attr( get_the_date( 'c' ) ),
    		esc_html( get_the_date() )
    	);
    
    printf(
    		$utility_text,
    		$categories_list,
    		$tag_list,
    		$date,
    		$author
    	);

    You can change to required fields in printf (above)

    In above $date displays date

    Thanks
    Murali

    Thread Starter l.p.2

    (@lp2)

    Hi thanks for you help,

    I’ve gone through the functions php and I can’t see any of the above – I did a cntrl + F to look for the terms within the code just to be sure – and it’s just not in there.

    It’s possible the person who maintained the site before me edited the code – but perhaps doesn’t explain why the dates still appear!

    Please check the function twentytwelve_entry_meta() is present in content.php

    <footer class="entry-meta">
    <?php twentytwelve_entry_meta(); ?>

    this content.php is invoked by single.php (which is template for post).

    Or view your html source, get the divider tag appear before date and you can search for divider tag string in entire theme folder (using Microsoft web matrix or some other tool by copying twenty tweleve theme to web matrix folder)

    Or you can download fresh version of this theme to your pc and compare the code changes in content.php between your theme and original twenty twelve theme from wordpress site.

    Thread Starter l.p.2

    (@lp2)

    The theme entry meta was missing. The theme looks to be quite heavily edited.

    Thanks for your help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Removing date from Twenty Twelve’ is closed to new replies.