Modifying simppeli_posted_on
-
I’m working on my personal website: brettbonfield.com
I’m trying to alter the way individual posts are displayed. In inc/template-tags.php I’ve changed line 37 from
echo '<span class="posted-on">' . $posted_on . '</span><span class="byline"> ' . $byline . '</span>'; // WPCS: XSS OK.
to
echo '<span class="posted-on">' . $posted_on . '</span>'; // WPCS: XSS OK.
And in template-parts/content-single.php I’ve changed line 12 from
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
to
<?php the_title( '<h2 class="entry-title">', '</h2>' ); ?>
It seems like I’ve identified the correct files. On my home page, I have simppeli_posted_on only displaying the posted date and not the byline, but on the individual post it displays both the date and the byline, even though I’m trying to suppress the author. And yet, on the individual post I have successfully changed the H1 to H2.
- The topic ‘Modifying simppeli_posted_on’ is closed to new replies.