Also, is it possible to remove the title of the page ONLY on the front page? In my case, it’s a page titled “home.”
Thank you!
Hi there,
You need to customize page.php file to get the same look of page title like on category page. First you need to replace this line:
<h1 class="entry-title"><?php the_title(); ?></h1>
with this:
<h1 class="entry-title"><span><?php the_title(); ?></span></h1>
and then add this style to Appearance → Customize → Additional CSS:
.page .entry-title{text-align:center;letter-spacing:2px;position:relative;margin:0 0 35px}
.page .entry-title span{display:inline-block;max-width:100%;position:relative;padding:0 26px}
.page .entry-title span:before,
.page .entry-title span:after{content:"";position:absolute;left:0;top:50%;margin-top:-2px;width:20px;height:4px;border-top:1px solid #c4c4c4;border-bottom:1px solid #c4c4c4}
.page .entry-title span:after{left:auto;right:0}
To hide page title on static home page please add this css to Appearance → Customize → Additional CSS:
.home .entry-page .entry-title {
display: none;
}
Kind regards