Andrew Robbins
Forum Replies Created
-
Alright, I found a solution for anyone running into this issue as-well.
First I want to say that overall I’m really enjoying the Ultimate Member plugin. Works great for the most part.
I’m a developer creating a custom theme for a client and so my project requires that I have full control over the CSS of the site. Long story short, I needed to:
1) Remove ALL !important declarations from UM’s CSS and
2) Remove the dynamic CSS that gets injected inline#1 My solution to this is a bit hacky but it works and is ok for my circumstance. I copied the “um.min.css” file located at:
“/ultimate-member/assets/css/um.min.css”
into my theme folder. I then went into the file and removed all the !important declarations manually. Finally, within my theme I first dequeue UM’s minified stylesheet and then enqueue my custom one like this:
// Removing Default UM styles wp_dequeue_style('um_minified'); // Adding custom UM styles back in without the !important declarations wp_enqueue_style('fabcon-custom-um', Assets\asset_path('css/vendor/um/um.custom.min.css'), [], null);
#2. After looking through the code I discovered that the injected inline styles have conditionals wrapped around them. Therefore they won’t output unless this condition is met. The condition is that a value for the style is set. For example under “Appearance – General – General Active Color”, simply removing this value (opening the color picker and deleting the value) solves the issue. I had to do this for all the CSS I wanted removed.
Both of these solutions are hacky and prone to breaking if UM ever decides to change the way they’re loading the dynamic CSS or simply adds new CSS to their plugin.
UM — can you please add an option to disable the plugin’s CSS for more advanced control over the layout?
- This reply was modified 7 years, 5 months ago by Andrew Robbins.
Forum: Plugins
In reply to: [Google Forms] Yeat another version of Google FormsConfirmed plugin is broken using new version.
Works in older version.
Forum: Requests and Feedback
In reply to: Dissatisfaction with new "codex"I completely agree.
Can we move the basic usage section above the fold or above the Parameters? I think that would dramatically improve the UX.