• Resolved emmanang

    (@emmanang)


    Hello,

    Can you provide a CSS code for your theme for background image implemented on homepage ONLY?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Branko

    (@brankoconjic)

    You can target homepage with .home.

    To target the theme’s page wrapper, you can use:

    .home #page {
      background-image: url('');
    }

    I am so not tech savvy and I want a different background for each page on my sinatra site. Any help with CSS? It’s for my about me page and this is the image-

    81B59B38-D4A3-458E-9AC5-D789928943A3.jpeg

    Thanks!

    Branko

    (@brankoconjic)

    @arrowcounselingms,

    Each page has a unique ID that’s added to body class. Something like this:

    page-id-123

    You can use that class to add different backgrounds for different pages.

    For example:

    .page-id-123 #page {
      background-image: url('');
    }
    Theme Author sinatrateam

    (@sinatrateam)

    Resolving this issue.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘background image on homepage only’ is closed to new replies.