• Resolved matpakka

    (@matpakka)


    Hello!
    I have a custom post type added to the front page with advanced search filter. This works, except from the css

    CUSTOM CSS <– want this to load immediately

    .select2-selection--single {
        height: 48px !important;
    }

    ORIGINAL CSS (/plugins/geodirectory/vendor/ayecode/wp-ayecode-ui/assets/css/ayecode-ui-compatibility.css?ver=4.3.1)

    .select2-selection--single {
        height: calc(1.5em + .75rem + 2px) !important;
    }

    When the page is loaded it takes a few extra seconds before the custom css overwrites the original css. This affects the input field height.

    I have tried with a caching and combining of css files.
    Do you have any other suggestions?

    • This topic was modified 4 years, 3 months ago by matpakka.
    • This topic was modified 4 years, 3 months ago by matpakka.
Viewing 1 replies (of 1 total)
  • Plugin Author Stiofan

    (@stiofansisland)

    Hi @matpakka,

    This is not specifically GD related, however, the class “select2-selection–single” is a sudo class that is added by javascript after page load, so try targeting the field with another class if you can.

    Stiofan

Viewing 1 replies (of 1 total)
  • The topic ‘CSS overwrite loads slow’ is closed to new replies.