Can't get background image to appear. (6 posts)

  1. danny_getextra
    Posted 3 years ago #

    I'm working on a childtheme and trying to add a new background image to the logo div.

    I've tried to add use the css command on a couple of div's and it just says there's a parse error. And the image doesn't even appear on the page.

    I want to just get the image to appear. It is in the correct folder specified im just abit worried I've missed something out so wp isn't targetting this particular folder for the images.

    Site URL

  2. danny_getextra
    Posted 3 years ago #

    here is the code i've editting. http://pastebin.com/raw.php?i=BJwPBWsh

  3. WPyogi
    Forum Moderator
    Posted 3 years ago #

    You are not currently actually using the child theme -- looking at the stylesheet, it's not set up correctly -- the @import line does not go at the top of the page -- but right below the commented header section.

    So review Child Themes and fix that, activate the child theme -- make sure it is working by testing some obvious code in the child style.css file, and then try the background image again.

  4. danny_getextra
    Posted 3 years ago #

    I understand what your saying. However I've tested other bits of code I was using the correct theme. Or else it wouldn't let me set it up would it.

    I've reverted back to using the theme's stylesheet itself and changing things on there.


  5. WPyogi
    Forum Moderator
    Posted 3 years ago #

    Did you try changing the new style.css file so it is set up correctly? You will create a LOT of grief for yourself by making changes in the regular style.css file. (There are posts on here all the time from people who loose a whole lot of work from not using a child theme...) At the very least, install a custom CSS plug-in.

  6. i_g_wright
    Posted 3 years ago #


    I'm not sure what the problem is here, use the following CSS:

    #logo {
      width: 100%;
      margin: 35px 0;
      background: url('images/logo.png') transparent no-repeat;

    From the pastebin example you posted you have a ` <- Remove that.

    * It also looks like you've now added the logo as a standard image?

    Anyway, hope this helps.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.