<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>EricHamby.Com &#187; Tutorials</title>
	<atom:link href="http://erichamby.com/category/tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://erichamby.com</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Sat, 12 May 2012 20:47:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Classipress: Combine Styles For Homepage</title>
		<link>http://erichamby.com/classipress-combine-styles-for-homepage/</link>
		<comments>http://erichamby.com/classipress-combine-styles-for-homepage/#comments</comments>
		<pubDate>Thu, 08 Mar 2012 14:15:19 +0000</pubDate>
		<dc:creator>erichamby</dc:creator>
				<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://erichamby.com/?p=1</guid>
		<description><![CDATA[Has most of you know you can choose what home page style you want for your Classipress site. Currently there are 2 options for this. A directory, and a standard style. I have really never understood why we need both styles. the standard style is not for most users has it hides the category tab, most users want that to...<a href="http://erichamby.com/classipress-combine-styles-for-homepage/">read more &#8594;</a>]]></description>
			<content:encoded><![CDATA[<p>Has most of you know you can choose what home page style you want for your Classipress site. Currently there are 2 options for this. A directory, and a standard style. I have really never understood why we need both styles. the standard style is not for most users has it hides the category tab, most users want that to be the first thing the users see, but choosing the directory style to me makes the site not look right has it shoves the actual add way down user the category tab and makes way to much scroll. You already have tabs there&#8230; so lets use them.</p>
<div class="alert-yellow aligncenter">
<h2 class="alert-title">Demo</h2>
<p> For a demo visit: <a href="http://classifiedsoflasvegas.com" target="_blank">Demo Tutorial</a></div>
<h1>Step 1:</h1>
<p> We only need one file for this mod. &#8220;index.php&#8221;. This will be located in the root folder of your Classipress theme. Find it and open it in your HTML editor. </p>
<h1>Step 2:</h1>
<p> We are using v3.1.6 for this and in that version the first clunk of code we want is line 20-42.</p>
<pre class="wp-code-highlight prettyprint linenums:1">&lt;?php if ( get_option('cp_home_layout') == 'directory' ) : ?&gt;

                &lt;div class=&quot;shadowblock_out&quot;&gt;

                    &lt;div class=&quot;shadowblock&quot;&gt;

                        &lt;h2 class=&quot;dotted&quot;&gt;&lt;?php _e('Ad Categories','appthemes')?&gt;&lt;/h2&gt;

                        &lt;div id=&quot;directory&quot; class=&quot;directory &lt;?php if(get_option('cp_cat_dir_cols') == 2) echo 'two'; ?&gt;Col&quot;&gt;

                            &lt;?php echo cp_cat_menu_drop_down(get_option('cp_cat_dir_cols'), get_option('cp_dir_sub_num')); ?&gt;

                            &lt;div class=&quot;clr&quot;&gt;&lt;/div&gt;

                        &lt;/div&gt;&lt;!--/directory--&gt;

                    &lt;/div&gt;&lt;!-- /shadowblock --&gt;

                &lt;/div&gt;&lt;!-- /shadowblock_out --&gt;

            &lt;?php endif; ?&gt;</pre>
<p> This is the entire code that makes up the directory/category tab. At the end of this tutorial we will delete these lines but dont do this yet has we need to do some copy and pasting first.</p>
<h1>Step 3:</h1>
<p> Lines 47-51 you can see contain the actual &#8220;tabs&#8221;. This is the code structure we need to use to make the tabs work in our new index page. We need to make a new tab for the directory page so lets get to work. </p>
<p> Lines 47-51 by default look like this:</p>
<pre class="wp-code-highlight prettyprint linenums:1">&lt;ul class=&quot;tabnavig&quot;&gt;
              &lt;li&gt;&lt;a href=&quot;#block1&quot;&gt;&lt;span class=&quot;big&quot;&gt;&lt;?php _e('Just Listed','appthemes')?&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href=&quot;#block2&quot;&gt;&lt;span class=&quot;big&quot;&gt;&lt;?php _e('Most Popular','appthemes')?&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href=&quot;#block3&quot;&gt;&lt;span class=&quot;big&quot;&gt;&lt;?php _e('Random','appthemes')?&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;</pre>
<p> We need to add the tabs so change the code to this:</p>
<pre class="wp-code-highlight prettyprint linenums:1">&lt;ul class=&quot;tabnavig&quot;&gt;
              &lt;li&gt;&lt;a href=&quot;#block1&quot;&gt;&lt;span class=&quot;big&quot;&gt;&lt;?php _e('Ad Categories','appthemes')?&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href=&quot;#block2&quot;&gt;&lt;span class=&quot;big&quot;&gt;&lt;?php _e('Just Listed','appthemes')?&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href=&quot;#block3&quot;&gt;&lt;span class=&quot;big&quot;&gt;&lt;?php _e('Most Popular','appthemes')?&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href=&quot;#block4&quot;&gt;&lt;span class=&quot;big&quot;&gt;&lt;?php _e('Random','appthemes')?&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;</pre>
<h1>Step 4:</h1>
<p> Ok here we get a bit complicated. Now this will all depend on if you want the directory tab to appear last or first in the tabs list. I like the directory being the first tab so im going to write the tutorial that way. Now we need to make a new 1st tab block since we are moving the old first tab to the second tab. Here is the &#8220;NEW&#8221; first tab block. </p>
<pre class="wp-code-highlight prettyprint linenums:1">&lt;!-- tab 1 --&gt;
            &lt;div id=&quot;block1&quot;&gt;

              &lt;div class=&quot;clr&quot;&gt;&lt;/div&gt;

              &lt;div class=&quot;undertab&quot;&gt;&lt;span class=&quot;big&quot;&gt;&lt;?php _e('Classified Ads','appthemes') ?&gt; / &lt;strong&gt;&lt;span class=&quot;colour&quot;&gt;&lt;?php _e('Ad Categories','appthemes')?&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;

              &lt;div class=&quot;shadowblock_out&quot;&gt;

                    &lt;div class=&quot;shadowblock&quot;&gt;

                        &lt;h2 class=&quot;dotted&quot;&gt;&lt;?php _e('Ad Categories','appthemes')?&gt;&lt;/h2&gt;

                        &lt;div id=&quot;directory&quot; class=&quot;directory &lt;?php if(get_option('cp_cat_dir_cols') == 2) echo 'two'; ?&gt;Col&quot;&gt;

                            &lt;?php echo cp_cat_menu_drop_down(get_option('cp_cat_dir_cols'), get_option('cp_dir_sub_num')); ?&gt;

                            &lt;div class=&quot;clr&quot;&gt;&lt;/div&gt;

                        &lt;/div&gt;&lt;!--/directory--&gt;

                    &lt;/div&gt;&lt;!-- /shadowblock --&gt;

                &lt;/div&gt;&lt;!-- /shadowblock_out --&gt;

            &lt;/div&gt;&lt;!-- /block1 --&gt;</pre>
<h1>Step 5:</h1>
<p> Now to make everything work you will have to edit the rest of the page changing all the block numbers. For the next block which is also named block 1 you will have to rename block 2. The old block 2 will be block 3 and so on. If you are having issues with this i have included the new &#8220;index.php&#8221; file for you to download. Just replace your old &#8220;index.php&#8221; with this one and upload to your server. </p>
<hr><a href="http://erichamby.com/wp-content/plugins/download-monitor/download.php?id=1">Classipress: Combine Styles For Homepage </a><br> Size: 1.42 kB | Type: zip | Hits: 34 | Version: 3.1.6 | ID: 1<br />
<hr>
That should get you good to go. Any questions or ideas just leave it in the comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://erichamby.com/classipress-combine-styles-for-homepage/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

