gateway theme

  • Unknown's avatar

    hi, how can i add the background image to my pages?

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Edit your main page and set a Featured Image and see if that gets you what you are wanting.

  • Unknown's avatar

    thank you. is there any way of having different background images on different pages or would that require CSS?

  • Unknown's avatar

    Hi there,

    Setting a different background image for each page would indeed require some custom CSS.

    Every single post and page has a unique ID. You can find its ID by navigating to its editor and looking for a number in the URL.

    If, for example, the URL for your page’s editor was the following, you would be able to tell that it’s unique ID was 5273:

    https://wordpress.com/page/example.wordpress.com/5273

    Once you have the unique ID for your post or page, you would add the following custom CSS to set a unique background image:

    body.page-id-5273 {
        background-image: url(https://example.jpg);
        background-repeat: repeat;
        background-position: top left;
        background-attachment: scroll;
    }

    In the above snippet, replace the number in page-id-5273 with the ID for your page or post.

    https://example.jpg should also be replaced with the URL to the image you wish to use for the background.

    Let me know if that helps you out or if you have any extra questions.

  • The topic ‘gateway theme’ is closed to new replies.