Results 1 to 8 of 8
  1. #1
    Join Date
    May 2008
    Posts
    122
    Plugin Contributions
    0

    Default Background on CSS will not change when I replace the url.

    I am trying to change the background of a zencart template. When I go into the stylesheet_tv.css I removed the line that was in the background under the body and under the menu-wrap. I am on a local host so i replaced it with the location of image on my computer, which looks like this. "xampp/htdocs/Zencartgalaxy/images/galaxy.jpg".

    The background did remove the color that was initially there, so it is now white, but it will not show my galaxy background.

    Does anyone have any thoughts on what I am doing wrong?

  2. #2
    Join Date
    May 2010
    Location
    WA State
    Posts
    1,678
    Plugin Contributions
    3

    Default Re: Background on CSS will not change when I replace the url.

    That isn't the correct Zen Cart path for a background image. It should look like this:

    background: url(../images/galaxy.jpg) And the galaxy.jpg should be in /your_template/images.

  3. #3
    Join Date
    May 2008
    Posts
    122
    Plugin Contributions
    0

    Default Re: Background on CSS will not change when I replace the url.

    I do not believe i have a " /your_template/images"

    Is that something you created and if yes in which folder do you place it? Thanks.

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Background on CSS will not change when I replace the url.

    /your_template/ is whatever the folder name of your template is, and you should make an /images/ folder in it if you don't have one already.

    /includes/templates/your_template/images/galaxy.jpg

  5. #5
    Join Date
    May 2008
    Posts
    122
    Plugin Contributions
    0

    Default Re: Background on CSS will not change when I replace the url.

    Ironic, I thought it went there but a computer website creator friend told me it did not matter where the image was. So much for that. Anyway, I just moved it, yet the image is still not showing. This is what I have in the background on the CSS page: background: url(../images/galaxy.jpg). I tried it w/ and w/o quotes. Any other ideas on what I might be doing wrong? Thanks again!

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Background on CSS will not change when I replace the url.

    Are you absolutely certain that the actual image is named galaxy.jpg and not Galaxy.jpg or something? Case matters for this.

    background: url(../images/galaxy.jpg)

    Do you have a semicolon after the value?

    background: url(../images/galaxy.jpg);

    What does the whole rule look like, exactly?

  7. #7
    Join Date
    May 2008
    Posts
    122
    Plugin Contributions
    0

    Default Re: Background on CSS will not change when I replace the url.

    Thank you so very much. I had no semi colon! Now I will be able to sleep tonight instead of me trying all night to fix this.

  8. #8
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Background on CSS will not change when I replace the url.

    a computer website creator friend told me it did not matter where the image was.
    For built-from-scratch sites, that is true; and it is possible to call a Zen Cart background image from other locations, but not as simple nor recommended.

 

 

Similar Threads

  1. Replies: 5
    Last Post: 5 Jun 2010, 11:18 PM
  2. Change language by URL. - Incoming link will change the curency
    By thailandosc in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 4
    Last Post: 10 Jul 2008, 11:41 PM
  3. Where is the part in CSS to change the color of the middle part of the background?
    By drbarnet in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 29 Jul 2006, 08:12 AM
  4. Customizing background...not simple CSS change question...
    By g0hst in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 20 Jun 2006, 08:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg