How to add background image in Protostar?
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will 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, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
-
- Joomla! Apprentice
- Posts: 9
- Joined: Tue Mar 06, 2018 1:55 pm
How to add background image in Protostar?
Here is my website link: http://mobilephonehistory.site/
Been trying to add he image in for ages but cant do it someone please help!
My code from line 190 to 197 isn't being recognized?
body {
margin: 0;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 13px;
line-height: 18px;
color: #333;
background-color: #fff;
background-image: url('/images/iphone');
Been trying to add he image in for ages but cant do it someone please help!
My code from line 190 to 197 isn't being recognized?
body {
margin: 0;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 13px;
line-height: 18px;
color: #333;
background-color: #fff;
background-image: url('/images/iphone');
Last edited by toivo on Mon Apr 09, 2018 5:54 pm, edited 1 time in total.
Reason: mod note: change subject to normal case - please read the forum rules about subject line from https://forum.joomla.org/viewtopic.php?f=8&t=65
Reason: mod note: change subject to normal case - please read the forum rules about subject line from https://forum.joomla.org/viewtopic.php?f=8&t=65
-
- Joomla! Explorer
- Posts: 443
- Joined: Fri Dec 02, 2005 10:46 am
- Location: The Netherlands
Re: HOW TO ADD BACKGROUND IMAGE IN PROTOSTAR?
Change the line for background-image to:
- I added '/templates/protostar' to the url
- I added .jpg as file extension
Code: Select all
background-image: url('/templates/protostar/images/iphone.jpg');
- I added .jpg as file extension
-
- Joomla! Apprentice
- Posts: 9
- Joined: Tue Mar 06, 2018 1:55 pm
Re: HOW TO ADD BACKGROUND IMAGE IN PROTOSTAR?
Mr. Wimpy wrote:Change the line for background-image to:- I added '/templates/protostar' to the urlCode: Select all
background-image: url('/templates/protostar/images/iphone.jpg');
- I added .jpg as file extension
Hi, ive added it in but its still not picking it up? Does my code seem right? Never been good at css
-
- Joomla! Explorer
- Posts: 443
- Joined: Fri Dec 02, 2005 10:46 am
- Location: The Netherlands
Re: How to add background image in Protostar?
Line 7130 body.site overrides the background-image of body (line 190).
You either need to remove that background-image from body.site or add the above changes as well.
Can I give you another advice: it looks like you are editing the Protostar template.
This template comes with Joomla by default and with the next update your changes will be lost.
Either add the changes to user.css or make a copy of Protostar and edit that.
Copying protostar:
1. Copy the folder protostar (i.e. protostar2)
2. Open protostar2/templateDetails.xml edit the name to protostar2
3. In Joomla admin, go to Extensions > Manage > Discover
4. You should see protostar2 template, select and click Install
5. Go to Extensions > Templates and set protostar2 as default
Regards,
Wim
You either need to remove that background-image from body.site or add the above changes as well.
Can I give you another advice: it looks like you are editing the Protostar template.
This template comes with Joomla by default and with the next update your changes will be lost.
Either add the changes to user.css or make a copy of Protostar and edit that.
Copying protostar:
1. Copy the folder protostar (i.e. protostar2)
2. Open protostar2/templateDetails.xml edit the name to protostar2
3. In Joomla admin, go to Extensions > Manage > Discover
4. You should see protostar2 template, select and click Install
5. Go to Extensions > Templates and set protostar2 as default
Regards,
Wim
-
- Joomla! Apprentice
- Posts: 9
- Joined: Tue Mar 06, 2018 1:55 pm
Re: How to add background image in Protostar?
What will happen if i don't update my Joomla version will it stay? Its only for uni. How often do they update?Mr. Wimpy wrote:Line 7130 body.site overrides the background-image of body (line 190).
You either need to remove that background-image from body.site or add the above changes as well.
Can I give you another advice: it looks like you are editing the Protostar template.
This template comes with Joomla by default and with the next update your changes will be lost.
Either add the changes to user.css or make a copy of Protostar and edit that.
Copying protostar:
1. Copy the folder protostar (i.e. protostar2)
2. Open protostar2/templateDetails.xml edit the name to protostar2
3. In Joomla admin, go to Extensions > Manage > Discover
4. You should see protostar2 template, select and click Install
5. Go to Extensions > Templates and set protostar2 as default
Regards,
Wim
-
- Joomla! Apprentice
- Posts: 9
- Joined: Tue Mar 06, 2018 1:55 pm
Re: How to add background image in Protostar?
Sorry for being a noob but would I just create a new css file called user.css and. Copy and paste all that in from the template.css? Would I need to do anything else or will it recognise the new css file itself? Would I have to join it with anything? Thank youMr. Wimpy wrote:Line 7130 body.site overrides the background-image of body (line 190).
You either need to remove that background-image from body.site or add the above changes as well.
Can I give you another advice: it looks like you are editing the Protostar template.
This template comes with Joomla by default and with the next update your changes will be lost.
Either add the changes to user.css or make a copy of Protostar and edit that.
Copying protostar:
1. Copy the folder protostar (i.e. protostar2)
2. Open protostar2/templateDetails.xml edit the name to protostar2
3. In Joomla admin, go to Extensions > Manage > Discover
4. You should see protostar2 template, select and click Install
5. Go to Extensions > Templates and set protostar2 as default
Regards,
Wim
-
- I've been banned!
- Posts: 13639
- Joined: Sun Jul 05, 2009 3:30 am
- Location: Canberra, Australia
Re: How to add background image in Protostar?
See also viewtopic.php?f=706&t=961035&p=3520523#p3520523shukat1 wrote:Sorry for being a noob but would I just create a new css file called user.css and. Copy and paste all that in from the template.css? Would I need to do anything else or will it recognise the new css file itself? Would I have to join it with anything?
No, you don't have to join anything. Protostar will detect and use the CSS contained in the file user.css if that file exists. It's automatic.
- Per Yngve Berg
- Joomla! Master
- Posts: 30923
- Joined: Mon Oct 27, 2008 9:27 pm
- Location: Romerike, Norway
Re: How to add background image in Protostar?
Mod. Note: Relocated the topic to the Templates Forum.