<?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: How to disable Dynamic CSS Style on front/back-end</title>
		<link>http://www.kriesi.at/support/topic/how-to-disable-dynamic-css-style-on-frontback-end</link>
		<description>Support Forum - Topic: How to disable Dynamic CSS Style on front/back-end</description>
		<language>en-US</language>
		<pubDate>Thu, 23 May 2013 00:20:21 +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/how-to-disable-dynamic-css-style-on-frontback-end" rel="self" type="application/rss+xml" />

		<item>
			<title>Dude on "How to disable Dynamic CSS Style on front/back-end"</title>
			<link>http://www.kriesi.at/support/topic/how-to-disable-dynamic-css-style-on-frontback-end#post-94774</link>
			<pubDate>Sun, 03 Feb 2013 07:32:33 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">94774@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;You just need to comment out the print_styles() function code. Generate the file by using the codenuforms posted above, then replace:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;function print_styles()
{
$my_file = AVIA_BASE.&#38;#39;css/dstyles.css&#38;#39;;
$handle = fopen($my_file, &#38;#39;w&#38;#39;) or die(&#38;#39;Cannot open file: &#38;#39;.$my_file);
fwrite($handle, $this-&#38;gt;output);
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;with:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function print_styles()
{
/*
$my_file = AVIA_BASE.&#38;#39;css/dstyles.css&#38;#39;;
$handle = fopen($my_file, &#38;#39;w&#38;#39;) or die(&#38;#39;Cannot open file: &#38;#39;.$my_file);
fwrite($handle, $this-&#38;gt;output);
*/
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;If you need to generate a new file just undo the code change und use the print_styles function to generate the new file.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>VBM on "How to disable Dynamic CSS Style on front/back-end"</title>
			<link>http://www.kriesi.at/support/topic/how-to-disable-dynamic-css-style-on-frontback-end#post-94462</link>
			<pubDate>Fri, 01 Feb 2013 07:53:17 +0000</pubDate>
			<dc:creator>VBM</dc:creator>
			<guid isPermaLink="false">94462@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Ok, I implemented solution from @nuforms and it works well.&#60;/p&#62;
&#60;p&#62;My concerns: Is dstyles.css from solution above generated on every page/post request or only when I add some CSS code to 'Quick CSS' and click 'Save all changes'&#60;/p&#62;
&#60;p&#62;If css style is generated on every page/post request, how to generate it only if changes are made at Quick CSS, or simply disable generating CSS file once you are satisfied with customization?&#60;br /&#62;
Thanks in advance!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Ismael on "How to disable Dynamic CSS Style on front/back-end"</title>
			<link>http://www.kriesi.at/support/topic/how-to-disable-dynamic-css-style-on-frontback-end#post-71330</link>
			<pubDate>Thu, 16 Aug 2012 06:29:44 +0000</pubDate>
			<dc:creator>Ismael</dc:creator>
			<guid isPermaLink="false">71330@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi dccs52,&#60;/p&#62;
&#60;p&#62;Thanks for helping out. :)&#60;/p&#62;
&#60;p&#62;Regards,&#60;br /&#62;
Ismael
&#60;/p&#62;</description>
		</item>
		<item>
			<title>dccs52 on "How to disable Dynamic CSS Style on front/back-end"</title>
			<link>http://www.kriesi.at/support/topic/how-to-disable-dynamic-css-style-on-frontback-end#post-71134</link>
			<pubDate>Wed, 15 Aug 2012 06:59:25 +0000</pubDate>
			<dc:creator>dccs52</dc:creator>
			<guid isPermaLink="false">71134@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Update on CHOICES, found that if you add it under the custom.css in the header, it works, but custom font is not picked up, for a quick solve i have had to make http request by copying the link href from google web fonts fro that font, not the best way, but a quick fix to clean up all that css in the header
&#60;/p&#62;</description>
		</item>
		<item>
			<title>dccs52 on "How to disable Dynamic CSS Style on front/back-end"</title>
			<link>http://www.kriesi.at/support/topic/how-to-disable-dynamic-css-style-on-frontback-end#post-71131</link>
			<pubDate>Wed, 15 Aug 2012 06:51:01 +0000</pubDate>
			<dc:creator>dccs52</dc:creator>
			<guid isPermaLink="false">71131@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;The cleaning of the source is amazing! I have also bought CHOICES template, i assumed it would work the same but it seems to break the styling. Can an admin confirm how to clean up the source like above but for the excellent template, CHOICES?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Ismael on "How to disable Dynamic CSS Style on front/back-end"</title>
			<link>http://www.kriesi.at/support/topic/how-to-disable-dynamic-css-style-on-frontback-end#post-70747</link>
			<pubDate>Mon, 13 Aug 2012 08:35:50 +0000</pubDate>
			<dc:creator>Ismael</dc:creator>
			<guid isPermaLink="false">70747@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi nuforms,&#60;/p&#62;
&#60;p&#62;Thanks for sharing the solution. :)&#60;/p&#62;
&#60;p&#62;Regards,&#60;br /&#62;
Ismael
&#60;/p&#62;</description>
		</item>
		<item>
			<title>nuforms on "How to disable Dynamic CSS Style on front/back-end"</title>
			<link>http://www.kriesi.at/support/topic/how-to-disable-dynamic-css-style-on-frontback-end#post-70487</link>
			<pubDate>Fri, 10 Aug 2012 14:39:32 +0000</pubDate>
			<dc:creator>nuforms</dc:creator>
			<guid isPermaLink="false">70487@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Thanks, it works, if someone interested in cleaning page source, here is solution:&#60;/p&#62;
&#60;p&#62;1) In class-style-generator.php&#60;/p&#62;
&#60;p&#62;Find this:&#60;br /&#62;
		function print_styles()&#60;br /&#62;
		{&#60;br /&#62;
		echo &#34;\n&#38;lt;!-- custom styles set at your backend--&#38;gt;\n&#34;;&#60;br /&#62;
		echo &#34;&#38;lt;style type='text/css' id='dynamic-styles'&#38;gt;\n&#34;;&#60;br /&#62;
		echo $this-&#38;gt;output;&#60;br /&#62;
		echo &#34;&#38;lt;/style&#38;gt;\n&#34;;&#60;br /&#62;
		echo &#34;\n&#38;lt;!-- end custom styles--&#38;gt;\n\n&#34;;&#60;br /&#62;
		echo $this-&#38;gt;extra_output;&#60;br /&#62;
		}&#60;/p&#62;
&#60;p&#62;Replace with this:&#60;br /&#62;
		function print_styles()&#60;br /&#62;
		{&#60;br /&#62;
		$my_file = AVIA_BASE.'css/dstyles.css';&#60;br /&#62;
		$handle = fopen($my_file, 'w') or die('Cannot open file:  '.$my_file);&#60;br /&#62;
		fwrite($handle, $this-&#38;gt;output);&#60;br /&#62;
		}&#60;/p&#62;
&#60;p&#62;2) Add to header.php:&#60;br /&#62;
&#38;lt;link rel=&#34;stylesheet&#34; href=&#34;&#38;lt;?php echo get_bloginfo('template_url'); ?&#38;gt;/css/dstyles.css&#34; type=&#34;text/css&#34; media=&#34;screen&#34;/&#38;gt;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "How to disable Dynamic CSS Style on front/back-end"</title>
			<link>http://www.kriesi.at/support/topic/how-to-disable-dynamic-css-style-on-frontback-end#post-70428</link>
			<pubDate>Fri, 10 Aug 2012 06:19:27 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">70428@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Yes, basically it should be possible. Re 1) -  make sure that the directory permission is set to 777. Code would look like:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$my_file = &#38;#39;my_template.php&#38;#39;;
	$handle = fopen($my_file, &#38;#39;w&#38;#39;) or die(&#38;#39;Cannot open file:  &#38;#39;.$my_file);
fwrite($handle, $data);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;- it will generate a file called my_template.php.&#60;/p&#62;
&#60;p&#62;2) Read from file should be simply - eg you could use fread or simply include it with include/require_one.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Devin on "How to disable Dynamic CSS Style on front/back-end"</title>
			<link>http://www.kriesi.at/support/topic/how-to-disable-dynamic-css-style-on-frontback-end#post-70319</link>
			<pubDate>Thu, 09 Aug 2012 16:42:51 +0000</pubDate>
			<dc:creator>Devin</dc:creator>
			<guid isPermaLink="false">70319@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey Aleksandr,&#60;/p&#62;
&#60;p&#62;I'll Tag Peter on this in case he has any other thoughts.&#60;/p&#62;
&#60;p&#62;Regards,&#60;/p&#62;
&#60;p&#62;Devin
&#60;/p&#62;</description>
		</item>
		<item>
			<title>nuforms on "How to disable Dynamic CSS Style on front/back-end"</title>
			<link>http://www.kriesi.at/support/topic/how-to-disable-dynamic-css-style-on-frontback-end#post-69970</link>
			<pubDate>Wed, 08 Aug 2012 08:12:08 +0000</pubDate>
			<dc:creator>nuforms</dc:creator>
			<guid isPermaLink="false">69970@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi Dude,&#60;/p&#62;
&#60;p&#62;Thanks for reply!&#60;/p&#62;
&#60;p&#62;I've tried to write something to file using fwrite function, but got and error that file isn't writable (with 777 permission).&#60;br /&#62;
I'm not php expert, but there should be some thing like this:&#60;br /&#62;
1) write to file&#60;br /&#62;
2) update file when dynamic styles updated from admin&#60;br /&#62;
3) read from file&#60;/p&#62;
&#60;p&#62;Can you give me more clues if possible.&#60;/p&#62;
&#60;p&#62;BR,&#60;br /&#62;
Aleksandr
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "How to disable Dynamic CSS Style on front/back-end"</title>
			<link>http://www.kriesi.at/support/topic/how-to-disable-dynamic-css-style-on-frontback-end#post-69943</link>
			<pubDate>Wed, 08 Aug 2012 05:33:59 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">69943@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Probably it's possible somehow because you could save the output into a variable and then use functions like: &#60;a href=&#34;http://php.net/manual/en/function.fwrite.php&#34; rel=&#34;nofollow&#34;&#62;http://php.net/manual/en/function.fwrite.php&#60;/a&#62; to write the variable content into a file. However I've not tested it and it requires some coding/testing on your end.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>nuforms on "How to disable Dynamic CSS Style on front/back-end"</title>
			<link>http://www.kriesi.at/support/topic/how-to-disable-dynamic-css-style-on-frontback-end#post-69780</link>
			<pubDate>Tue, 07 Aug 2012 13:35:48 +0000</pubDate>
			<dc:creator>nuforms</dc:creator>
			<guid isPermaLink="false">69780@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Is it possible to write dynamic styles in some cache file, so the possibility of dynamic styles stays and code will be clear?!&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Aleksandr
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "How to disable Dynamic CSS Style on front/back-end"</title>
			<link>http://www.kriesi.at/support/topic/how-to-disable-dynamic-css-style-on-frontback-end#post-43605</link>
			<pubDate>Mon, 27 Feb 2012 09:22:27 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">43605@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi! &#60;/p&#62;
&#60;p&#62; Yes :) &#60;/p&#62;
&#60;p&#62; Best regards,&#60;br /&#62;
Peter
&#60;/p&#62;</description>
		</item>
		<item>
			<title>breakpoint on "How to disable Dynamic CSS Style on front/back-end"</title>
			<link>http://www.kriesi.at/support/topic/how-to-disable-dynamic-css-style-on-frontback-end#post-43567</link>
			<pubDate>Mon, 27 Feb 2012 00:43:37 +0000</pubDate>
			<dc:creator>breakpoint</dc:creator>
			<guid isPermaLink="false">43567@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Is this the same process for the Coalition theme?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "How to disable Dynamic CSS Style on front/back-end"</title>
			<link>http://www.kriesi.at/support/topic/how-to-disable-dynamic-css-style-on-frontback-end#post-38827</link>
			<pubDate>Thu, 26 Jan 2012 16:51:28 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">38827@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Glad that I could help you :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mr_pa on "How to disable Dynamic CSS Style on front/back-end"</title>
			<link>http://www.kriesi.at/support/topic/how-to-disable-dynamic-css-style-on-frontback-end#post-38781</link>
			<pubDate>Thu, 26 Jan 2012 09:52:50 +0000</pubDate>
			<dc:creator>mr_pa</dc:creator>
			<guid isPermaLink="false">38781@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Works like a charm!&#60;br /&#62;
Thanks so much Dude!&#60;/p&#62;
&#60;p&#62;Mr_pa
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "How to disable Dynamic CSS Style on front/back-end"</title>
			<link>http://www.kriesi.at/support/topic/how-to-disable-dynamic-css-style-on-frontback-end#post-38717</link>
			<pubDate>Wed, 25 Jan 2012 21:39:22 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">38717@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey,&#60;br /&#62;
open up propulsion\framework\php\class-style-generator.php and comment out/delete following code:&#60;/p&#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;;
			echo $this-&#38;gt;extra_output;&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>mr_pa on "How to disable Dynamic CSS Style on front/back-end"</title>
			<link>http://www.kriesi.at/support/topic/how-to-disable-dynamic-css-style-on-frontback-end#post-38646</link>
			<pubDate>Wed, 25 Jan 2012 08:50:14 +0000</pubDate>
			<dc:creator>mr_pa</dc:creator>
			<guid isPermaLink="false">38646@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi dear,&#60;br /&#62;
i was wonder how can i disable the dynamic css style that the theme add in the source code.&#60;br /&#62;
The reason is clear: i want to handle any customization by css and i take care of site performance so any inline css are useless.&#60;br /&#62;
I noticed that it's possible to do that for the google font, sure i don't want an option like that for the entire preset styles: for me is enough to delete the theme hook :-)&#60;/p&#62;
&#60;p&#62;Thanks in advance for your response.&#60;br /&#62;
Mr_pa
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
