How can I use a background image with Protostar?
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
-
- Joomla! Apprentice
- Posts: 9
- Joined: Fri Apr 20, 2018 8:46 am
How can I use a background image with Protostar?
I am using the default protostar template and I want to use a background image in place of the blank space around the content container. Where would I be able to put this?
Last edited by toivo on Fri Apr 20, 2018 9:10 am, edited 1 time in total.
Reason: mod note: retitled - all CAPS not allowed, please read the forum rules about choosing appropriate subject line from https://forum.joomla.org/viewtopic.php?f=8&t=65
Reason: mod note: retitled - all CAPS not allowed, please read the forum rules about choosing appropriate subject line from https://forum.joomla.org/viewtopic.php?f=8&t=65
- AMurray
- Joomla! Exemplar
- Posts: 9729
- Joined: Sat Feb 13, 2010 7:35 am
- Location: Australia
Re: BACKGROUND IMAGE
I think you would specify the ''background" property in your user.css file. There's no template option to set the background image in Protostar (at least I don't believe there is)..
yThe image would go somewhere easy to remember, such as your "images" folder (upload with FTP or your the media manager).
Something like
You may have to include the full file path pointing to the image like "/images/your-pic.jpg".
Not sure why it would have background color as well but maybe if the images don't work (such as a a user turning off displaying images in the browser, it degrades 'gracefully' with a suitable background color and doesn't leave you with plain white in the absence of the image. The example #cccccc is a medium shade of grey, but change it to your liking. There are sites on the web that can give you the 'hex' code for the colors.
I think this is right, but someone else will correct me if I'm wrong.
You use the "user.css" file (create it if it doesn't exist) so the next joomla update doesn't overwrite it. You could put this in the template's template.css file, but the next core update will overwrite it and wipe-out your change.
For more on HTML and CSS tips for page background images, see https://www.w3schools.com/cssref/pr_bac ... -image.asp.
yThe image would go somewhere easy to remember, such as your "images" folder (upload with FTP or your the media manager).
Something like
Code: Select all
body {
background-image: url("paper.gif");
background-color: #cccccc;
}
Not sure why it would have background color as well but maybe if the images don't work (such as a a user turning off displaying images in the browser, it degrades 'gracefully' with a suitable background color and doesn't leave you with plain white in the absence of the image. The example #cccccc is a medium shade of grey, but change it to your liking. There are sites on the web that can give you the 'hex' code for the colors.
I think this is right, but someone else will correct me if I'm wrong.
You use the "user.css" file (create it if it doesn't exist) so the next joomla update doesn't overwrite it. You could put this in the template's template.css file, but the next core update will overwrite it and wipe-out your change.
For more on HTML and CSS tips for page background images, see https://www.w3schools.com/cssref/pr_bac ... -image.asp.
Regards - A Murray
General Support Moderator
General Support Moderator
-
- Joomla! Enthusiast
- Posts: 113
- Joined: Sat Nov 17, 2012 6:10 am
Re: How can I use a background image with Protostar?
Hi
In the JED there is a plugin with which you can put a background image of the body.
https://extensions.joomla.org/extension ... -image-sv/
Hope this helps
In the JED there is a plugin with which you can put a background image of the body.
https://extensions.joomla.org/extension ... -image-sv/
Hope this helps
-
- Joomla! Apprentice
- Posts: 9
- Joined: Fri Apr 20, 2018 8:46 am
Re: BACKGROUND IMAGE
Hi, thanks for replying. I created the user.css file and put the code in as you said but nothing changes. Here is the code I used:AMurray wrote:I think you would specify the ''background" property in your user.css file. There's no template option to set the background image in Protostar (at least I don't believe there is)..
yThe image would go somewhere easy to remember, such as your "images" folder (upload with FTP or your the media manager).
Something like
You may have to include the full file path pointing to the image like "/images/your-pic.jpg".Code: Select all
body { background-image: url("paper.gif"); background-color: #cccccc; }
Not sure why it would have background color as well but maybe if the images don't work (such as a a user turning off displaying images in the browser, it degrades 'gracefully' with a suitable background color and doesn't leave you with plain white in the absence of the image. The example #cccccc is a medium shade of grey, but change it to your liking. There are sites on the web that can give you the 'hex' code for the colors.
I think this is right, but someone else will correct me if I'm wrong.
You use the "user.css" file (create it if it doesn't exist) so the next joomla update doesn't overwrite it. You could put this in the template's template.css file, but the next core update will overwrite it and wipe-out your change.
For more on HTML and CSS tips for page background images, see https://www.w3schools.com/cssref/pr_bac ... -image.asp.
body {
background-image: url("/images/WEBSITEWALLPAPER.jpeg");
}
This is the name of the image in the media. At the moment, the background is green which I set in the template style. I added the background colour property you provided but it didn't change to grey. I'm not sure why it isn't linking and making changes.
-
- Joomla! Apprentice
- Posts: 9
- Joined: Fri Apr 20, 2018 8:46 am
Re: How can I use a background image with Protostar?
Hi, thanks for replying. I installed the extension that you provided and enabled it but I'm not sure where it is. I assumed it would appear in the template style but it isn't there. Where would I find the customisation setup?venci wrote:Hi
In the JED there is a plugin with which you can put a background image of the body.
https://extensions.joomla.org/extension ... -image-sv/
Hope this helps
- Per Yngve Berg
- Joomla! Master
- Posts: 30915
- Joined: Mon Oct 27, 2008 9:27 pm
- Location: Romerike, Norway
Re: How can I use a background image with Protostar?
It's listed as a Plugin. I will suggest Plugin Manager.
Files are case sensitive in Linux. Are the file name in all upper-case with a lower-case type?
Use the browser's diagnostic tools to investigate.
Files are case sensitive in Linux. Are the file name in all upper-case with a lower-case type?
Use the browser's diagnostic tools to investigate.
-
- Joomla! Enthusiast
- Posts: 113
- Joined: Sat Nov 17, 2012 6:10 am
Re: How can I use a background image with Protostar?
Hi,
More about the plugins you can read here https://docs.joomla.org/Help38:Extensio ... in_Manager
As you said Per Yngve Berg, this is a plugin. Its settings are managed by the plugin manager.Hi, thanks for replying. I installed the extension that you provided and enabled it but I'm not sure where it is. I assumed it would appear in the template style but it isn't there. Where would I find the customisation setup?
More about the plugins you can read here https://docs.joomla.org/Help38:Extensio ... in_Manager
-
- Joomla! Apprentice
- Posts: 9
- Joined: Fri Apr 20, 2018 8:46 am
Re: How can I use a background image with Protostar?
It worked.
Using the plugin was inevitably more straightforward than the ineffective code.
Thanks a lot for your help.
Using the plugin was inevitably more straightforward than the ineffective code.
Thanks a lot for your help.
-
- Joomla! Apprentice
- Posts: 9
- Joined: Fri Apr 20, 2018 8:46 am
Re: How can I use a background image with Protostar?
It definitely works, but on two of the pages of my website it disappears. Why is that and how can I fix it?
-
- Joomla! Enthusiast
- Posts: 113
- Joined: Sat Nov 17, 2012 6:10 am
Re: How can I use a background image with Protostar?
Hi,
The code that AMurray suggested is not ineffective, you just need to know how to use it.
If you provide a link to a page that doesn't work, you might get a solution to the problem.
If you think this is a plugin problem, contact its developer.
The code that AMurray suggested is not ineffective, you just need to know how to use it.
If you provide a link to a page that doesn't work, you might get a solution to the problem.
If you think this is a plugin problem, contact its developer.
-
- Joomla! Apprentice
- Posts: 9
- Joined: Fri Apr 20, 2018 8:46 am
Re: How can I use a background image with Protostar?
That's what I meant it probably didn't work because I didn't put it in right.venci wrote:Hi,
The code that AMurray suggested is not ineffective, you just need to know how to use it.
If you provide a link to a page that doesn't work, you might get a solution to the problem.
If you think this is a plugin problem, contact its developer.
https://s6046788.scm.tees.ac.uk/joomla7
-
- Joomla! Enthusiast
- Posts: 113
- Joined: Sat Nov 17, 2012 6:10 am
Re: How can I use a background image with Protostar?
I'm getting an error message when I try to see your site:
Unauthorized
This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.
Unauthorized
This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.
-
- Joomla! Apprentice
- Posts: 9
- Joined: Fri Apr 20, 2018 8:46 am
Re: How can I use a background image with Protostar?
I though that might happen. This website is for my university project. When I access it with this address it takes me to my website on this domain. When I add '/administrator' on the end, it allows me to access the administrator dashboard and edit my website. I don't think you can access it because it's using my university's source?
-
- Joomla! Enthusiast
- Posts: 113
- Joined: Sat Nov 17, 2012 6:10 am
Re: How can I use a background image with Protostar?
hi,
Sorry, but I do not have access to your site.
Someone who has access can help.
Sorry, but I do not have access to your site.
Someone who has access can help.
-
- Joomla! Apprentice
- Posts: 9
- Joined: Fri Apr 20, 2018 8:46 am
Re: How can I use a background image with Protostar?
Oh ok.venci wrote:hi,
Sorry, but I do not have access to your site.
Someone who has access can help.
-
- Joomla! Apprentice
- Posts: 9
- Joined: Fri Apr 20, 2018 8:46 am
Re: How can I use a background image with Protostar?
I will contact the developer.