<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: WordPress : Enqueue Styles</title>
	<atom:link href="http://www.lost-in-code.com/platforms/wordpress/wordpress-enqueue-css-styles/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lost-in-code.com/platforms/wordpress/wordpress-enqueue-css-styles/</link>
	<description>Web Development Resources</description>
	<lastBuildDate>Mon, 30 Jan 2012 10:42:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: stakked</title>
		<link>http://www.lost-in-code.com/platforms/wordpress/wordpress-enqueue-css-styles/comment-page-1/#comment-1150</link>
		<dc:creator>stakked</dc:creator>
		<pubDate>Wed, 23 Jun 2010 22:13:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.lost-in-code.com/?p=245#comment-1150</guid>
		<description>i notice that did not work out for me.
for some reason, the .css never loads.

but this worked: it&#039;s off the wp codex site:
[php]


    /*
     * This example will work with WordPress 2.7
     */

    /*
     * register with hook &#039;wp_print_styles&#039;
     */
    add_action(&#039;wp_print_styles&#039;, &#039;add_my_stylesheet&#039;);

    /*
     * Enqueue style-file, if it exists.
     */

    function add_my_stylesheet() {
        $myStyleUrl = WP_PLUGIN_URL . &#039;/myPlugin/style.css&#039;;
        $myStyleFile = WP_PLUGIN_DIR . &#039;/myPlugin/style.css&#039;;
        if ( file_exists($myStyleFile) ) {
            wp_register_style(&#039;myStyleSheets&#039;, $myStyleUrl);
            wp_enqueue_style( &#039;myStyleSheets&#039;);
        }
    }

[/php]</description>
		<content:encoded><![CDATA[<p>i notice that did not work out for me.<br />
for some reason, the .css never loads.</p>
<p>but this worked: it&#8217;s off the wp codex site:<br />
[php]</p>
<p>    /*<br />
     * This example will work with WordPress 2.7<br />
     */</p>
<p>    /*<br />
     * register with hook &#8216;wp_print_styles&#8217;<br />
     */<br />
    add_action(&#8216;wp_print_styles&#8217;, &#8216;add_my_stylesheet&#8217;);</p>
<p>    /*<br />
     * Enqueue style-file, if it exists.<br />
     */</p>
<p>    function add_my_stylesheet() {<br />
        $myStyleUrl = WP_PLUGIN_URL . &#8216;/myPlugin/style.css&#8217;;<br />
        $myStyleFile = WP_PLUGIN_DIR . &#8216;/myPlugin/style.css&#8217;;<br />
        if ( file_exists($myStyleFile) ) {<br />
            wp_register_style(&#8216;myStyleSheets&#8217;, $myStyleUrl);<br />
            wp_enqueue_style( &#8216;myStyleSheets&#8217;);<br />
        }<br />
    }</p>
<p>[/php]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Antonie Potgieter</title>
		<link>http://www.lost-in-code.com/platforms/wordpress/wordpress-enqueue-css-styles/comment-page-1/#comment-946</link>
		<dc:creator>Antonie Potgieter</dc:creator>
		<pubDate>Sun, 25 Apr 2010 16:01:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.lost-in-code.com/?p=245#comment-946</guid>
		<description>@RavanH, try setting $version = null instead of false. See what that does.</description>
		<content:encoded><![CDATA[<p>@RavanH, try setting $version = null instead of false. See what that does.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RavanH</title>
		<link>http://www.lost-in-code.com/platforms/wordpress/wordpress-enqueue-css-styles/comment-page-1/#comment-943</link>
		<dc:creator>RavanH</dc:creator>
		<pubDate>Thu, 22 Apr 2010 19:32:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.lost-in-code.com/?p=245#comment-943</guid>
		<description>Is it possible to make wp_enqueue_style NOT append a version number (.css?ver=n) or...? I tried to set $version to FALSE but then it appends a random number upon each page load. Which is exactly what I do not want :(

Thanks!</description>
		<content:encoded><![CDATA[<p>Is it possible to make wp_enqueue_style NOT append a version number (.css?ver=n) or&#8230;? I tried to set $version to FALSE but then it appends a random number upon each page load. Which is exactly what I do not want <img src='http://www.lost-in-code.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dimas</title>
		<link>http://www.lost-in-code.com/platforms/wordpress/wordpress-enqueue-css-styles/comment-page-1/#comment-835</link>
		<dc:creator>Dimas</dc:creator>
		<pubDate>Mon, 01 Mar 2010 17:05:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.lost-in-code.com/?p=245#comment-835</guid>
		<description>Thanks, was looking for a good example!</description>
		<content:encoded><![CDATA[<p>Thanks, was looking for a good example!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: graphic design service</title>
		<link>http://www.lost-in-code.com/platforms/wordpress/wordpress-enqueue-css-styles/comment-page-1/#comment-815</link>
		<dc:creator>graphic design service</dc:creator>
		<pubDate>Fri, 19 Feb 2010 04:01:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.lost-in-code.com/?p=245#comment-815</guid>
		<description>Nice post, maybe you should add in the codex.wordpress.org as well. The only concern I have is that it may require some processing power for sites which have lots of post because it is looping through all the post and the post content to find a match. This will result in more memory needed</description>
		<content:encoded><![CDATA[<p>Nice post, maybe you should add in the codex.wordpress.org as well. The only concern I have is that it may require some processing power for sites which have lots of post because it is looping through all the post and the post content to find a match. This will result in more memory needed</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Web design Group</title>
		<link>http://www.lost-in-code.com/platforms/wordpress/wordpress-enqueue-css-styles/comment-page-1/#comment-777</link>
		<dc:creator>Web design Group</dc:creator>
		<pubDate>Fri, 15 Jan 2010 12:49:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.lost-in-code.com/?p=245#comment-777</guid>
		<description>Hi, I am creating a new page on my word press site and I was wondering if it is possible to style this page differently, by having separate side bars and layout?</description>
		<content:encoded><![CDATA[<p>Hi, I am creating a new page on my word press site and I was wondering if it is possible to style this page differently, by having separate side bars and layout?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Berg</title>
		<link>http://www.lost-in-code.com/platforms/wordpress/wordpress-enqueue-css-styles/comment-page-1/#comment-655</link>
		<dc:creator>Berg</dc:creator>
		<pubDate>Tue, 20 Oct 2009 04:34:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.lost-in-code.com/?p=245#comment-655</guid>
		<description>Thanks for tip. Problem solved.</description>
		<content:encoded><![CDATA[<p>Thanks for tip. Problem solved.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cubrikaska</title>
		<link>http://www.lost-in-code.com/platforms/wordpress/wordpress-enqueue-css-styles/comment-page-1/#comment-632</link>
		<dc:creator>cubrikaska</dc:creator>
		<pubDate>Fri, 02 Oct 2009 14:14:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.lost-in-code.com/?p=245#comment-632</guid>
		<description>Es la frase entretenida</description>
		<content:encoded><![CDATA[<p>Es la frase entretenida</p>
]]></content:encoded>
	</item>
</channel>
</rss>

