Custom background image for just one page

Marketplace Forums Themes Cannyon Cannyon Premium Custom background image for just one page

This topic contains 4 replies, has 4 voices, and was last updated by  Mollyforst 1 year, 6 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #4433

    jcady
    Member

    Hi

    I’m trying to put a background image in just one page. I went to the Additional CSS section in the Canyon theme settings and added code for that page only, for example:
    body.page-id-371 {
    background-image: url(http://frogans-now.com/wp-content/uploads/2018/06/Empty-desktop-2.jpg);
    background-repeat: no-repeat;
    background-position: center ;
    }

    What happens is that the image shows up below the footer (I only see it if there is no more than a line of content on the page.

    Any ideas? Thanks.

    #4434

    jcady
    Member

    PS, I also notice that the image is showing up in unused header space. That is, if I increase my header height, the custom background image shows up at the bottom of the header and disappears where the main body starts.

    #4435

    mythemes
    Member

    try next css code:

    body.page-id-371 div.content.main-content{
    background-image: url(http://frogans-now.com/wp-content/uploads/2018/06/Empty-desktop-2.jpg);
    background-repeat: no-repeat;
    background-position: center ;
    }
    #4616

    I really impressed with your work.

    #11491

    Mollyforst
    Member

    Impressed? Huh. I wouldn’t say WOW. I would say that’s phenomenal! Great work by employees keeping up this forum. So many years of work, and they still rise. On one topic, when I had some problems with my photoshop, I was suggested to use https://depositphotos.com/upscaler.html and it helped a lot. There are no other forums that could beat this one. I guess there are offices full of people who work all day, right?

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

[email protected]