• Resolved Elizgreen

    (@elizgreen)


    I found previous help on how to change the “content.php” to add the date above the blog post. I did as noted, but it deletes the “HOME” and blog posts when I view my blog. I have tried to return it to the original code but it doesn’t fix the problem. I have had to delete and reinstall Iconic One (twice). This was working fine up until a recent update. This is the code I was changing. I really want the blog to look how it was “before” the update. Note… the update also removed the full blog post showing, but I was able to to change that code without a problem.

    http://stampscrapandmore.com

    Find this line 25 inside content.php

    <?php if ( is_single() ) : //for date on single page ?>

    and replace it with

    <?php if ( is_single() || is_home() ) : //for date on single and home page ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author Themonic

    (@themonic)

    The code for date is working fine, just tested again.

    <?php if ( is_single() || is_home() ) : //for date on single and home page ?>

    After that don’t forget to empty browser cache and site cache if using cache plugin.

    We will also add a setting for showing date on home page in the next theme version.

    Do check https://codex.wordpress.org/Child_Themes

    Thread Starter Elizgreen

    (@elizgreen)

    Thank you. I was able to get it to work with your suggestions. Adding it to the next update would be greatly appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Date on blog post’ is closed to new replies.