<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1" -->
<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>THE MOLITOR FORUMS &#187; Topic: FAQ - Different zoom for each category (user edit)</title>
		<link>http://www.themolitor.com/forums/topic/different-zoom-for-each-category-1</link>
		<description>THE MOLITOR FORUMS &#187; Topic: FAQ - Different zoom for each category (user edit)</description>
		<language>en-US</language>
		<pubDate>Tue, 28 Apr 2026 05:10:06 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.themolitor.com/forums/search.php</link>
		</textInput>
		<atom:link href="http://www.themolitor.com/forums/rss/topic/different-zoom-for-each-category-1" rel="self" type="application/rss+xml" />

		<item>
			<title>THE MOLITOR on "FAQ - Different zoom for each category (user edit)"</title>
			<link>http://www.themolitor.com/forums/topic/different-zoom-for-each-category-1#post-27671</link>
			<pubDate>Tue, 11 Mar 2014 10:34:03 +0000</pubDate>
			<dc:creator>THE MOLITOR</dc:creator>
			<guid isPermaLink="false">27671@http://www.themolitor.com/forums/</guid>
			<description><p>Hi there,</p>
<p>Try this instead...</p>
<pre><code>if (is_category(&#039;2&#039;)) {$mainZoom = &#039;6&#039;;}  //Entertainment
elseif (is_category(3)) {$mainZoom = &#039;15&#039;;} //Hotel
elseif (is_category(15)) {$mainZoom = &#039;9&#039;;} //Park
else {$mainZoom = get_theme_mod(&#039;themolitor_customizer_cat_zoom&#039;);}</code></pre>
<p>Best,</p>
<p>Chris
</p></description>
		</item>
		<item>
			<title>Sam on "FAQ - Different zoom for each category (user edit)"</title>
			<link>http://www.themolitor.com/forums/topic/different-zoom-for-each-category-1#post-27662</link>
			<pubDate>Tue, 11 Mar 2014 00:11:07 +0000</pubDate>
			<dc:creator>Sam</dc:creator>
			<guid isPermaLink="false">27662@http://www.themolitor.com/forums/</guid>
			<description><p>Dose it work for more than category and dose it over write the option on theme-option?</p>
<p>if ( is_category('2') ) { $mainZoom = '6'; } else {$mainZoom = get_theme_mod('themolitor_customizer_cat_zoom');}; //Entertainment<br />
if ( is_category(3) ) { $mainZoom = '15'; } else {$mainZoom = get_theme_mod('themolitor_customizer_cat_zoom');}; //Hotel<br />
if ( is_category(15) ) { $mainZoom = '9'; } else {$mainZoom = get_theme_mod('themolitor_customizer_cat_zoom');}; //Park
</p></description>
		</item>
		<item>
			<title>THE MOLITOR on "FAQ - Different zoom for each category (user edit)"</title>
			<link>http://www.themolitor.com/forums/topic/different-zoom-for-each-category-1#post-27649</link>
			<pubDate>Mon, 10 Mar 2014 12:08:28 +0000</pubDate>
			<dc:creator>THE MOLITOR</dc:creator>
			<guid isPermaLink="false">27649@http://www.themolitor.com/forums/</guid>
			<description><p>Hi there,</p>
<p>That was the old method for setting the default value for <code>$mainZoom</code>, which is now controlled from the theme-options.php template file. Try changing line 2 from this...</p>
<pre><code>$mainZoom = get_theme_mod(&#039;themolitor_customizer_cat_zoom&#039;);</code></pre>
<p>...to this...</p>
<pre><code>if ( is_category(&#039;ID&#039;) ) { $mainZoom = &#039;6&#039;; } else {$mainZoom = get_theme_mod(&#039;themolitor_customizer_cat_zoom&#039;);};</code></pre>
<p>Hope that helps.</p>
<p>Best,</p>
<p>Chris
</p></description>
		</item>
		<item>
			<title>Sam on "FAQ - Different zoom for each category (user edit)"</title>
			<link>http://www.themolitor.com/forums/topic/different-zoom-for-each-category-1#post-27630</link>
			<pubDate>Mon, 10 Mar 2014 04:29:06 +0000</pubDate>
			<dc:creator>Sam</dc:creator>
			<guid isPermaLink="false">27630@http://www.themolitor.com/forums/</guid>
			<description><p>i can't find the<br />
<code>if(!$mainZoom){$mainZoom = &#34;12&#34;;}</code><br />
in script_list.php<br />
thanks
</p></description>
		</item>
		<item>
			<title>MoesiOli on "FAQ - Different zoom for each category (user edit)"</title>
			<link>http://www.themolitor.com/forums/topic/different-zoom-for-each-category-1#post-26865</link>
			<pubDate>Sat, 01 Feb 2014 00:30:01 +0000</pubDate>
			<dc:creator>MoesiOli</dc:creator>
			<guid isPermaLink="false">26865@http://www.themolitor.com/forums/</guid>
			<description><p>With Version 2.0.2 it nearly the same:<br />
in script_list.php on line 2<br />
After<br />
<pre><code>$mainZoom = get_theme_mod(&#039;themolitor_customizer_cat_zoom&#039;);</code></pre>
<p>Add<br />
<pre><code>if ( is_category(ID) ) { $mainZoom = &#039;6&#039;; }; //Name</code></pre></description>
		</item>
		<item>
			<title>kellter on "FAQ - Different zoom for each category (user edit)"</title>
			<link>http://www.themolitor.com/forums/topic/different-zoom-for-each-category-1#post-26413</link>
			<pubDate>Wed, 15 Jan 2014 15:12:45 +0000</pubDate>
			<dc:creator>kellter</dc:creator>
			<guid isPermaLink="false">26413@http://www.themolitor.com/forums/</guid>
			<description><p>Looking for fix for latest version also.
</p></description>
		</item>
		<item>
			<title>jimmy on "FAQ - Different zoom for each category (user edit)"</title>
			<link>http://www.themolitor.com/forums/topic/different-zoom-for-each-category-1#post-25871</link>
			<pubDate>Sun, 29 Dec 2013 04:49:33 +0000</pubDate>
			<dc:creator>jimmy</dc:creator>
			<guid isPermaLink="false">25871@http://www.themolitor.com/forums/</guid>
			<description><p>Anyone know how to do this in the new version ?
</p></description>
		</item>
		<item>
			<title>THE MOLITOR on "FAQ - Different zoom for each category (user edit)"</title>
			<link>http://www.themolitor.com/forums/topic/different-zoom-for-each-category-1#post-17143</link>
			<pubDate>Mon, 07 Jan 2013 11:05:06 +0000</pubDate>
			<dc:creator>THE MOLITOR</dc:creator>
			<guid isPermaLink="false">17143@http://www.themolitor.com/forums/</guid>
			<description><p>@ArtepickTM Thanks for sharing! </p>
<p>FYI, I put ` marks around your code so that it looks nifty and styled here in the forums ;-)
</p></description>
		</item>
		<item>
			<title>batiraki30 on "FAQ - Different zoom for each category (user edit)"</title>
			<link>http://www.themolitor.com/forums/topic/different-zoom-for-each-category-1#post-17129</link>
			<pubDate>Mon, 07 Jan 2013 06:38:16 +0000</pubDate>
			<dc:creator>batiraki30</dc:creator>
			<guid isPermaLink="false">17129@http://www.themolitor.com/forums/</guid>
			<description><p>thanks!
</p></description>
		</item>
		<item>
			<title>fixtwin on "FAQ - Different zoom for each category (user edit)"</title>
			<link>http://www.themolitor.com/forums/topic/different-zoom-for-each-category-1#post-15606</link>
			<pubDate>Wed, 31 Oct 2012 01:55:12 +0000</pubDate>
			<dc:creator>fixtwin</dc:creator>
			<guid isPermaLink="false">15606@http://www.themolitor.com/forums/</guid>
			<description><p>Thanks man!
</p></description>
		</item>
		<item>
			<title>ArtepickTM on "FAQ - Different zoom for each category (user edit)"</title>
			<link>http://www.themolitor.com/forums/topic/different-zoom-for-each-category-1#post-14034</link>
			<pubDate>Mon, 20 Aug 2012 07:57:36 +0000</pubDate>
			<dc:creator>ArtepickTM</dc:creator>
			<guid isPermaLink="false">14034@http://www.themolitor.com/forums/</guid>
			<description><p>Also it work fine:</p>
<pre><code>if ( is_tag() ) {$mainZoom = &#039;15&#039;;};</code></pre></description>
		</item>
		<item>
			<title>ArtepickTM on "FAQ - Different zoom for each category (user edit)"</title>
			<link>http://www.themolitor.com/forums/topic/different-zoom-for-each-category-1#post-13869</link>
			<pubDate>Mon, 13 Aug 2012 23:40:30 +0000</pubDate>
			<dc:creator>ArtepickTM</dc:creator>
			<guid isPermaLink="false">13869@http://www.themolitor.com/forums/</guid>
			<description><p>here is the new code in script_list.php starts so:</p>
<pre><code>&#60;?php
	$mainZoom = ot_get_option(&#039;main_zoom&#039;,&#039;12&#039;);
	$toggle = ot_get_option(&#039;toggle&#039;);
	$zoomOn = ot_get_option(&#039;zoom_on&#039;);
	$blogCat = ot_get_option(&#039;blog_cat&#039;);
	$pin = ot_get_option(&#039;pin&#039;,&#039;&#039;. get_template_directory_uri() .&#039;/images/pin.png&#039;);</code></pre>
<p>then you can do this:</p>
<pre><code>&#60;?php
	$mainZoom = ot_get_option(&#039;main_zoom&#039;,&#039;12&#039;);
	if ( is_category() ) {$mainZoom = &#039;15&#039;;};
	$toggle = ot_get_option(&#039;toggle&#039;);
	$zoomOn = ot_get_option(&#039;zoom_on&#039;);
	$blogCat = ot_get_option(&#039;blog_cat&#039;);
	$pin = ot_get_option(&#039;pin&#039;,&#039;&#039;. get_template_directory_uri() .&#039;/images/pin.png&#039;);</code></pre>
<p>so you can change the zoom level on all categories. Moesili thanks for the help.
</p></description>
		</item>
		<item>
			<title>ArtepickTM on "FAQ - Different zoom for each category (user edit)"</title>
			<link>http://www.themolitor.com/forums/topic/different-zoom-for-each-category-1#post-13840</link>
			<pubDate>Sun, 12 Aug 2012 22:46:36 +0000</pubDate>
			<dc:creator>ArtepickTM</dc:creator>
			<guid isPermaLink="false">13840@http://www.themolitor.com/forums/</guid>
			<description><p>With the new version, this does not work:</p>
<p><code>if(!$mainZoom){$mainZoom = &#34;12&#34;;}</code> is not a part of content.
</p></description>
		</item>
		<item>
			<title>adviserindex on "FAQ - Different zoom for each category (user edit)"</title>
			<link>http://www.themolitor.com/forums/topic/different-zoom-for-each-category-1#post-11539</link>
			<pubDate>Mon, 25 Jun 2012 04:38:45 +0000</pubDate>
			<dc:creator>adviserindex</dc:creator>
			<guid isPermaLink="false">11539@http://www.themolitor.com/forums/</guid>
			<description><p>Moesioli as always saved the day! thanks mate
</p></description>
		</item>
		<item>
			<title>MoesiOli on "FAQ - Different zoom for each category (user edit)"</title>
			<link>http://www.themolitor.com/forums/topic/different-zoom-for-each-category-1#post-11537</link>
			<pubDate>Mon, 25 Jun 2012 04:24:09 +0000</pubDate>
			<dc:creator>MoesiOli</dc:creator>
			<guid isPermaLink="false">11537@http://www.themolitor.com/forums/</guid>
			<description><p>Hey</p>
<p>open script_list.php</p>
<p>after<br />
<pre><code>if(!$mainZoom){$mainZoom = &#34;12&#34;;}</code></pre>
<p>add<br />
<pre><code>if( is_search() ){$mainZoom = &#34;6&#34;;}</code></pre></description>
		</item>
		<item>
			<title>adviserindex on "FAQ - Different zoom for each category (user edit)"</title>
			<link>http://www.themolitor.com/forums/topic/different-zoom-for-each-category-1#post-11304</link>
			<pubDate>Thu, 21 Jun 2012 05:50:11 +0000</pubDate>
			<dc:creator>adviserindex</dc:creator>
			<guid isPermaLink="false">11304@http://www.themolitor.com/forums/</guid>
			<description><p>MoesiOli thank you so much for this, could you do the same for search results??
</p></description>
		</item>
		<item>
			<title>MoesiOli on "FAQ - Different zoom for each category (user edit)"</title>
			<link>http://www.themolitor.com/forums/topic/different-zoom-for-each-category-1#post-10265</link>
			<pubDate>Tue, 22 May 2012 01:35:29 +0000</pubDate>
			<dc:creator>MoesiOli</dc:creator>
			<guid isPermaLink="false">10265@http://www.themolitor.com/forums/</guid>
			<description><p>It's very simple</p>
<p>You need the category_id, it is shown in the url<br />
or<br />
by using this Plugin<br />
<a href="http://wordpress.org/extend/plugins/reveal-ids-for-wp-admin-25/" rel="nofollow">http://wordpress.org/extend/plugins/reveal-ids-for-wp-admin-25/</a></p>
<p>Open script_list.php<br />
after<br />
<pre><code>if(!$mainZoom){$mainZoom = &#34;12&#34;;}</code></pre>
<p>add<br />
<pre><code>if ( is_category(&#039;ID&#039;) ) { $mainZoom = &#039;6&#039;; };</code></pre>
<p>Change ID and Zoom to your belongings.
</p></description>
		</item>

	</channel>
</rss>
