You also only want to hide the page titles for WordPress Pages, not everywhere. Therefore, to be safe, you’ll want to add in another selector to make the style rule more specific. WordPress gives themes the option to use a body_class
function. This function automatically outputs different classes depending on what page you’re visiting. Below is an example of all the classes I see when I’m logged in to our Photography demo site and viewing the About page.