WordPress.org

Support

Support » Themes and Templates » Entry-meta information

Entry-meta information

Viewing 5 replies - 1 through 5 (of 5 total)
  • esmi
    Forum Moderator

    @esmi

    Don’t edit the Twenty Ten theme. Your changes will be over-written the next time you upgrade WordPress. For this reason, it is recommended that you consider creating a child theme for your customisations. Once your child theme is active, we should be able to help with the customisation.

    camilledemondesir
    Member

    @camilledemondesir

    I’m aware of that, but I would still like to know where exactly in the code to make the changes I described…

    Michael
    Forum Moderator

    @alchymyth

    you can edit the function twentyten_posted_on() (from functions.php of the parent theme) and add the edited version to functions.php of the child theme.

    camilledemondesir
    Member

    @camilledemondesir

    Thanks! Which clause exactly do I delete so it only displays a non-hyperlinked date?

    Michael
    Forum Moderator

    @alchymyth

    for example, leave just this:

    function twentyten_posted_on() {
    	printf( __( '<span class="%1$s">Posted on</span> %2$s', 'twentyten' ),
    		'meta-prep meta-prep-author',
    		sprintf( '<span class="entry-date">%1$s</span>',
    			get_the_date()
    		)
    	);
    }

    (untested)

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Entry-meta information’ is closed to new replies.