Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Cant change open cart background

Featured Replies

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?

  • 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 ?mellow.gif

 

that is store-->catalog-->view-->theme-->mytheme-->image--> bg-body.jpg

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!)?

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.

  • 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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.