Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to?


Ken Shea

Recommended Posts

Hi Ken,

In summary, you need to

- remove the background colour from the account box
- Set the font colour of the account box to white or set it back to blank default (so you can read the Account text)


- Add your custom background colour to the ".w-account .my-acc-link::before" style  <- this style is responsible for the circular button effect

image.thumb.png.5bd40f3d43e70f42a5179fdf61d44636.png

 

image.png.fff385dda1f3a5340e9c192a915889c3.png

Edited by CHD-UK
Link to comment
Share on other sites

Hi Ken,

Yes, you will need to add the line

background-color: #90ee90;

to the .w-account css file and then save it.   You also need to edit the widget in the visual editor to remove the current background and font colours you have set.

If we can get the changes to take, it should work just fine. 

 

Here are a few screen shots I've taken from prototyping the changes on your live website in my browser.  This process may help in future as it will help you track down which parts of the theme to change.

 

1. In my web browser, I click f12 to get the developer tools, then click inspector.  Select an element on the page using ctrl + shift + C (top corner icon) and choose the account box

2. The current styles are shown over to the right.  You can see that both background-color and font color are set.

image.thumb.png.2bb0c07dfe90b9551e2068da4a7e1534.png

 

So next I click the tickmarks next to background-color and color to disable these styles  (this will be like us clearing them from the account widget)

image.png.8e0b76dd7b01ddaec48ee27a28c1a1ef.png

 

Next, I am clicking html document window to exand the A class to reveal the "::before" pseudo class, then click it to select and display the styles applied to it.   You will see in the top right the ".w-account .my-acc-link::before" style.  It currently has #0 for the colour and no background-colour set!  (as per the browser window perview) - Will are going to test our changes here, then they will need to be duplicated into the themes css when we are happy.

image.thumb.png.b70686b177dacae8026c23edce090982.png

 

This one is fairly simple, we are just going to add a new entry for

background-colour: #90ee90;

You will see the icon spring to life - the preview is slight wrong colour because it is selected but de-selecting you will see it is as required :)

image.thumb.png.2a9d7a8b89c89bef23a09be731b7c9b5.png

 

 

image.png.3faeecfe113b99560babf574c28f557f.png

 

 

Alternatively, it you are looking to blanket change all of the yellow to another colour, consider the styles button in the themse section.


For the buttons, they are coloured using a variable named background-color-4 :: you will see this available down the right hand side when editing the CSS for the account widget.  Just click to insert the colour-name,  sort of like a short cut - everywhere that it appears will be replaced with the colour you define on the "styles tab"

If you make changes on the styles tab you will need to flush the cache and rebuild the theme from the ADMIN menu. :)

 

image.png.6f08cd663f627263fe6e27b264648d46.png

 

image.png.978b7c190513af28d5dad694831fb891.png

 

image.thumb.png.bf9642eb7e4ed17672bd11ca9ef7b15f.png

(Make sure the style rules have a ; at the end - missed it when taking this screen shot!! )

image.png.091eea01fcc5640b73b157f01c9fcb08.png

 

image.png.3f7fa2504a75a249aa7fe7c052e73aad.png

 

 

image.png

Edited by CHD-UK
remove duplicate image
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...