April 30, 201016 yr Hello friends, I tried this css for changing myopencart store background with this css body { margin: 0px; padding: 0px; text-align: center; background-attachment: fixed; background-image: url(../image/bg-body.jpg); background-repeat: repeat-x; background-position: top; } but failed?
April 30, 201016 yr Author Does the file body-bg.jpg actually exist? ya i uploaded it to the same folder where all other images of the template exists ? that is store-->catalog-->view-->theme-->mytheme-->image--> bg-body.jpg
May 1, 201016 yr body { margin: 0px; padding: 0px; text-align: center; } body, td, th, input, textarea, select, a { font-size: 12px; } Is the only css you've applied to the body tag.Have you disabled any caching systems that may be on (always recommended during development!)?
May 1, 201016 yr We had a similar request from one of our clients recently and we could not find a way via opencarts css. So one of our developers simply advised them to add this after the header on the 'header.tpl' file - <body bgcolor="#000000"></body> [change code to your colour choice] EG: /catalog/view/theme/yourtheme/template/common/header.tpl Maybe just a quick fix - but it works! We will PM you the clients site so you can see if that is the look you want.
May 2, 201016 yr Author thanks everyone i got it solved i was actually using the wrong path of mt css file of mynewtheme here <link rel="stylesheet" type="text/css" href="catalog/view/theme/mytheme/stylesheet/stylesheet.css" /> i changed it in header.tpl
Create an account or sign in to comment