Cyber Week Sale! Get $20 off GP Premium, $40 off our new Lifetime license, and 45% off license renewals/extensions! Learn more

Give every h1-entry title an id?

Home Forums Support Give every h1-entry title an id?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #165917

    Hi Tom,

    I was wondering if it’s possible to give every entry title on my pages an id instead of the class “entry-title”?

    Now it says: <h1 class=”entry-title” itemprop=”headline”>Home</h1>.

    I would like to give them all different background colors!



    Lead Developer
    Lead Developer

    Hi Julia,

    It’s possible, but it would be difficult.

    Instead, I would use the body class.

    Each page is given a unique class with the page ID – you can see it by using your Inspect Element tool in your browser.

    The <body> element should have a class like this: page-id-xx

    “xx” being the ID of the page.

    So you can target individual entry-title elements like this:

    .page-id-xx .entry-title {
        /* CSS to make this one entry title different */

    Let me know if you need more info 🙂

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.