[Resolved] Background Image

Home Forums Support [Resolved] Background Image

Home Forums Support Background Image

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1535863
    Sanu Kumar

    Can I add a background image in only this page?
    URL: https://masteryblogging.com/black-friday-deals/

    #1535979
    David
    Staff
    Customer Support

    Hi there,

    you can use this CSS to target that Page by its ID:

    .page-id-6995 #page {
        background-image: url('the_full_url_to_your_background_image');
    }
    #1536925
    Sanu Kumar

    I am looking to give an exact same look like GP is using on their homepage.
    https://generatepress.com/

    Are they using background image or anything else?

    #1536935
    Elvin
    Staff
    Customer Support

    Are they using background image or anything else?

    Yes it is using a background-image applied to the <body> tag.

    A wise man once said:
    "Have you cleared your cache?"

    #1536983
    Sanu Kumar

    how do I get the same

    #1537002
    Elvin
    Staff
    Customer Support

    The site uses this CSS properties:

    body {
        overflow-x: hidden;
        background: url(xxxx);
        background: url(xxxx),linear-gradient(transparent,transparent);
        background-repeat: no-repeat;
        background-size: 100% auto;
    }

    But we highly discourage taking image files you don’t own. Consider hiring a Graphic Designer to create assets for your site or get one from license free graphic asset library sites.

    A wise man once said:
    "Have you cleared your cache?"

    #1537009
    Sanu Kumar

    I’m just looking to add this only in this page: masteryblogging.com/black-friday-deals/

    #1537023
    Sanu Kumar

    and may I know from where do I get these license background images?

    #1537185
    David
    Staff
    Customer Support

    The images used in the GP site were custom designed specifically for GP. You would need to source your own images.

    The code i provided here is what you still require for adding the image to that specific page:

    https://generatepress.com/forums/topic/background-image-9/#post-1535979

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.