<?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 change  preview image size in blog</title>
		<link>http://www.kriesi.at/support/topic/how-to-change-preview-image-size-in-blog</link>
		<description>Support Forum - Topic: How to change  preview image size in blog</description>
		<language>en-US</language>
		<pubDate>Thu, 23 May 2013 05:36:10 +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-change-preview-image-size-in-blog" rel="self" type="application/rss+xml" />

		<item>
			<title>Dude on "How to change  preview image size in blog"</title>
			<link>http://www.kriesi.at/support/topic/how-to-change-preview-image-size-in-blog#post-23846</link>
			<pubDate>Sun, 31 Jul 2011 07:19:43 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">23846@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Glad that it works now :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Edgarro on "How to change  preview image size in blog"</title>
			<link>http://www.kriesi.at/support/topic/how-to-change-preview-image-size-in-blog#post-23830</link>
			<pubDate>Sat, 30 Jul 2011 13:47:42 +0000</pubDate>
			<dc:creator>Edgarro</dc:creator>
			<guid isPermaLink="false">23830@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;I have replaced 'PL' with 'L'  and 'L' with 'PL' in condition in single.php and it works fine now!&#60;br /&#62;
In portfolio high preview image is 260 in blog (single post and list of posts) is 160 px :)&#60;/p&#62;
&#60;p&#62;Thanks Dude!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "How to change  preview image size in blog"</title>
			<link>http://www.kriesi.at/support/topic/how-to-change-preview-image-size-in-blog#post-23824</link>
			<pubDate>Sat, 30 Jul 2011 11:37:57 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">23824@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;1) I noticed that in functions.php the dimensions for &#34;L&#34; and &#34;PL&#34; are exactly the same so you might want to change it for one size :)&#60;/p&#62;
&#60;p&#62;2) Try to regenerate the thumbnails with: &#60;a href=&#34;http://wordpress.org/extend/plugins/regenerate-thumbnails/&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/extend/plugins/regenerate-thumbnails/&#60;/a&#62; afterwards. &#60;/p&#62;
&#60;p&#62;I hope this fixes the problem . if not I'll debug single.php :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Edgarro on "How to change  preview image size in blog"</title>
			<link>http://www.kriesi.at/support/topic/how-to-change-preview-image-size-in-blog#post-23823</link>
			<pubDate>Sat, 30 Jul 2011 11:12:42 +0000</pubDate>
			<dc:creator>Edgarro</dc:creator>
			<guid isPermaLink="false">23823@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Ok. &#60;/p&#62;
