jquery - css temporarily broken when the page load ( .addClass ) -


I am using a WordPress plugin that allows me to generate a filter field. I can not modify the CSS directly in the plugin so I use .addClass

The problem is that when the page is loading, Jquery has been added.

How can I display these areas directly with the appropriate class? I tried to bypass the problem with a preloader but loading on a mobile device is too long.

My code:

$ ("[adclass (" Grid-33 suffix -66 tablet-grid-33 tablet-suffix -66 Add-on ("Grid-33 Tablet-Grid-33 Mobile-Grid-100 Slider-Pre-Mobile", "Mobile-Grid-50 Mobile-Prefix-50 Block-Erdosystem"); $ ("[Data-id = '2']"). AddClass ("Grid-33 Tablet-Grid-33 Mobile-Grid-100 Slider-Pre"); ("[Data-id = '4']; (" [Data-id = '3'] " ] "AddClass" ("Grid-33 Tablet-Grid-33 Mobile-Grid-100 Slider-Pre");

Paco WordPress wp_enqueue_style () You need to take advantage of the functionality and override CSS as you want

It seems that the plugin is in the form of 'SF-style-CSS' CSS is queuing up so if you create a style that is making a dependency, then it will make sure to load your CSS, after which you will be allowed to override the styles. S You can copy tile sheet and it can be modified as appropriate to your theme directory.

Here is a basic example of the functions.php file of your subject.

  function add_my_scripts_and_styles () {Wp_enqueue_style ('my-style-overrides', get_stylesheet_uri (). '/my-style-overrides.css', 'SF-style-CSS'); } Add_action ('wp_enqueue_scripts', 'add_my_scripts_and_styles');  

Full reference is available here ...


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

c# - NewtonSoft JArray - how to select multiple elements with LINQ -

javascript - amcharts makechart not working -