Jump to content

Header Background Image Prestashop 1.7.8.7


Kreykoui

Recommended Posts

Hi there,

I've been trying for a while to introduce a background image into the header of my next store using information found on the web, but it still doesn't work.

Here is my starting point:

#header{
     position:relative;
     z-index:999;
     color:#7a7a7a;
     background:#fff;
     box-shadow:0 2px 5px 0 rgba(0,0,0,0.11)
}

Since color replacement works great, I guess I'm in the right place. But I still haven't found the right way to introduce an image with:

  • background-image: url('my-image.png');

So there is something that escapes me. Here are the questions I ask myself and on which I appeal to your knowledge:

  • Where should I place my images in the tree structure of my site?
  • What is the exact syntax to use in the CSS?
  • Are there other manipulations or precautions in order to have the right result?

Thank you for your valuable time.

Link to comment
Share on other sites

Hi 4you.software,

Thanks for your help.

I still have no result. I even cleared the cache of Prestashop as well as the cache of my browser. I also removed the background color.

There is really something that intrigues me. In addition, I use the original theme to avoid conflicts.

Link to comment
Share on other sites

Sorry for forgetting. I use wamp64 and working with Classydevs Custom CSS and JS.

Put the image in :

wamp64\www\mysitename\themes\classic\assets\img

wamp64\www\mysitename\prestashop\img

wamp64\www\mysitename\admin***\themes\default\img

wamp64\www\mysitename\img

Still no results. I keep searching...

 

Edited by Kreykoui (see edit history)
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...