Advertisement:

Author Topic: How to set the background image?  (Read 125 times)

alex7070m

  • Newbie
  • *
  • Posts: 11
How to set the background image?
« on: June 19, 2019, 11:37:59 am »
Hello! How to set the background image? What file need to be corrected? Thanks

BritWeb

  • Hero Member
  • *****
  • Posts: 770
  • If it ain't broke, don't fix it.
Re: How to set the background image?
« Reply #1 on: June 19, 2019, 12:51:25 pm »
Hello! How to set the background image? What file need to be corrected? Thanks

Just a basic pointer. Put the following line in your css file...

Code: [Select]
.background_image {width:100%; height:120px; background:url(../images/background_image.jpg) no-repeat center; background-color: #cccccc}
... and place '<div class="background_image"></div>' wherever you like the background to go. You got to have that image in the image folder of your theme.


Regards

alex7070m

  • Newbie
  • *
  • Posts: 11
Re: How to set the background image?
« Reply #2 on: June 19, 2019, 03:44:17 pm »
Thanks! I will see. It would be more convenient that the background image could be set in the administration panel as well as the logo image.

BritWeb

  • Hero Member
  • *****
  • Posts: 770
  • If it ain't broke, don't fix it.
Re: How to set the background image?
« Reply #3 on: June 19, 2019, 11:10:25 pm »
Thanks! I will see. It would be more convenient that the background image could be set in the administration panel as well as the logo image.

It all depends on the theme you are using. Some themes do have and some don't, hence doing it manually is the only option.

Best of luck!