&#60;p&#62;1. In functions.php I have added  new imgSize named 'PL&#60;br /&#62;
2. In single.php I have added this code (condition if else)&#60;br /&#62;
3. and in portfolio preview image has still  610 x 160 which is inconsistent  with condition from point 2 :)&#60;/p&#62;
&#60;p&#62;Here is a code after changes, maybe (probably) I did something wrong?&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://dl.dropbox.com/u/368160/KRIESI/functions.php&#34; rel=&#34;nofollow&#34;&#62;http://dl.dropbox.com/u/368160/KRIESI/functions.php&#60;/a&#62;&#60;br /&#62;
&#60;a href=&#34;http://dl.dropbox.com/u/368160/KRIESI/single.php&#34; rel=&#34;nofollow&#34;&#62;http://dl.dropbox.com/u/368160/KRIESI/single.php&#60;/a&#62;&#60;br /&#62;
and&#60;br /&#62;
&#60;a href=&#34;http://dl.dropbox.com/u/368160/KRIESI/template_blog.php&#34; rel=&#34;nofollow&#34;&#62;http://dl.dropbox.com/u/368160/KRIESI/template_blog.php&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Thanks I really appreciate your help.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "How to change  preview image size in blog"</title>
			<link>http://www.kriesi.at/support/topic/how-to-change-preview-image-size-in-blog#post-23807</link>
			<pubDate>Sat, 30 Jul 2011 09:59:41 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">23807@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Then add another image size in functions.php like:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$k_option[&#38;#39;custom&#38;#39;][&#38;#39;imgSize&#38;#39;][&#38;#39;PL&#38;#39;] = array(&#38;#39;width&#38;#39;=&#38;gt;610, &#38;#39;height&#38;#39;=&#38;gt;160); // image for blog posts&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and adjust the dimensions to your needs and in single.php change:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$big_prev_image = kriesi_post_thumb($post-&#38;gt;ID, array(&#38;#39;size&#38;#39;=&#38;gt; array(&#38;#39;L&#38;#39;),
															 &#38;#39;wh&#38;#39; =&#38;gt; $k_option[&#38;#39;custom&#38;#39;][&#38;#39;imgSize&#38;#39;][&#38;#39;L&#38;#39;],
															 &#38;#39;display_link&#38;#39; =&#38;gt; array(&#38;#39;lightbox&#38;#39;),
															&#38;#39;linkurl&#38;#39; =&#38;gt; array (&#38;#39;XL&#38;#39;,&#38;#39;_preview_big&#38;#39;)
															));&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;to:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;if ( get_post_type()  == &#38;#39;portfolio&#38;#39; ){
		 	$big_prev_image = kriesi_post_thumb($post-&#38;gt;ID, array(&#38;#39;size&#38;#39;=&#38;gt; array(&#38;#39;PL&#38;#39;),
															 &#38;#39;wh&#38;#39; =&#38;gt; $k_option[&#38;#39;custom&#38;#39;][&#38;#39;imgSize&#38;#39;][&#38;#39;PL&#38;#39;],
															 &#38;#39;display_link&#38;#39; =&#38;gt; array(&#38;#39;lightbox&#38;#39;),
															&#38;#39;linkurl&#38;#39; =&#38;gt; array (&#38;#39;XL&#38;#39;,&#38;#39;_preview_big&#38;#39;)
															));
}else{
		 	$big_prev_image = kriesi_post_thumb($post-&#38;gt;ID, array(&#38;#39;size&#38;#39;=&#38;gt; array(&#38;#39;L&#38;#39;),
															 &#38;#39;wh&#38;#39; =&#38;gt; $k_option[&#38;#39;custom&#38;#39;][&#38;#39;imgSize&#38;#39;][&#38;#39;L&#38;#39;],
															 &#38;#39;display_link&#38;#39; =&#38;gt; array(&#38;#39;lightbox&#38;#39;),
															&#38;#39;linkurl&#38;#39; =&#38;gt; array (&#38;#39;XL&#38;#39;,&#38;#39;_preview_big&#38;#39;)
															));
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Edgarro on "How to change  preview image size in blog"</title>
			<link>http://www.kriesi.at/support/topic/how-to-change-preview-image-size-in-blog#post-23778</link>
			<pubDate>Fri, 29 Jul 2011 16:40:34 +0000</pubDate>
			<dc:creator>Edgarro</dc:creator>
			<guid isPermaLink="false">23778@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi it's me again.&#60;br /&#62;
It worked but not exactly perfect.&#60;/p&#62;
&#60;p&#62;If I change a height to 160 in line 23&#60;br /&#62;
&#60;code&#62;$k_option[&#38;#39;custom&#38;#39;][&#38;#39;imgSize&#38;#39;][&#38;#39;L&#38;#39;] = array(&#38;#39;width&#38;#39;=&#38;gt;610, &#38;#39;height&#38;#39;=&#38;gt;160);		// image for blog posts&#60;/code&#62;&#60;br /&#62;
everything is ok in  list of posts - here is an example:&#60;br /&#62;
&#60;a href=&#34;http://www.af-studio.pl/blog/&#34; rel=&#34;nofollow&#34;&#62;http://www.af-studio.pl/blog/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;and in single post: &#60;a href=&#34;http://www.af-studio.pl/illustrator/jak-narysowac-platek-sniegu-w-illustratorze/&#34; rel=&#34;nofollow&#34;&#62;http://www.af-studio.pl/illustrator/jak-narysowac-platek-sniegu-w-illustratorze/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;BUT there is new problem :) with preview image in portfolio item:&#60;br /&#62;
&#60;a href=&#34;http://www.af-studio.pl/portfolio/polska-na-rower/&#34; rel=&#34;nofollow&#34;&#62;http://www.af-studio.pl/portfolio/polska-na-rower/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Preview image has 610 x 160 px also. :(&#60;br /&#62;
I'd like to have portfolio preview image in old size.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "How to change  preview image size in blog"</title>
			<link>http://www.kriesi.at/support/topic/how-to-change-preview-image-size-in-blog#post-23662</link>
			<pubDate>Thu, 28 Jul 2011 09:42:59 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">23662@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Glad that it worked for you :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Edgarro on "How to change  preview image size in blog"</title>
			<link>http://www.kriesi.at/support/topic/how-to-change-preview-image-size-in-blog#post-23658</link>
			<pubDate>Thu, 28 Jul 2011 08:32:09 +0000</pubDate>
			<dc:creator>Edgarro</dc:creator>
			<guid isPermaLink="false">23658@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;I try to create my own, additional size with my name of size - it's working too!&#60;br /&#62;
