OK I was able to fix this. I used wp_enqueue_scripts and then wp_enqueue_style for each stylesheet. This then moved them to the top of the page and removed them from the default location at the bottom. I then added the plugin version number via the $plugin_data and removed the WP version number for those specific stylesheets.
For Example;
add_action( 'wp_enqueue_scripts', function() {
$plugin_data = get_plugin_data( ABSPATH . '/wp-content/plugins/open-user-map-pro/open-user-map.php' );
wp_enqueue_style('oum_frontend_css', '/wp-content/plugins/open-user-map-pro/assets/frontend.css?ver=' . $plugin_data['Version'], array(), null , 'all' );
}, 99 );
So that worked and I can use my child theme to override the styles for OUM without having to !important everything.
My enqueued stylesheet is set as 999, so after these.
-
This reply was modified 9 months, 1 week ago by
GregW. Reason: updated code