Home>Support>Heading H1 to H2 for blog titles

Heading H1 to H2 for blog titles

Hi there,

I’m very happy with the theme you made, but i’ve got an issue. I have a static page with a blog area, but the titles of my blogs (using loop.php) are in H1. I want this in H2 for seo purposes. Already tried to change “article.post .entry-header h1.entry-title” in the style.css to h2, but didn’t seem to work.

Do you guys have a solution?

URL: http://eherkenningexpert.nl

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 5 months ago Andrew Misplon
    Hi, I Work Here

    Hi EHerkenning Expert

    Thanks for reaching out.

    CSS targets HTML that exists on the page/in the template file. CSS needs something to target. You’re right, the CSS will need to change but the HTML heading tag will need to be changed first.

    Try the following child theme: https://github.com/siteorigin/vantage-child/tree/feature/loop-h2-tags. There is a download ZIP button in the right column. Try installing the ZIP from Appearance > Themes > Add New: Upload Theme. Activating a child theme will cause Customizer and Menu settings to reset. Test the child theme out before redoing those.

    Let us know how you come along.

  2. 9 years, 5 months ago twitter-eHerkenningXprt

    Thank you for your answer. Installed the child theme and added this code:

    }
    article.post .entry-header h2.entry-title,
    article.page .entry-header h2.entry-title {
      color: #3b3b3b;
      font-size: 20px;
      font-weight: 500;
      line-height: 1.35em;
    }
    article.post .entry-header h2.entry-title a,
    article.page .entry-header h2.entry-title a {
      color: inherit;
      text-decoration: none;
    }

    Still doesn’t work, the child theme is active now.

  3. 9 years, 5 months ago Andrew Misplon
    Hi, I Work Here

    Sorry for not mentioning that. I’ve already added, what should be the necessary CSS to the style.css file in the child theme. Although I might have missed the link selector so you could add that. Just remove one, use either the CSS in style.css of the child theme OR Custom CSS.

    Please could you send through a set of temporary login details and we’ll take a look at the child theme issue. Instructions below. Thanks.

    //

    Would it be possible for you to create a temporary admin account for us so we can log in and take a look? You can create the account with the following email address:

    [email protected]

    Just navigate to Users > Add New in your WordPress admin. Enter siteorigin for the username and [email protected] for the email address. Make sure you’ve selected Administrator for the role and enabled the “Send Password” field so we receive the details.

    Once we’re finished taking a look, you can delete this account. We’ll let you know when to do that.

  4. 9 years, 5 months ago Private Message - eHerkenning Expert

    This is a private message.

  5. 9 years, 5 months ago twitter-eHerkenningXprt

    I’ve sent you the details. Thanks in advance.

  6. 9 years, 5 months ago Andrew Misplon
    Hi, I Work Here

    Sorry about that! I hadn’t pushed my local changes. Please see:

    https://github.com/siteorigin/vantage-child/tree/feature/loop-h2-tags

    If you’d like you can use FTP to upload the content.php file to your child theme. If you know how to do that it would be the fastest.

  7. 9 years, 5 months ago twitter-eHerkenningXprt

    Thanks Andrew, it’s now h2. Looks a little bit like it’s streched out, but I’m happy with the results!

  8. 9 years, 5 months ago Andrew Misplon
    Hi, I Work Here

    Super, glad we made progress there.

    Stretched out? Let me know what you mean. I’m sure we can adjust the CSS to compensate.

  9. 9 years, 5 months ago twitter-eHerkenningXprt

    It’s ok now, you can mark this topic as resolved. After I emptied the caches everything was ok. Thank you for your time and your help!

  10. 9 years, 5 months ago Andrew Misplon
    Hi, I Work Here

    Super, glad we could help.

    All the best.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More