- This topic has 5 replies, 2 voices, and was last updated 7 years, 7 months ago by .
Page Titles as H1 instead of H2
You must be logged in to reply to this topic.
Hi Hans,
On any interior pages, it looks as though the page titles load as h2 by default. Is there an easy way to make them load as h1? If you could point me to the code I’d really appreciate it!
Hello,
Yes of course, you can change it by editing the page.php file on line 28.
Thanks a lot for that, but I’m looking at page.php and there’s nothing on line 28. Line 55 looks like it sets the “entry_title” but changing h2 to h1 on that line had no effect when I do an inspect on the page title.
55 <h2 class=”entry-title”><?php the_title(); ?></h2>
Thanks again!
If you change the H2 to H1 you will see a small difference in font size.
But then you can adjust it with some CSS.
You must be logged in to reply to this topic.