WordPress.org

Support

Support » Themes and Templates » Show background image on all pages but not on Homepage

Show background image on all pages but not on Homepage

  • Koenenjan
    Member

    @koenenjan

    Hello,

    I´ve looked around on the internet how to set an background image on all pages on my site stralendlicht.nu. I found the following CSS code that worked:

    body .site {
    background: url(“wp-content/themes/twentytwelve/images/BALLON-LOGO.jpg”);
    background-repeat: no-repeat;
    background-position: center top;
    }

    Now I would like to know how I can remove the background image on the homepage only. I’m quite new with CSS and I can’t find the right information onbline. I hope someone can help me with this.

    Kind regards,

    Jan

Viewing 4 replies - 1 through 4 (of 4 total)
  • WPyogi
    Forum Moderator

    @wpyogi

    You need to be using a Child Theme for any modifications to the default theme – as is your changes will be lost when WP is updated. It’s also crucial to have a clean copy for troubleshooting.

    http://codex.wordpress.org/Child_Themes

    Once you do that, someone can likely help you with the CSS.

    Koenenjan
    Member

    @koenenjan

    Hello WPyogi,

    I’m Using the CSS editor from Jetpack. Can’t I solve the problem using CSS editor?

    Or do I need to set up a child theme. If so, I will do this. Please let me know.

    Koenenjan
    Member

    @koenenjan

    Hello WPyogi,

    I’ve set up the child theme. What’s next?

    WPyogi
    Forum Moderator

    @wpyogi

    Great, I don’t see a background image now ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Show background image on all pages but not on Homepage’ is closed to new replies.