[Tutorial] Adding header label to (newly) created pages.
Hi if you are like me and doesn't like that you can't use the header labels for newly created pages, this tutorial will come handy for you and it is super easy. Keep in mind: ALWAYS MAKE A BACKUP OF THE FILES YOU ARE ALTERING.
Step 1. Copy your page.php from your themes directory to your childtheme folder
Step 2. Replace
<header>
<h1><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
</header>
with
<div class="list">
<div class="section-head">
<h1><?php printf( __( the_title() ), single_term_title( '', false )); ?></h1>
</div>
Step 3. All your newly created pages will now have a "header label" like the normal pages, I will attach a photo so you can see what I mean with "header label"
1.PNG
2.PNG
/sexD