Okay
  Public Ticket #146922
background image
Closed

Comments

  •  1
    tim started the conversation
    Hi, I would like to set a background image on individual pages. On a former ticket, there was a response that recommended the following code: body.page-id-20 .container-wrap { background-image: url('your-img.jpg'); } I used this using my page id and my image url as follows: body.page-id-13011 .container-wrap { background-image: url ('http://pvatestsite.com/nrgfx/wp-content/uploads/2014/01/destrans-background-girls-seated-bend.jpg'); } and there was absolutely no change to the page at all. Any ideas would be appreciated. Thanks, Tim
  •  1,069
    ThemeNectar replied

    Hey again Tim! As I mentioned in the other ticket I would really need to see the URL of the page you're trying to add it on to check it out.

    Cheers :)

  •  1
    tim replied

    http://pvatestsite.com/nrgfx/about/.  This is the page I am currently working on, but it is not the only page that will have this function.  The general methodology for a background image is not working here, so some guidance would be great.  Thanks.  

  •  1,069
    ThemeNectar replied

    Hey again Tim,

    the correct page ID for the page you've supplied for me is 674 - therefore the correct snippet for your custom css box would be:

    body.page-id-647 .container-wrap { 
       background-image: url ('http://pvatestsite.com/nrgfx/wp-content/uploads/2014/01/destrans-background-girls-seated-bend.jpg'); 
    } 

    However, you have no content at all on that page for the background to even show. It goes straight from a header into a fullwidth nectar slider followed by the footer. You'll need to add some content to your editor in order to see the background image appear :)

  •  1
    tim replied

    Code worked.  Great job and thank you. While I realize your ticket time may be a bit longer than usual, you do put forth your best effort to resolve issues.  Thank you.