I know how to change the colour of my background in my custom theme however I was wondering if it were possible to change the background on all pages to an image?

I imagine it is similar to changing the colour but I don't know enough about magento 2 to be able to do it.

Any help would be much appreciated. I understand that my question is vague and basic ;)

  • Can you add more description to your question? – Sukumar Gorai Aug 30 '18 at 14:27
  • I've added more now. I appreciate that my question is very basic :P – Greg Aug 30 '18 at 14:31
  • Do you want same image on all pages? Can you provide the image size or image? – Sukumar Gorai Aug 30 '18 at 14:33
  • Just an image that covers the whole background. Something you would make in photoshop maybe rather than having the background as one solid colour like #FFC0CB – Greg Aug 30 '18 at 14:36

just add this in one of your css / less files:

body {
    background-image: url('../images/image.png');

and place the image.png file in the relative path to your file mentioned above.

  • Would the path be something like app/design/frontend/Custom/Theme/web/images/picture.png ? – Greg Aug 31 '18 at 15:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.