Use tag instead of @import
-
You should use a <link type=”text/css” href=”/wp-content/plugins/link-indication/link-indication_style.css”> tag instead of the bloc:
<style type=”text/css” media=”screen”>
@import url(/wp-content/plugins/link-indication/link-indication_style.css);
</style>For that, you should add the following:
function Headers () {
wp_enqueue_style (__CLASS__, plugins_url (‘link-indication’) . ‘/link-indication_style.css’);
}
add_action (‘get_header’, ‘Headers’);
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Use tag instead of @import’ is closed to new replies.