Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1088322

    atg85
    Participant

    Hi X!

    Quick question – just thought I’d probe your brains – my work is practically finished on http://ottawavapeshoppe.ca/shop/ – styled everything – but a small issue came up – see the dropdown list “Default sorting” on top right? Looks fine on desktop but when I open it on my iPhone there’s a greyish gradient in the background and it’s making my “gold” text hard to read – is there a way to remove that with custom CSS? Thank you!

    #1088790

    Jade
    Moderator

    Hi there,

    Please add this code:

    @media (max-width: 480px) {
        .woocommerce-ordering select,
        .woocommerce-ordering select option {
            background: #2b3136 !important;
        }
    }

    Hope this helps.

    #1089097

    atg85
    Participant

    Hi Jade – it’s not working unfortunately – please check out the screenshot here

    I’m trying to remove the grey from the mobile list and also on the desktop to make the Provinces dropdown list looking like the rest of my boxes…

    #1089579

    Christopher
    Moderator

    Hi there,

    Would you please clear cache and check again?
    I don’t see gradient background anymore.

    Please add this code :

    a.select2-choice.select2-default {
        background-color: transparent;
    color: #fff;
    }
    div#select2-drop {
        background-color: transparent;
        color: #fff;
    }

    Thanks.

    #1090071

    atg85
    Participant

    Hi X! With a bit of fiddling and research I found a way!

    /*Remove gradient mobile*/
    
     select {
          -webkit-appearance: none;  /*Removes default chrome and safari style*/
          -moz-appearance: none; /* Removes Default Firefox style*/
          background: url('http://ottawavapeshoppe.ca/wp-content/uploads/2016/07/chevrondown.svg') no-repeat;  /*Adds background-image*/
          background-position: 190px 10px!important;  /*Position of the background-image*/
          width: 215px!important; /*Width of select dropdown to give space for arrow image*/
          text-indent: 0.01px; /* Removes default arrow from firefox*/
          text-overflow: "";  /*Removes default arrow from firefox*/
    }
    
    #1090375

    Rad
    Moderator

    Thanks for sharing!