0

Sorry for this basic question, but I'm having a hard time editing the size of text for the titles on the pages on my wordpress website. The html is below

<h1 class="hero-title"> COVID Visual </h1>

banner for Page

  • This really depends on your theme. Is it a custom theme, a theme that allows you to edit the title size in Customizer, a theme that has options that allows you to edit the title size, a theme that allows you to add your own CSS, or have you created a child theme that you can edit. It's usually good to provide a bit more info. – Tony Djukic Mar 22 at 20:44
  • Thank you Tony. I chose the 'highlight' theme from my webhost. I've done some minor editing in the css files....just not sure how to do this one. – zach Mar 22 at 21:07
  • Edit your question to include the HTML that outputs the title - you can just grab this using the developer tools console in your browser. Most pages use .entry-title or .page-title as the class for the title of pages and posts. So you'd be looking at something like .entry-title, .page-title { font-size:24px; } Obviously you'd use the font size units you pefer and adjust it to what size you want it to be, etc. – Tony Djukic Mar 22 at 21:13
0

In the CSS you want to set it like this:

h1.hero-title,
h2.hero-title{
     font-size: 24px;
}

Change the 24px to whatever size actually works for you.

| improve this answer | |
  • Thank you so much for your help Tony. Would this go in the style.css page? I added that example with a very small font size for testing and I'm not seeing stylistic changes. Thanks again. – zach Mar 22 at 22:45
  • Yes it would, but you may need to add more specificity or maybe override some existing CSS - it really all depends on the rest of the code and the existing CSS rules. It's hard for me to tell because I can only see one line. – Tony Djukic Mar 22 at 23:14
  • Thank you Tony! Afer I added your code above in the Additional CSS in the customizer, it worked! You rock Tony! – zach Mar 22 at 23:59
  • You’re very welcome. – Tony Djukic Mar 23 at 0:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.