Theme’s CSS enqueued twice with latest version of plugin
-
Hello! In the 2.0.2 version of the plugin, some inline styles are getting enqueued like this:
wp_enqueue_style('main-styles', get_stylesheet_uri());
$inline_css = "
.wp-remixd-voice-wrapper {
/* Your custom styles here */
margin-bottom: 20px;
text-align: center;
}
";
wp_add_inline_style('main-styles', $inline_css);The first line is causing the active theme’s stylesheet to be loaded a second time, near the bottom of the page. That duplicated CSS isn’t needed, but also can cause issues: if have any styles that override the theme’s stylesheet after it’s enqueued, this can cause them to get overridden.
Is it possible to update the plugin to add the Remixd styles in a different way? Thank you!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.