• Resolved stainsbyte

    (@stainsbyte)


    The Author line of a post includes the ‘updated [date]’ information as well as the ‘by [author]’ and ‘published [date]’.
    We would like to remove the ‘updated [date]’ information in https://the-silent-partner.com/the-pi-pixel-project/, but cannot find an option in the customizer to do this. Can you suggest how this can be done, please.

    The Pi Pixel Project
    by Evan Stainsby · Published March 13, 2016 · Updated March 14, 2016
Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi stainsbyte. You would need to copy /parts/single-author-date.php to the same path in a child theme. Then find this block:

    <?php if( get_the_modified_date() != get_the_date() || get_the_modified_time() != get_the_time() ) : ?>
      <?php _e('Published', 'hueman'); ?> <time class="published" datetime="<?php the_time('Y-m-d H:i:s'); ?>"><?php the_time(get_option('date_format')); ?></time>
      · <?php _e('Updated', 'hueman'); ?> <time class="updated" datetime="<?php the_modified_time('Y-m-d H:i:s'); ?>"><?php the_modified_time('F j, Y'); ?></time>
    <?php else : ?>

    And remove the line starting with &middot:

    <?php if( get_the_modified_date() != get_the_date() || get_the_modified_time() != get_the_time() ) : ?>
      <?php _e('Published', 'hueman'); ?> <time class="published" datetime="<?php the_time('Y-m-d H:i:s'); ?>"><?php the_time(get_option('date_format')); ?></time>
    <?php else : ?>

    The other option would be Customize > Global settings > Performance and SEO, then disable Use Structured Data Markup for your posts.

    Thanks for your help so far. I have created a child theme of Coral Dark (learning all this as I go) but I don’t have the “parts” directory in my parent. What path/php should I copy into my child theme for these changes?

    https://elle8778.net

    I also don’t have/see the “Customize > Global settings > Performance…” options, but I’d prefer to do this with the above coding method.

    @jahyes – This forum is for the Hueman theme. What we’re discussing here doesn’t apply to your theme. If you have a question regarding your Coral Dark theme you should post it on that theme’s support forum:
    https://www.ads-software.com/support/theme/coral-dark

    Thread Starter stainsbyte

    (@stainsbyte)

    Thank you for your assistance bdbrown.

    For the moment I have applied your suggested settings, but we may want to go back and change the Child Theme as you suggested.

    If necessary we will make your coding changes – need to check with the owner of the site.

    I will mark this topic as resolved.

    You’re welcome; glad to help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to remove 'updated' details from author line’ is closed to new replies.