Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Feb 2012
    Posts
    427
    Plugin Contributions
    0

    Default Colour changed without being altered?

    [Note: remember to include site URL, ZC version, list of plugins, PHP version, etc ... read the Posting Tips shown above for information to include in your post here. And, remove this comment before actually posting!]

    Hello,
    I have just notived that a few of the links on my site (craftjam.co.uk) have changed colour? However I havent altered any colours for a very long time!
    Cartproducttitle, Help (?), largeri= image link.

    I have tried to locate it in css and css colour, however as I do not know the code for the blue colour, I am struggling to find it. I have also used inspect element and it isnt showing on there either.

    DOes anyone know what this is?

    Thanks
    A

  2. #2
    Join Date
    Feb 2012
    Posts
    427
    Plugin Contributions
    0

    Default Re: Colour changed without being altered?

    Also, when I click the product link, it flashes blue then back to the grey colour I use.

    Thank you
    A

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    8,956
    Plugin Contributions
    71

    Default Re: Colour changed without being altered?

    You've got a hover-color, e.g. a:hover { background-color: blue; }, defined for the button.

  4. #4
    Join Date
    Feb 2012
    Posts
    427
    Plugin Contributions
    0

    Default Re: Colour changed without being altered?

    Hi,
    The ones mentioned in the first message arent hover over are they? They are always showing that colour now. They werent before so not sure what has changed.
    Or if I am incorrect and they are still classed as hoverover, can you point me to the code where I can remove it please.

    A

  5. #5
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    8,956
    Plugin Contributions
    71

    Default Re: Colour changed without being altered?

    There are usually :visited stylings as well, e.g. a:visited { color: red; }, that identify links that a customer has (er) visited before. Perhaps that's where the color change is happening.

    Since you're using the responsive_classic template, I suggest that you look at the /css/stylesheet_colors.css to find that unwanted CSS selector.

  6. #6
    Join Date
    Feb 2009
    Location
    UK
    Posts
    655
    Plugin Contributions
    0

    Default Re: Colour changed without being altered?

    The 'blue' you mention seems to be line #8 of stylesheet_colors.css

    a:active {color:#0000ff;}

    I used Firefox's Inspect Element feature on one of the links - you have to make sure that the pseudo class checkoxes (hover, active, focus etc) to the right of the inspector screen are checked.
    Simon

  7. #7
    Join Date
    Feb 2012
    Posts
    427
    Plugin Contributions
    0

    Default Re: Colour changed without being altered?

    Hi,
    Thanks for that blue colour code. I have changed it but it only changes the blue I get when I click a product link.
    I still have permenantly blue coloured links on the 'larger image link' and the name of the product in the cart link.

    The 'pseudo class checkoxes' I could not locate. So was unsure about that.

    Still looking through the stylesheet colours document however I am not seeing a reference to a blue colour that I can change.

    Thank you
    Amy

  8. #8
    Join Date
    Feb 2009
    Location
    UK
    Posts
    655
    Plugin Contributions
    0

    Default Re: Colour changed without being altered?

    Yes, sorry I didn't explain the pseudo thing very well - you have to click on the ':hov' link this then displays the checkboxes below it. This image:
    Name:  Untitled-1.jpg
Views: 32
Size:  26.8 KB

    After your stylesheet edits your site seems fine in Chrome, but there's something strange going on in Firefox whereby it's getting the blue from a 'PreferenceStyleSheet' which seems to be a Firefox thing. Must admit I haven't seen that before and clearing cache etc. has no effect.
    Simon

  9. #9
    Join Date
    Feb 2009
    Location
    UK
    Posts
    655
    Plugin Contributions
    0

    Default Re: Colour changed without being altered?

    Of course it now makes sense that 'PreferenceStyleSheet' would be the colours set in your Firefox Options under Tools > Options > Language and Appearance > Colours. But there must be a reason why your site is using those rather than your own stylesheet; it looks like there's an error in your stylesheet_colors.css

    Look at line #3 right at the end there's
    #icon, {color:#777;}

    change it to
    #icon {color:#777;}

    That should be it - got there in the end!

    (Also: look that line #4 there's an error there aswell - you can validate your css files by using https://jigsaw.w3.org/css-validator/)
    Last edited by simon1066; 19 Sep 2019 at 04:18 PM.
    Simon

  10. #10
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    7,236
    Plugin Contributions
    8

    Default Re: Colour changed without being altered?

    Line 3 of the stylesheet_colors.css is one of the main reasons we did the color change mod. That line modifies hovers, links, visited links, and MANY more. Every time you touch the color of one thing, six other items changed that you did not want to change.

    Several errors in the stylesheet.css lines 121, 140, 303, 305, and 350.

    stylesheet_dropdown-menu.css lines 12 and 15.

    stylesheet_flexible_footer_menu.css lines 12 annd 17.
    Did you read the posting tips?!?
    Responsive Color Changes for 155-156c demo here.
    Zen Cart PCI Compatible Hosting

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Shipping address being changed to channel islands
    By MikeyG in forum Bug Reports
    Replies: 6
    Last Post: 7 Feb 2016, 07:54 PM
  2. Bizarre - lbs changed to kgs without me doing it.
    By delia in forum General Questions
    Replies: 4
    Last Post: 5 Sep 2009, 01:38 PM
  3. Module changed page colour/layout
    By raquelann in forum General Questions
    Replies: 6
    Last Post: 4 Sep 2008, 10:58 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR