Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

Base 3 Site Background

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Hi, just wondering how I can add an image as a site background instead of a block colour. At the moment the colour is set with 'theme magic'. Can I just add some code to custom.css to override this and show an image instead? Cheers
  • Lee Ablett's Avatar
  • Lee Ablett
  • 3 Month Basic
  • 17 posts
  • Karma: 0
The administrator has disabled public write access.
Hi

Have you tried adding the image to the body tag?

You would need to add the css to the custom.css file

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Hi I'm not so hot on the coding side of things. Could you give me a basic example of how this is done?

How and where I add the image to the body tag.

Example code to put in custom.css

I've tried to look where 'theme magic' is changing the background colour but can't seem to see it.

Cheers
  • Lee Ablett's Avatar
  • Lee Ablett
  • 3 Month Basic
  • 17 posts
  • Karma: 0
The administrator has disabled public write access.
Have a link for the site so I can see what you added?

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
body {background-image: path to the image, repeat or no repeat and positioning of it; background-color: transparent;}

So you need to have the image in a folder in the template images and link to it together with whether it repeats and how its positioned

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Thanks Paul, think I've worked it out now.
  • Lee Ablett's Avatar
  • Lee Ablett
  • 3 Month Basic
  • 17 posts
  • Karma: 0
The administrator has disabled public write access.
You're welcome :)

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Hi Paul,

I've tried to follow your instructions but I'm not having any luck. I copied my image into the 'images' folder in the template and used the following code in custom.css:

body {
background: url(/images/'bg-stream.jpg');
}

Any glaring errors there?
  • Garageast's Avatar
  • Garageast
  • LIfetime Developer - Big Bamboo
  • 270 posts
  • Karma: 0
The administrator has disabled public write access.
Do you have a link?

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Hi Paul,

Temporary link is www.garageastdev.co.za/mamagalie3

I've set up a temporary administrator access for you, let me know if you would like me to message it to you.

Cheers

Barry
  • Garageast's Avatar
  • Garageast
  • LIfetime Developer - Big Bamboo
  • 270 posts
  • Karma: 0
The administrator has disabled public write access.
the quote marks are in the wrong place.
body {
background: url('/images/bg-stream.jpg');
}

and your code refers to the images folder on the site root (eg, /images), not the template (/templates/base3/images)
  • blueshift's Avatar
  • blueshift
  • 6 Month Developer
  • 2579 posts
  • 78 Thanks
  • Karma: 26
Last Edit: 9 years 6 months ago by blueshift.
The administrator has disabled public write access.
Thanks blueshift - indeed quotes are in the wrong place

Think you are looking for

body {
background: url('../images/bg-stream.jpg');
}
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Thanks, guys, really appreciate the help as always. Great template.
  • Garageast's Avatar
  • Garageast
  • LIfetime Developer - Big Bamboo
  • 270 posts
  • Karma: 0
The administrator has disabled public write access.
You're welcome

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers