• Resolved bruce

    (@bruce)


    I want the archives of a certain category *not* to display the publication date of the posts.

    In other themes (e.g Twenty twelve) I have created a modified category-xx.php file but I can actually not find one for Tonic.

    Am I just stupid or is there an other explanation?

Viewing 2 replies - 1 through 2 (of 2 total)
  • That part is called using this in content.php
    get_template_part( 'content', 'header' );

    So we can overwrite this file content-header.php in child theme.

    Try combining in the conditional check on line#33
    http://themes.trac.wordpress.org/browser/tonic/1.0.7/content-header.php#L33

    Maybe with something like this

    if( $display_date && ! in_category( array( 'apple', 'orange' ) ) )

    If you don’t mind the date is still in the markup, go with CSS display none using body class and/or post class.

    Thread Starter bruce

    (@bruce)

    Thanks a lot!

    I went for the CSS solution and added

    article.category-category-name time{
    display: none;
    }

    to the style sheet. It hides the time and date both on archive pages and individual posts.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Modify how categories are displayed’ is closed to new replies.