[Support request] Add background image only to one page

Home Forums Support [Support request] Add background image only to one page

Home Forums Support Add background image only to one page

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #802901
    Francesco

    Hi,

    I need to create a landing page and I want to add a background image.

    How can I do?

    I’m using gp premium

    #802921
    David
    Staff
    Customer Support

    Hi there,

    needs a little CSS – if is the home page then:

    .home {
        background-image: url('full_url_to_image/image.jpg');
        background-size: cover;
    }

    If another page then you would replace .home with the .page-id-xxxx

    #802924
    Francesco

    Thanks.

    Any chance to have this added as option on elements in future?

    #803087
    David
    Staff
    Customer Support

    We haven’t seen a huge demand for adding dynamic backgrounds ie. lots of different images being used across multiple pages or templates. But we’re always looking for feedback for improvement so i can add to the list for us to look into. Thanks for the suggestion.

    The CSS can be added using a hook using the body class e.g.

    <style type="text/css">
        body {
            background-image: url('full_url_to_image/image.jpg');
            background-size: cover;
        }
    </style>
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.