Modularity Lite: Removing background while retaining image on homepage only

  • Author
    Posts
  • #2516310

    I am using Modularity Lite and have attempted several CSS codes to remove my background image on all of my pages while still preserving that image on the homepage. Is there a code that will work in my case?

    Thanks!

    LC

    The blog I need help with is musingsinmagick.com.

    #2516488

    Hi LC, what we have to do it to remove the background image you have set everywhere and then bring it back on just the home page with CSS. Go to Appearance > Customize > CSS, delete all the informational text in that window, and paste in the following custom CSS and see what you think.

    body.custom-background {
        background-image: none;
    }
    body.home.custom-background {
        background-image: url("http://musingsinmagick.files.wordpress.com/2015/12/mnm-viewfinderfilter2.jpg");
    }

The topic ‘Modularity Lite: Removing background while retaining image on homepage only’ is closed to new replies.