Viewing 6 replies - 1 through 6 (of 6 total)
  • The easiest thing to do would be to create a child theme and then modify the functions that output the date and metadata in your child theme’s functions.php:

    function twentysixteen_entry_date() {
      return null;
    }
    
    function twentysixteen_entry_taxonomies() {
      return null;
    }
    Thread Starter drriley

    (@drriley)

    Thank you so much. That does exactly what I need. I don’t know why WP or individual theme designers don’t have a readily available simple check-box option to turn on/off functions such as post date, etc.?

    One more question, please and thank you: Would you know how to make the same work in themify-base theme? I tried using the same code, but changing ‘twentysixteen’ to ‘themify-base’ but no luck. I didn’t think it would work just changing the theme name like that, as I’m sure different themes call things differently, but I thought I’d try it.

    For Themify Base, you’ll have to do something a bit different. In your child theme, copy the file includes/loop.php from the parent theme to the same place in your child theme, and then delete lines 35 and 41-56:

    <time datetime="<?php the_time('o-m-d') ?>" class="post-date"><?php echo get_the_date( apply_filters( 'themify_loop_date', '' ) ) ?></time>

    and

    <?php if ( ! is_attachment() ) : ?>
      <p class="post-meta">
        <span class="post-author"><?php the_author_posts_link(); ?></span>
    
        <?php the_terms( get_the_id(), 'category', ' <span class="post-category">', ', ', '</span>' ); ?>
    
        <?php the_tags( ' <span class="post-tag">', ', ', '</span>' ); ?>
    
        <?php if ( comments_open() ) : ?>
          <span class="post-comment">
            <?php comments_popup_link( __( '0 Comments', 'themify' ), __( '1 Comment', 'themify' ), __( '% Comments', 'themify' ) ); ?>
          </span>
        <?php endif; //post comment ?>
      </p>
      <!-- /.post-meta -->
    <?php endif; ?>

    In your particular case, though, you might be better off using static pages instead of a blog. Most themes don’t display the date or other meta information on static pages.

    Thread Starter drriley

    (@drriley)

    Thank you so very much. This has finally brought an end to DAYS of trial and error and frustration. It all works perfectly. Greatly appreciated.

    pprasatik

    (@pprasatik)

    In reference to: “you might be better off using static pages instead of a blog. Most themes don’t display the date or other meta information on static pages,” I set my Home page as the landing page and set it to static. As you said, the date and other meta information does not appear. But now, how do I remove the Home title? It’s a bit obnoxious!

    Thread Starter drriley

    (@drriley)

    As you (stephencottontail) were such a huge help previously I’m hopeful that you might have a solution also (I’m sure you do) to removing the same info (post meta / date – categories list) from all displays within the Quill theme. To me it looks yet different again from the two you previously helped with … just to make it even more confusing. Yet again, to me it seems like a relatively simple/common option – and I frequently see postings asking how to do it – and I’m amazed that theme developers in all their myriad options and updates still do not include options for things like turning on/off the display of date and/or other meta data.

    Thank you very much for any assistance you can provide (again). 🙂

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘REMOVE (not mask) post date / meta’ is closed to new replies.