Jump to content



Latest News: (loading..)

- - - - -

Background Image on Existing Template

change background change image change template

This topic has been archived. This means that you cannot reply to this topic.
10 replies to this topic

#-19   dmassaro

dmassaro
  • Members
  • 47 posts

Posted 28 February 2012 - 10:29 PM

Hi there,

I recently started to mod a template I found;  It's been great and quite the learning experience so far but I'm still reasonably newbish.  Can anyone suggest an addon or contribution, or method even, to change the background of the template I'm working with?  I'll provide a link to my site if that could help..

www.carpetonegta.ca

thank you kindly.

#-18   burt

burt

    Code Monkey

  • Community Team
  • 7,764 posts

Posted 28 February 2012 - 10:42 PM

use .css

You may need to clear the footer using a div.

It's been covered quite a few times in the forum.

Having said that, this is a template monster template which is full of the worst written code.  These templates are dire.
Dummies guide to designing osCommerce 2.3 Click Me

Or maybe a ready made theme for your shop ??

Warning: My posts may contain Horsemeat.

#-17   dmassaro

dmassaro
  • Members
  • 47 posts

Posted 28 February 2012 - 10:54 PM

Thanks for the tip Burt.  Can you suggest a better venue for templates??  I got this one for free as my boss doesnt have a budget for revamping our old html 1-page site. XD . T_T

#-16   dmassaro

dmassaro
  • Members
  • 47 posts

Posted 29 February 2012 - 03:33 PM

Burt, there are so many .css files when I search.. Could you point me in the right direction?  Any advice I can get from you and the other readers is greatly appreciated. I can't stress enough that I'm a total newb at this. :)

#-15   burt

burt

    Code Monkey

  • Community Team
  • 7,764 posts

Posted 29 February 2012 - 04:07 PM

Any of the .css files.

The only people that can help with the template is those who built it, as they know what code they have mangled.

Being a newb, just makes things worse, as you don't know how to unmangle the code.  

This is how the likes of Template Monster entice you in with a good looking template for next to no money, and then you are stuck with them for even the tiniest change.  It sucks.
Dummies guide to designing osCommerce 2.3 Click Me

Or maybe a ready made theme for your shop ??

Warning: My posts may contain Horsemeat.

#-14   dmassaro

dmassaro
  • Members
  • 47 posts

Posted 01 March 2012 - 05:21 PM

Can you give an example of the code I should add, to put a background image behind what loads on my page please??

#-13   DunWeb

DunWeb

    The Censored One

  • Members
  • 12,735 posts

Posted 01 March 2012 - 05:25 PM

@dmassaro

Change this

BODY {
  text-align: center;
  background: #000000;
  color: #000000;
  margin: 0px;
}



to something like this:

BODY {
  text-align: center;
  background-image: url("images/yourfilename.jpg");
  color: #000000;
  margin: 0px;
}



Chris
:|: Was this post helpful ? Click the LIKE THIS button :|:

See my Profile (click here)

#-12   dmassaro

dmassaro
  • Members
  • 47 posts

Posted 01 March 2012 - 05:52 PM

Will do. Thank Chris!

#-11   dmassaro

dmassaro
  • Members
  • 47 posts

Posted 01 March 2012 - 08:42 PM

In StyleSheets.css I changed:

BODY                                 {color:#111017;margin:0px;background:#fff;min-width:940px;}

to

BODY                                 {color:#111017;margin:0px;background-image:url("/images/bgm.jpg");min-width:940px;}

Wanted to share the minor details, for the sake of people looking to do the same thing in future.

This worked like a charm.  The only setback is my bottom bar with the links at www.carpetonegta.ca is slightly more to the right.  I can live with it.

Thanks again @DunWeb and @burt for the guidance.

#-10   dmassaro

dmassaro
  • Members
  • 47 posts

Posted 01 March 2012 - 09:02 PM

I've gotten some feedback from people i asked to view my site;  for most people it looks great, but when people who run their browser on higher or lower zooms than default, the image doesnt fit the site.

Is there a way I can lock the site's zoom or force it to load in a certain "resolution" if you will?  perhaps another remedy i cant think of?

#-9   pccrafts

pccrafts
  • Members
  • 7 posts

Posted 08 March 2012 - 07:51 PM

where do i upload my images for the header, background, buttons?
in admin, I can upload my product images but where do I find the image file so I can replace my background in css files?
thank you