Jump to content

Need a small bit of help here...


Recommended Posts

In the top search bar of the default Prestashop theme there is a color behind the "search" button. The corner pixels are transparent on the button and the hex color #E0DFE3 shows through from the field behind. The hex color #E0DFE3 is not referenced in the global.css file anywhere. Furthermore, I cannot find where it is hard coded in Prestashop. Of course, this is not a problem if you are simply using the default Prestashop theme in grays. However, if the button image is changed to something with more transparencies or a different color scheme this light gray color stands out like a sore thumb.

Can somebody please tell me where #E0DFE3 is coded in Prestashop?

Here is an image to clarify:

5511_iyUz1m1VlR4laEWFknfv_t

Link to comment
Share on other sites

Indeed, it is an image - see below

-------------------------
input.button, input.button_disabled, input.exclusive, input.exclusive_disabled, a.button, a.exclusive, span.button, span.exclusive {
width: 120px;
background-image: url('../img/button-medium.gif');
-------------------------

Edit that in photoshop and you'll be good to go.

Link to comment
Share on other sites

Yeah, that's all well and good, but you didn't address the real problem. You changed the button color, but the background of #E0DFE3 is STILL THERE and it does not show up on any .CSS formatting. See first image.

Now, I want to change the image ENTIRELY. Using a .png with varying transparencies. See the second image.

Yes, I understand that I could edit the graphic to match the background for the top search. However, this would also change the occurrences of this same image when used on a different background. The whole point of transparencies in a graphic is versatility and saving page load with reusable images.

WHERE IS THIS #E0DFE3?

5513_SPwkxW2BhLb5sv5EvptK_t

5514_a2sXOkfAcFnbbzVmUDtJ_t

Link to comment
Share on other sites

I appreciate your help here. Your completely transparent image displays the problem perfectly. If it were just a transparent image over the background you would not see the box where the transparent image is.

You see that exact same button is used in your featured items as the "View" button and in your Specials module box as the "All specials" button. In those two places there has been no hard coding done to the background. That is because the CSS coding for this image when it appears here is:

   background-image: url('../img/button-medium.png');



The search button has the added property of background color somewhere. If it were css it would look like this:

   background-image: #e0dfe3 url('../img/button-medium.png');



Somewhere in the code, NOT IN THE CSS, the field for the placement of the top search button is hard coded with a background of #E0DFE3. Use your Photoshop color selector and see for yourself. I am just trying to find out where exactly, that this has been done so it can be fixed.

For some reason the forum won't let me post another image here but you can see it in your link: http://www.prestabase.com/store/prestashop/

Link to comment
Share on other sites

Okay,

I got around this problem by creating a whole new class in global.css just for the top search button. Which also means I will have to include a modified blocksearch-header.tpl file for the modules>blocksearch module with the template package.

The problem with this is that switching themes via the backend will be more than just a simple "click and save" unless the new css variable is added to every theme. This guarantees that some folks will have problems with my new theme.

Better solution is to find where this background color is hard coded and remove it from all future releases. Or, even better yet, have ALL template and css formatting originate in the theme directory.

I am still interested if anyone can tell me where the #E0DFE3 background is coded.

Thanks,

Link to comment
Share on other sites

  • 2 months later...

Hi,

I found a solution to your problem. There is an image behind the Search box, it is called block_search_bg.jpg, and it is in the themes-->prestashop--img folder. If you change the name of the image to anything...lets say block_search_bg2.jpg...then the browser will not be able to locate the image, and then display nothing behind the search box,

REd

Link to comment
Share on other sites

Every box has three images and one color on the background. Header image, background image and footer image along with a color on background. All these images are given a bit of rounded corners so they give better appearance. When you see a header, background or footer image in global.css file, there will be a background color also available in the same section. Try editing that or make your image with square corners. Remember, when you enlarge a very small area, color picking tool of Photoshop does not necessarily captures the right color. It can confuse with surrounding colors as enlarging of a very small part of image results in confusion

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...