How to define two different background css?

I want to have two or more css body background for different pages. Like I want image backgroug for Home page and white background for post page. It will be a great help if you help me informing in which portion I should dig into … Thanks !

Put them in app.less and use the body classes to differentiate between the two ( .home and .single-post should work - if they don’t check the source). Don’t forget to recompile afterwards.

Basic CSS questions will usually be closed or left unanswered here. There are countless better places online to read up on the fundamentals and ask questions (CSS Tricks, Stack Overflow etc.). Also, if you haven’t done so already, please read through this and our docs.

1 Like