Thanks again Chris!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Edgarro on "How to change  preview image size in blog"</title>
			<link>http://www.kriesi.at/support/topic/how-to-change-preview-image-size-in-blog#post-23657</link>
			<pubDate>Thu, 28 Jul 2011 08:23:16 +0000</pubDate>
			<dc:creator>Edgarro</dc:creator>
			<guid isPermaLink="false">23657@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Thanks, it's working :).!&#60;/p&#62;
&#60;p&#62;Can I prepare my own size (additional)? for example (small_preview):&#60;/p&#62;
&#60;p&#62;&#60;code&#62;$k_option[&#38;#39;custom&#38;#39;][&#38;#39;imgSize&#38;#39;][&#38;#39;small_preview&#38;#39;] = array(&#38;#39;width&#38;#39;=&#38;gt;610, &#38;#39;height&#38;#39;=&#38;gt;200);&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Beard on "How to change  preview image size in blog"</title>
			<link>http://www.kriesi.at/support/topic/how-to-change-preview-image-size-in-blog#post-23619</link>
			<pubDate>Thu, 28 Jul 2011 00:08:58 +0000</pubDate>
			<dc:creator>Chris Beard</dc:creator>
			<guid isPermaLink="false">23619@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey,&#60;/p&#62;
&#60;p&#62;in functions.php you can adjust the following line (23):&#60;/p&#62;
&#60;p&#62;&#60;code&#62;$k_option[&#38;#39;custom&#38;#39;][&#38;#39;imgSize&#38;#39;][&#38;#39;L&#38;#39;] = array(&#38;#39;width&#38;#39;=&#38;gt;610, &#38;#39;height&#38;#39;=&#38;gt;260);		// image for blog posts&#60;/code&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Edgarro on "How to change  preview image size in blog"</title>
			<link>http://www.kriesi.at/support/topic/how-to-change-preview-image-size-in-blog#post-23597</link>
			<pubDate>Wed, 27 Jul 2011 16:51:01 +0000</pubDate>
			<dc:creator>Edgarro</dc:creator>
			<guid isPermaLink="false">23597@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;I'd like to change  size of preview image on blog page.&#60;br /&#62;
For example here &#60;a href=&#34;http://www.af-studio.pl/blog/&#34; rel=&#34;nofollow&#34;&#62;http://www.af-studio.pl/blog/&#60;/a&#62; preview image is 610 x 260 px. I'd prefer 610 x 90&#60;/p&#62;
&#60;p&#62;I have found this part of code in tempalte_blog.php&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;//get preview image
 	$big_prev_image = kriesi_post_thumb($post-&#38;gt;ID, array(&#38;#39;size&#38;#39;=&#38;gt; array(&#38;#39;L&#38;#39;),
													 &#38;#39;wh&#38;#39; =&#38;gt; $k_option[&#38;#39;custom&#38;#39;][&#38;#39;imgSize&#38;#39;][&#38;#39;L&#38;#39;],&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I see imgSize=L&#60;br /&#62;
I'd like  imgSize=610x90 px&#60;br /&#62;
What should I change?&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
