How to target the homepage with CSS

If I add custom html to the header block, as an example, I want it to be visible only on the homepage. Is there an HTML conditional or a target class I can use to use CSS to display it only there?

As an example, WordPress adds a class to the body of the page called .page-id-12345 or .home. 

Can't find a way to target a specific page only such as the homepage.

  • 454
  • More
Replies (2)
    • Hello romtim !

      Now you may connect your necessary CSS files with Raw block. In the coming version every page will have the "Injections" in the Settings area.

      • Hello romtim !

        Now you may connect your necessary CSS files with Raw block. In the coming version every page will have the "Injections" in the Settings area.

        Thank you, the more I hear about the new version, the more I'm looking forward to it!
        Best of luck with the release.

        Login or Join to comment.