<?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>Areuconnected.com</title>
	<atom:link href="http://www.areuconnected.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.areuconnected.com</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Wed, 11 Jan 2012 04:25:19 +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>Removing genesis post_info from a Single or multiple Category</title>
		<link>http://www.areuconnected.com/genesis/removing-genesis-post_info-from-a-single-or-multiple-category/</link>
		<comments>http://www.areuconnected.com/genesis/removing-genesis-post_info-from-a-single-or-multiple-category/#comments</comments>
		<pubDate>Tue, 22 Nov 2011 15:35:29 +0000</pubDate>
		<dc:creator>onnoysomoy</dc:creator>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[Genesis]]></category>
		<category><![CDATA[action hooks]]></category>
		<category><![CDATA[code snippets]]></category>
		<category><![CDATA[genesis]]></category>
		<category><![CDATA[genesis framework]]></category>
		<category><![CDATA[Gist]]></category>
		<category><![CDATA[snippets]]></category>
		<category><![CDATA[tricks]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.areuconnected.com/?p=211</guid>
		<description><![CDATA[For a clients website I need to remove post info for multiple categories. So, here is the code I use to remove genesis_post_info from multiple categories. Add above code to the bottom of your child theme’s functions.php file.]]></description>
			<content:encoded><![CDATA[<p>For a clients website I need to remove post info for multiple categories. So, here is the code I use to remove genesis_post_info from multiple categories.</p>
<div id="gist-1385915" class="gist">

        <div class="gist-file">
          <div class="gist-data gist-syntax">
              <div class="highlight"><pre><div class='line' id='LC1'>add_action( &#39;genesis_before_post&#39;, &#39;auc_conditional_post_actions&#39; );</div><div class='line' id='LC2'>function auc_conditional_post_actions() {</div><div class='line' id='LC3'>if( in_category( &#39;1&#39; ) ) {</div><div class='line' id='LC4'>remove_action( &#39;genesis_before_post_content&#39;, &#39;genesis_post_info&#39; );</div><div class='line' id='LC5'>}</div><div class='line' id='LC6'>else {</div><div class='line' id='LC7'>add_action( &#39;genesis_before_post_content&#39;, &#39;genesis_post_info&#39; );</div><div class='line' id='LC8'>}</div><div class='line' id='LC9'>}</div><div class='line' id='LC10'><br/></div><div class='line' id='LC11'>// Use below code if you want to remove from multiple categories </div><div class='line' id='LC12'>add_action( &#39;genesis_before_post&#39;, &#39;auc_conditional_post_actions&#39; );</div><div class='line' id='LC13'>function auc_conditional_post_actions() {</div><div class='line' id='LC14'>if(in_category(array(&#39;1&#39;, &#39;2&#39;, &#39;3&#39;))) {</div><div class='line' id='LC15'>remove_action( &#39;genesis_before_post_content&#39;, &#39;genesis_post_info&#39; );</div><div class='line' id='LC16'>}</div><div class='line' id='LC17'>else {</div><div class='line' id='LC18'>add_action( &#39;genesis_before_post_content&#39;, &#39;genesis_post_info&#39; );</div><div class='line' id='LC19'>}</div><div class='line' id='LC20'>}</div></pre></div>
          </div>

          <div class="gist-meta">
            <a href="https://gist.github.com/raw/1385915/5cdea56472faa1bbb48aafb1e2c673b456bec8f6/removing%20genesis_post_info" style="float:right;">view raw</a>
            <a href="https://gist.github.com/1385915#file_removing genesis_post_info" style="float:right;margin-right:10px;color:#666">removing genesis_post_info</a>
            <a href="https://gist.github.com/1385915">This Gist</a> brought to you by <a href="http://github.com">GitHub</a>.
          </div>
        </div>
</div>

<p>Add above code to the bottom of your child theme’s functions.php file.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.areuconnected.com/genesis/removing-genesis-post_info-from-a-single-or-multiple-category/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Insert custom content after single post</title>
		<link>http://www.areuconnected.com/code-snippets/insert-custom-content-after-single-post/</link>
		<comments>http://www.areuconnected.com/code-snippets/insert-custom-content-after-single-post/#comments</comments>
		<pubDate>Fri, 23 Sep 2011 03:46:13 +0000</pubDate>
		<dc:creator>onnoysomoy</dc:creator>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[action hooks]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[snippetes]]></category>
		<category><![CDATA[snippets]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tricks]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.areuconnected.com/?p=191</guid>
		<description><![CDATA[For a client&#8217;s blog website I need to add a para automatically after each single post, found a snippet from Jeff Starr using a WordPress hook. Here’s how to do. add_filter('the_content', 'add_post_content') function add_post_content($content) { if(!is_single()) { $content .= '&#60;p&#62;YOUR CONTENT GOES HERE'&#60;/p&#62;'; } return $content; } If you enjoyed and find helpful this article, please consider [...]]]></description>
			<content:encoded><![CDATA[<p>For a client&#8217;s blog website I need to add a para automatically after each single post, found a snippet from <a href="http://digwp.com/2010/04/wordpress-custom-functions-php-template-part-2/">Jeff Starr</a> using a WordPress hook. Here’s how to do.</p>
<pre class="brush: php; gutter: true">add_filter('the_content', 'add_post_content')
function add_post_content($content) {
	if(!is_single()) {
		$content .= '&lt;p&gt;YOUR CONTENT GOES HERE'&lt;/p&gt;';
	}
	return $content;
}</pre>
<p>If you enjoyed and find helpful this article, please consider sharing it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.areuconnected.com/code-snippets/insert-custom-content-after-single-post/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to Add an Additional Wrap on Genesis Child Theme</title>
		<link>http://www.areuconnected.com/genesis/how-to-add-an-additional-wrap-on-genesis-child-theme/</link>
		<comments>http://www.areuconnected.com/genesis/how-to-add-an-additional-wrap-on-genesis-child-theme/#comments</comments>
		<pubDate>Tue, 02 Aug 2011 12:40:41 +0000</pubDate>
		<dc:creator>onnoysomoy</dc:creator>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[Genesis]]></category>
		<category><![CDATA[action hooks]]></category>
		<category><![CDATA[add_theme_support]]></category>
		<category><![CDATA[code snippets]]></category>
		<category><![CDATA[genesis]]></category>
		<category><![CDATA[genesis framework]]></category>
		<category><![CDATA[snippetes]]></category>
		<category><![CDATA[snippets]]></category>
		<category><![CDATA[StudioPress]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tricks]]></category>

		<guid isPermaLink="false">http://www.areuconnected.com/?p=151</guid>
		<description><![CDATA[So, since Genesis 1.6, and probably my favorite part of Genesis 1.6 is the theme support of genesis-structural-wraps. So now you can easily add wraps to the header, nav, subnav, inner, footer-widgets, and footer. If you’ve ever looked at the Visual Markup Guide for the Genesis Framework, you may have noticed that all of the main sections contain a [...]]]></description>
			<content:encoded><![CDATA[<p>So, since Genesis 1.6, and probably my favorite part of Genesis 1.6 is the theme support of genesis-structural-wraps. So now you can easily add wraps to the header, nav, subnav, inner, footer-widgets, and footer. If you’ve ever looked at the <a href="http://dev.studiopress.com/visual-markup-guide">Visual Markup Guide</a> for the <a href="http://www.areuconnected.com/go/genesis/">Genesis Framework</a>, you may have noticed that all of the main sections contain a div that wraps around the inner markup except the the ‘inner’ section. Have a look at this:</p>
<ul>
<li>#header &gt; .wrap</li>
<li>#nav &gt; .wrap</li>
<li>#subnav &gt; .wrap</li>
<li>#inner &gt; <strong>.wrap, this is what we will be adding</strong></li>
<li>#footer-widgets &gt;.wrap</li>
<li>#footer &gt; .wrap</li>
</ul>
<p>Previously to add an <strong>#inner</strong> wrap, for example, you had to:</p>
<pre class="brush: php; gutter: true">// Add div.wrap inside of div#inner
function child_before_content_sidebar_wrap() {
    echo '&lt;div class="wrap"&gt;';
}
add_action('genesis_before_content_sidebar_wrap', 'child_before_content_sidebar_wrap');

function child_after_content_sidebar_wrap() {
    echo '&lt;/div&gt;&lt;!-- end .wrap --&gt;';
}
add_action('genesis_after_content_sidebar_wrap', 'child_after_content_sidebar_wrap');</pre>
<p>Genesis has made it easy for us to add the additional wrapper by using <a href="http://dev.studiopress.com/introduction-hooks">hooks</a>. All you need to do is open up the <code>functions.php</code> file in your child theme and add the following code. The code should be placed at the end of the file, just before the closing <code>?&gt;</code> if there is one.</p>
<pre class="brush: php; gutter: true">add_theme_support( 'genesis-structural-wraps', array( 'header', 'nav', 'subnav', 'inner', 'footer-widgets', 'footer' ) );</pre>
<h3>The style changes</h3>
<p>By default the sample child theme for  genesis  is boxed in a 960px #wrap that constrains all the elements inside to that width centering them on the page. Find #wrap in your sample child theme style.css around line 162.<br />
Change:</p>
<pre class="brush: php; gutter: true">#wrap {
    background-color: #fff;
    margin: 0 auto 10px;
    width: 960px;
}</pre>
<p>to:</p>
<pre class="brush: php; gutter: true">#wrap {
    background-color: #fff;
}</pre>
<p>This will remove the contraint and allow our elements inside to span as far as we please.</p>
<p>Add styles for the wrap divs that is inside each our main div structures. This style will set each area to 960px width with the <code>margin:0 auto;</code> centering them on the page.</p>
<pre class="brush: php; gutter: true">.wrap {
    margin: 0 auto;
    width: 960px;
}</pre>
<p><em><strong>NOTE:</strong> Can be more specific to each area by adding the id of each setion before .wrap for example:</em></p>
<pre class="brush: php; gutter: true">#nav .wrap { width: 900px; }</pre>
<p><em>Will set the nav to be shorter than the other areas.</em></p>
<p>Find each main structural div and remove its width. The width we set for .wrap will handle this. Search for #header, #nav, #subnav, #inner, #footer-widgets &amp; #footer and remove the width set for each.</p>
<p>Hope this will help you to make your theme more better. <img src='http://www.areuconnected.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.areuconnected.com/genesis/how-to-add-an-additional-wrap-on-genesis-child-theme/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Genesis Framework &#8211; Footer</title>
		<link>http://www.areuconnected.com/genesis/genesis-framework-footer/</link>
		<comments>http://www.areuconnected.com/genesis/genesis-framework-footer/#comments</comments>
		<pubDate>Fri, 22 Jul 2011 15:48:57 +0000</pubDate>
		<dc:creator>onnoysomoy</dc:creator>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[Genesis]]></category>
		<category><![CDATA[code snippets]]></category>
		<category><![CDATA[genesis]]></category>
		<category><![CDATA[genesis footer]]></category>
		<category><![CDATA[snippetes]]></category>
		<category><![CDATA[StudioPress]]></category>

		<guid isPermaLink="false">http://www.areuconnected.com/?p=130</guid>
		<description><![CDATA[Sometimes I need to get footer outside of wrap. I tried to find out how can i do that in genesis child theme.  This code I got first from Marco who got it from Daisy Olsen. // Reposition the footer remove_action('genesis_footer', 'genesis_footer_markup_open', 5); remove_action('genesis_footer', 'genesis_do_footer'); remove_action('genesis_footer', 'genesis_footer_markup_close', 15); add_action('genesis_after', 'genesis_footer_markup_open', 5); add_action('genesis_after', 'genesis_do_footer'); add_action('genesis_after', 'genesis_footer_markup_close', [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes I need to get footer outside of wrap. I tried to find out how can i do that in genesis child theme.  This code I got first from <a href="http://teethgrinder.net/blog/229/genesis-framework-sticky-footer/" target="_blank">Marco</a> who got it from <a href="http://daisyolsen.com/" target="_blank">Daisy Olsen</a>.</p>
<pre class="brush: php; gutter: true">// Reposition the footer
remove_action('genesis_footer', 'genesis_footer_markup_open', 5);
remove_action('genesis_footer', 'genesis_do_footer');
remove_action('genesis_footer', 'genesis_footer_markup_close', 15);
add_action('genesis_after', 'genesis_footer_markup_open', 5);
add_action('genesis_after', 'genesis_do_footer');
add_action('genesis_after', 'genesis_footer_markup_close', 15);</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.areuconnected.com/genesis/genesis-framework-footer/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Customizing Genesis Footer Content</title>
		<link>http://www.areuconnected.com/genesis/customizing-genesis-footer-content/</link>
		<comments>http://www.areuconnected.com/genesis/customizing-genesis-footer-content/#comments</comments>
		<pubDate>Wed, 06 Jul 2011 07:10:00 +0000</pubDate>
		<dc:creator>onnoysomoy</dc:creator>
				<category><![CDATA[Code Snippets]]></category>
		<category><![CDATA[Genesis]]></category>
		<category><![CDATA[ADD_FILTER]]></category>
		<category><![CDATA[COPYRIGHT]]></category>
		<category><![CDATA[FOOTER CREDS]]></category>
		<category><![CDATA[genesis]]></category>
		<category><![CDATA[GENESIS_FOOTER_CREDS_TEXT]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.areuconnected.com/?p=102</guid>
		<description><![CDATA[Sometimes need to change the Genesis&#8216;s default content on demand of client to show clients requirement (i.e. footer logo, remove back to top, credential change, add footer link).  NOTE: When writing your own code/filters, use a child theme. Do not write to the default functions.php file in Genesis. It will overwrite on updates. See below for codes [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes need to change the <strong><a href="http://www.areuconnected.com/go/genesis" target="_blank">Genesis</a></strong>&#8216;s default content on demand of client to show clients requirement (i.e. footer logo, remove back to top, credential change, add footer link).</p>
<blockquote><p> <strong>NOTE:</strong> When writing your own code/filters, use a child theme. Do not write to the default <strong>functions.php</strong> file in Genesis. It will overwrite on updates.</p></blockquote>
<p>See below for codes I wrote to change Genesis Footer Content on child themes.</p>
<h4>Customize the footer creds text</h4>
<pre class="brush: php; gutter: true">add_filter('genesis_footer_creds_text', 'auc_footer_creds_text');
function auc_footer_creds_text($creds) {
    $creds = '©' . date('Y') . ' '
    . get_bloginfo('name') .
    '. All rights reserved. Powered by &lt;a href="http://wordpress.org/"&gt;WordPress&lt;/a&gt;.';
    echo $creds;
}</pre>
<h4>Remove Footer Content</h4>
<p>This will remove the footer credits text and ‘back to top’ link.</p>
<pre class="brush: php; gutter: true">add_filter('genesis_footer_output', 'footer_output_filter', 10, 1);
function footer_output_filter($footer_content) {
    $footer_content = '';
    return $footer_content;
}</pre>
<h4>Add a WordPress Custom Menu in Custom Footer.</h4>
<p>This will remove the default footer with credit text and Back to Top and add a WordPress custom navigation menu.</p>
<pre class="brush: php; gutter: true">remove_action( 'genesis_footer', 'genesis_do_footer' );
add_action( 'genesis_footer', 'auc_do_footer' );
function auc_do_footer() {
  $creds = '© Copyright '. date('Y') . ' ' . get_bloginfo('name') . ' . All rights reserved.';
  $footernav = wp_nav_menu( array('menu' =&gt; 'footer' ));
  echo $footernav;
  ?&gt;
  &lt;p class="creds"&gt;&lt;?php echo $creds; ?&gt;&lt;/p&gt;
&lt;?php }</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.areuconnected.com/genesis/customizing-genesis-footer-content/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Display Google Adsense after first post</title>
		<link>http://www.areuconnected.com/genesis/display-google-adsense-after-first-post/</link>
		<comments>http://www.areuconnected.com/genesis/display-google-adsense-after-first-post/#comments</comments>
		<pubDate>Tue, 07 Jun 2011 14:49:50 +0000</pubDate>
		<dc:creator>onnoysomoy</dc:creator>
				<category><![CDATA[Genesis]]></category>
		<category><![CDATA[code snippets]]></category>
		<category><![CDATA[genesis]]></category>
		<category><![CDATA[genesis framework]]></category>
		<category><![CDATA[google addsense]]></category>

		<guid isPermaLink="false">http://www.areuconnected.com/?p=54</guid>
		<description><![CDATA[If you are using Genesis Theme Framework and would like to display Google Adsense or any advertisement code after the first post on the homepage, archives, and search results page, add the code below to the child theme’s functions.php file. add_action('genesis_after_post', 'wpchildthemes_ad_after_first_post'); function wpchildthemes_ad_after_first_post() { global $loop_counter; if (!is_singular() &#38;&#38; $loop_counter == 0) { ?&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>If you are using <a href="http://www.areuconnected.com/go/genesis/" target="_blank">Genesis Theme Framework</a> and would like to display Google Adsense or any advertisement code after the first post on the homepage, archives, and search results page, add the code below to the child theme’s functions.php file.</p>
<pre class="brush: php; gutter: true">add_action('genesis_after_post', 'wpchildthemes_ad_after_first_post');
function wpchildthemes_ad_after_first_post() {
global $loop_counter;
if (!is_singular() &amp;&amp; $loop_counter == 0) { ?&gt;
ADD YOUR GOOGLE ADSENSE CODE HERE
&lt;?php }
}</pre>
<p>The code above which you add should be placed anywhere after this:</p>
<pre class="brush: php; gutter: true">require_once(TEMPLATEPATH.'/lib/init.php');</pre>
<p>And before the following closing code (if it exists):</p>
<pre class="brush: php; gutter: true">?&gt;</pre>
<p>Thats it. Let me know your experience after using this snippet. Also please share if you have tricks complete this kinda job.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.areuconnected.com/genesis/display-google-adsense-after-first-post/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Page specific sidebar content in Genesis framework wordpress</title>
		<link>http://www.areuconnected.com/genesis/page-specific-sidebar-content-in-genesis-framework-wordpress/</link>
		<comments>http://www.areuconnected.com/genesis/page-specific-sidebar-content-in-genesis-framework-wordpress/#comments</comments>
		<pubDate>Tue, 07 Jun 2011 05:55:29 +0000</pubDate>
		<dc:creator>onnoysomoy</dc:creator>
				<category><![CDATA[Genesis]]></category>
		<category><![CDATA[action hooks]]></category>
		<category><![CDATA[sidebar content]]></category>
		<category><![CDATA[sidebar content widget]]></category>
		<category><![CDATA[widget]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.areuconnected.com/?p=45</guid>
		<description><![CDATA[This is a simple task if you use the built in is_page() conditional tag in WordPress and use one of the Genesis structural action hooks. We’ll be using the genesis_before_sidebar_widget_area action hook in this example. &#160; &#60;?php // Add additional sidebar content to the book page add_action('genesis_before_sidebar_widget_area', 'child_genesis_sidebar'); function child_genesis_sidebar() { if ( is_page('__SPECIFIC-PAGE-ID-OR-TITLE__')) { [...]]]></description>
			<content:encoded><![CDATA[<p>This is a simple task if you use the built in <strong>is_page()</strong> conditional tag in WordPress and use one of the <a href="http://www.areuconnected.com/go/genesis-structural-action-hooks/" target="_blank">Genesis structural action hooks</a>. We’ll be using the <strong>genesis_before_sidebar_widget_area</strong> action hook in this example.</p>
<p>&nbsp;</p>
<pre class="brush: php; gutter: true">&lt;?php
// Add additional sidebar content to the book page
add_action('genesis_before_sidebar_widget_area', 'child_genesis_sidebar');
function child_genesis_sidebar() {
	if ( is_page('__SPECIFIC-PAGE-ID-OR-TITLE__')) { ?&gt;
	&lt;your-content-code&gt;
&lt;?php
	}
}
?&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.areuconnected.com/genesis/page-specific-sidebar-content-in-genesis-framework-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Quick Tips of Genesis Framework</title>
		<link>http://www.areuconnected.com/genesis/quick-tips-of-genesis-framework/</link>
		<comments>http://www.areuconnected.com/genesis/quick-tips-of-genesis-framework/#comments</comments>
		<pubDate>Tue, 07 Jun 2011 05:24:18 +0000</pubDate>
		<dc:creator>onnoysomoy</dc:creator>
				<category><![CDATA[Genesis]]></category>
		<category><![CDATA[genesis framework]]></category>
		<category><![CDATA[snippets]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tricks]]></category>

		<guid isPermaLink="false">http://www.areuconnected.com/?p=35</guid>
		<description><![CDATA[There’s a lot of small code snippets I use often. This is where I’ll collect them. If you have any quick tips, feel free to share in the comments. Force a page layout This is very useful for ensuring custom pages you build for a client aren’t broken by them changing the page layout (ex: [...]]]></description>
			<content:encoded><![CDATA[<p>There’s a lot of small code snippets I use often. This is where I’ll collect them. If you have any quick tips, feel free to share in the comments.<br />
<strong>Force a page layout</strong><br />
This is very useful for ensuring custom pages you build for a client aren’t broken by them changing the page layout (ex: home page). Or, changing the page layout to something other than the default on archive pages (ex: category). The example below is to set the category page to Sidebar-Content-Sidebar.</p>
<pre class="brush: php; gutter: true">// Force layout on category
add_filter('genesis_pre_get_option_site_layout', 'child_category_layout');
function child_category_layout($opt) {
if ( is_category() )
$opt = 'sidebar-content-sidebar';
return $opt;
}</pre>
<p><strong>Set default page layout</strong></p>
<pre class="brush: php; gutter: true">// Register default site layout option
genesis_set_default_layout( 'full-width-content' );</pre>
<p><strong>Setup the child theme</strong></p>
<p>This is what I include at the top of my functions.php file in my child themes. Any time below you see an add_action or add_filter, that part goes in the setup function, and the function itself goes after the setup function.</p>
<pre class="brush: php; gutter: true">// Start the engine
require_once(TEMPLATEPATH.'/lib/init.php');
// Setup the child theme
add_action('after_setup_theme','child_child_theme_setup');
function child_child_theme_setup() {
    // ** Backend **
    // Remove Purchase Themes menu link from dashboard
    remove_theme_support('genesis-purchase-menu');
    // ** Frontend **
}</pre>
<p><strong>Unregister unused page layouts</strong></p>
<pre class="brush: actionscript3; gutter: true">// Unregister other site layouts
genesis_unregister_layout( 'content-sidebar' );
genesis_unregister_layout( 'sidebar-content' );
genesis_unregister_layout( 'content-sidebar-sidebar' );
genesis_unregister_layout( 'sidebar-sidebar-content' );
genesis_unregister_layout( 'sidebar-content-sidebar' );</pre>
<p><strong>Add Image Sizes</strong></p>
<p>This adds an image size named ‘feature’ with a fixed size of 600×250.  See Mark Jaquith’s post for details.</p>
<pre class="brush: php; gutter: true">add_image_size('feature', 600, 250, true);</pre>
<p><strong>Modify Post Info</strong></p>
<p><a href="http://dev.studiopress.com/shortcode-reference" target="_blank">Shortcode Reference</a></p>
<pre class="brush: php; gutter: true">add_filter('genesis_post_info', 'child_post_info_filter');
function child_post_info_filter($post_info) {
$post_info = '[ post_date ] by [ post_author_posts_link ] at [ post_time ] [ post_comments ] [ post_edit ]';
return $post_info;
}</pre>
<p><strong>Remove Post Info</strong></p>
<pre class="brush: php; gutter: true">remove_action('genesis_before_post_content', 'genesis_post_info');</pre>
<p><strong>Modify Post Meta</strong></p>
<pre class="brush: php; gutter: true">
add_filter('genesis_post_meta', 'child_post_meta_filter');
function child_post_meta_filter($post_meta) {
$post_meta = '[ post_categories ] Tagged with [ post_tags ]';
return $post_meta;
}
</pre>
<p><strong>Remove Post Meta</strong></p>
<pre class="brush: php; gutter: true">remove_action('genesis_after_post_content', 'genesis_post_meta');</pre>
<p><strong>Change Excerpt More text [...]</strong></p>
<pre class="brush: php; gutter: true">function child_excerpt_more($more) {
    return '[.....]';
}
add_filter('excerpt_more', 'child_excerpt_more');</pre>
<p><strong>Remove Footer</strong></p>
<pre class="brush: php; gutter: true">remove_action('genesis_footer','genesis_do_footer');</pre>
<p>Remove Footer and Footer Markup</p>
<pre class="brush: php; gutter: true">// Remove Footer
remove_action('genesis_footer', 'genesis_do_footer');
remove_action('genesis_footer', 'genesis_footer_markup_open', 5);
remove_action('genesis_footer', 'genesis_footer_markup_close', 15);</pre>
<p><strong>Customize the Search Form text</strong></p>
<pre class="brush: php; gutter: true">add_filter('genesis_search_button_text', 'child_custom_search_button_text');
function child_custom_search_button_text($text) {
return esc_attr('');
}</pre>
<p><strong>Remove Breadcrumbs</strong></p>
<pre class="brush: php; gutter: true">add_filter('genesis_breadcrumb_args', 'child_custom_breadcrumb_args');
function child_custom_breadcrumb_args($args) {
$args['sep'] = ' &lt;span&gt;&gt;&lt;/span&gt; ';
$args['labels']['prefix'] = '';
return $args;
}</pre>
<p><strong>Customize the Site Title (in #header)</strong></p>
<p>This is useful if you want to use the default site title (Settings &gt; Title) but style different elements of it differently. This specific code searches for &#8220;of&#8221; in the site title, and changes it to &lt;em&gt;of&lt;/em&gt;.</p>
<pre class="brush: php; gutter: true">// Customize the site title
add_filter('genesis_seo_title','child_customize_site_title', 10, 3);
function child_customize_site_title($title, $inside, $wrap) {
$custom = str_replace("of", "&lt;em&gt;of&lt;/em&gt;", $title);
return $custom;
}</pre>
<p><strong>Customize the Site Description (in #header)</strong></p>
<pre class="brush: php; gutter: true">add_filter('genesis_seo_description','child_customize_site_description', 10, 3);
function child_customize_site_description($description, $inside, $wrap) {
$custom = str_replace("Redefining", "&lt;strong&gt;Redefining&lt;/strong&gt;", $description);
return $custom;
}</pre>
<p><strong>Remove the Post Title</strong></p>
<pre class="brush: php; gutter: true">// Remove Post Title
remove_action('genesis_post_title','genesis_do_post_title');</pre>
<p><strong>Display Description of Menu Items</strong></p>
<p>To add a description to a menu item, go to Appearances &gt; Menus. At the top right click &#8220;Screen Options&#8221;, then check &#8220;Description&#8221;. Now you can click the dropdown arrow next to menu items and add a description. The below code will make it visible on the site.</p>
<pre class="brush: php; gutter: true">// Display Description of Menu Items
add_filter( 'walker_nav_menu_start_el', 'child_add_description', 10, 2 );
function child_add_description( $item_output, $item ) {
$description = __( $item-&gt;post_content );
return preg_replace(  '/(&lt;a.*?&gt;[^&lt;]*?)&lt;/', '$1' . '&lt;span &gt;' . $description . '&lt;/span&gt;&lt;/',  $item_output);
}</pre>
<p><strong>Register a Sidebar</strong></p>
<pre class="brush: php; gutter: true">genesis_register_sidebar(array(
    'name'=&gt;'Homepage Widgets',
    'id' =&gt; 'homepage-widgets',
    'description' =&gt; 'This shows up at the bottom of the homepage.',
));</pre>
<p><strong>Unregister a Sidebar</strong></p>
<pre class="brush: php; gutter: true">unregister_sidebar('sidebar-alt');</pre>
<p><strong>Customize Read More Link</strong></p>
<pre class="brush: php; gutter: true">// Customize Read More Link
add_filter( 'excerpt_more', 'child_more_link' );
add_filter( 'get_the_content_more_link', 'child_more_link' );
add_filter( 'the_content_more_link', 'child_more_link' );
function child_more_link($more_link, $more_link_text) {
    return sprintf('&lt;p&gt;&lt;a href="%s" class="more-link"&gt;%s&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;', get_permalink(), 'Read More');
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.areuconnected.com/genesis/quick-tips-of-genesis-framework/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

