<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<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">
	<channel>
		<title>Support Forum - Topic: The on page CSS style block</title>
		<link>http://www.kriesi.at/support/topic/the-on-page-css-style-block</link>
		<description>Support Forum - Topic: The on page CSS style block</description>
		<language>en-US</language>
		<pubDate>Sun, 26 May 2013 02:21:05 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.kriesi.at/support/search.php</link>
		</textInput>
		<atom:link href="http://www.kriesi.at/support/rss/topic/the-on-page-css-style-block" rel="self" type="application/rss+xml" />

		<item>
			<title>Nick on "The on page CSS style block"</title>
			<link>http://www.kriesi.at/support/topic/the-on-page-css-style-block#post-95878</link>
			<pubDate>Fri, 08 Feb 2013 17:40:13 +0000</pubDate>
			<dc:creator>Nick</dc:creator>
			<guid isPermaLink="false">95878@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;There is a way to do both. &#60;/p&#62;
&#60;p&#62;1. To remove all unused css (once you are completely finished with your design). Install &#60;a href=&#34;https://addons.mozilla.org/en-US/firefox/addon/css-usage/?src=api&#34; rel=&#34;nofollow&#34;&#62;https://addons.mozilla.org/en-US/firefox/addon/css-usage/?src=api&#60;/a&#62; this addon for firefox which will scan multiple pages in your website to determine which pages use what rules and then come up with every css file and inline css selector that is not used on any of the pages. Then you just open up the files from the list and take them out manually. There is a pay plugin for Chrome that actually takes them out for you, but the problem is that some are used by jQuery and are not included. Seems funny, but there is no better way to do clean up the css.&#60;/p&#62;
&#60;p&#62;2. To remove the dynamically generated css, you can view source, and copy the contents of the block of css you mentioned to your custom.css file. Just be aware that  you will no longer be able to style the theme using the backend at Replete &#38;gt; Theme Options &#38;gt; Styling&#60;/p&#62;
&#60;p&#62;Please open up /framework/php/class-style-generator.php and add // to lines 92-96 so that they will look like&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;//echo &#38;quot;\n&#38;lt;!-- custom styles set at your backend--&#38;gt;\n&#38;quot;;
//echo &#38;quot;&#38;lt;style type=&#38;#39;text/css&#38;#39; id=&#38;#39;dynamic-styles&#38;#39;&#38;gt;\n&#38;quot;;
//echo $this-&#38;gt;output;
//echo &#38;quot;&#38;lt;/style&#38;gt;\n&#38;quot;;
//echo &#38;quot;\n&#38;lt;!-- end custom styles--&#38;gt;\n\n&#38;quot;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Leaving line 97 alone was not an oversight.&#60;/p&#62;
&#60;p&#62;-------------&#60;br /&#62;
What you can also do, is locate every css file that is used by viewing source, and then add the contents of each one in the same order as they are displayed on the view source to your style.css file. Then use notepad++ to scan your theme for the names of each stylesheet to find the handle its registered under and then wp_dequeue_style( $handle ) in the functions.php file. This way you will only have 1 css file at the end. &#60;/p&#62;
&#60;p&#62;Thanks,&#60;/p&#62;
&#60;p&#62;Nick
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sirchunk on "The on page CSS style block"</title>
			<link>http://www.kriesi.at/support/topic/the-on-page-css-style-block#post-95753</link>
			<pubDate>Thu, 07 Feb 2013 21:38:41 +0000</pubDate>
			<dc:creator>sirchunk</dc:creator>
			<guid isPermaLink="false">95753@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Is there a way to move the huge css block to an external file or even cut down?&#60;br /&#62;
Its the one that starts with &#38;lt;!-- custom styles set at your backend--&#38;gt;
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
