Title: [Plugin: WP-Syntax] Use wp_enqueue_style to add css
Last modified: August 20, 2016

---

# [Plugin: WP-Syntax] Use wp_enqueue_style to add css

 *  Resolved [CodingFabian](https://wordpress.org/support/users/codingfabian/)
 * (@codingfabian)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-syntax-use-wp_enqueue_style-to-add-css/)
 * Hi,
    at the moment wp-syntax does this to add its stlye:
 * `
    function wp_syntax_head() {
 *  $css_url = WP_PLUGIN_URL . "/wp-syntax/wp-syntax.css";
    echo "\n".'<link rel
   ="stylesheet" href="' . $css_url . '" type="text/css" media="screen" />'."\n";}
 * It would be better to use the wordpress standard way to include plugins
    ` wp_enqueue_style("
   WP-Syntax", WP_PLUGIN_URL . "/wp-syntax/wp-syntax.css", false, false, "screen");
   by doing so the css can be modified by other plugins, or which is important for
   me, can be combined by mod_pagespeed, as this causes the css file to appear next
   to each other.
 * [http://wordpress.org/extend/plugins/wp-syntax/](http://wordpress.org/extend/plugins/wp-syntax/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Steven](https://wordpress.org/support/users/shazahm1hotmailcom/)
 * (@shazahm1hotmailcom)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wp-syntax-use-wp_enqueue_style-to-add-css/#post-2459356)
 * Fixed in version 0.9.12.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: WP-Syntax] Use wp_enqueue_style to add css’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-syntax_f8f6f6.svg)
 * [WP-Syntax](https://wordpress.org/plugins/wp-syntax/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-syntax/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-syntax/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-syntax/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-syntax/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-syntax/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Steven](https://wordpress.org/support/users/shazahm1hotmailcom/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-wp-syntax-use-wp_enqueue_style-to-add-css/#post-2459356)
 * Status: resolved