Jump to content

Trying to change the background color to an image


Getalinks

Recommended Posts

Help! Trying to post the problem, but it keeps taking me back to the main screen.

 

Ok, sixth time trying to post this:

 

Anyways, so I'm trying to change my background color of the store from a color to an image.

 

I'm using the default Bootstrap theme.

 

I've uploaded my image to the theme img folder and called it final.jpg.

 

I have followed tutorial after tutorial. Nothing is working and I'm going nuts.

 

Attached is the global.css file I'm working with. The lines of code everyone is referring to, I don't see.

 

Also, not trying to promote my store or anything, but it's www.fenixflamecomics.com so you can maybe see if I'm trying to change a store that cannot be changed.

 

Anyone have any idea what I should type and where in the giant lines of code I'm reading? I hope there is nothing in the file that would allow me to be hacked. :)

 

Thanks in advance.

global.css

Edited by Getalinks (see edit history)
Link to comment
Share on other sites

I don't know if I did modify it correctly. I did what they all said to do, but everyone says to do something different. The global file I have attached is vanilla, I haven't modified anything in that one.

 

When I did have modified code, I had refreshed, cleared caches and everything. Still nothing though.

Link to comment
Share on other sites

First of all, the page back ground colour will be override by each block elements.

I assume you are using default-bootstrap theme and you never changed the global.css (original file from 1.6.1.5) file before.

 

then lines from #549 should be something like this

.container {
  margin-right: auto;
  margin-left: auto;

If you add line for background-color like below, it will changes all containers background color. 

.container {
  background-color: beige;

  margin-right: auto;   margin-left: auto;

Link to comment
Share on other sites

I replace the new line with following 2 lines. it works fine.

 

  background-image: url("/store/themes/default-bootstrap/img/bg_bt.gif");
  background-repeat: repeat;

 

 

Note - store is the physical path of my development store.

Attached is the background with image.

post-111278-0-55243500-1461960222_thumb.png

Edited by shokinro (see edit history)
Link to comment
Share on other sites

Hi again,

 

Ok, I found that line of code and put it now like this:

 

.container {
  background-image: url("public_html/store/themes/default-bootstrap/img/final.jpg");
  background-repeat: repeat;
  margin-right: auto;
  margin-left: auto;

 

Still no change.

Link to comment
Share on other sites

you image URL is wrong, it should be 

 

if your store url is something like http://yourstoredomain.com/store/

  background-image: url("/store/themes/default-bootstrap/img/final.jpg");

 

Or 

 

if your store url is something like http://yourstoredomain.com/

 
background-image: url("/themes/default-bootstrap/img/final.jpg");
Edited by shokinro (see edit history)
Link to comment
Share on other sites

Ok, so it kinda worked. But not where I wanted it. So, now I'm going to ask a few more questions to get it where I want. See pic attached.

 

  • What code changes the font of the words circled yellow in the pic?
  •  
  • I don't want the row circled in red to have the image, how do I make that the gray again?
  •  
  • How do I get the image background to show where the red Xs are?
  •  
  • Is there a page or something on here that shows what each line of code does (maybe commented in the CSS coding)

 

Please, stay with me, I really appreciate all the help. Truly.

post-1242685-0-20041300-1462111684_thumb.jpg

Edited by Getalinks (see edit history)
Link to comment
Share on other sites

- I tried to replied a few times, I was not able to post, my post message on this topic got auto-save, but never posted. it is really frustrating. I hope I can post without problem, you may consider to create a new topic, since it is different issue.

Link to comment
Share on other sites

But it's the same issue. I just need to add the background image to the places mentioned. Since it's the Bootstrap theme, someone has to know where the lines of code are to change those. I downloaded a few CSS editor tools, but they are just as confusing as trying to figure it out by myself. Again, I appreciate all the help and hope someone has a solution to my question.

 

 

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...