<?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>WPSyntax</title>
	<atom:link href="http://www.wpsyntax.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wpsyntax.com</link>
	<description>Genesis Framework &#38; WordPress Tutorials + Digital Marketing for Small Busineses</description>
	<lastBuildDate>Sun, 16 Jun 2013 20:59:30 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>7 Functions to White Label WordPress</title>
		<link>http://www.wpsyntax.com/wordpress/7-functions-white-label-wordpress</link>
		<comments>http://www.wpsyntax.com/wordpress/7-functions-white-label-wordpress#comments</comments>
		<pubDate>Wed, 13 Mar 2013 11:23:26 +0000</pubDate>
		<dc:creator>Rick R. Duncan</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.wpsyntax.com/?p=5365</guid>
		<description><![CDATA[<p>Do you want to White Label WordPress without a plugin? If you&#8217;re in the business of building WordPress websites you might want to white label WordPress before delivering it to your client. In this WordPress tutorial I&#8217;m going to cover 7 WordPress functions that you can use to brand/white label WordPress in order to provide [...]</p><p>The post <a href="http://www.wpsyntax.com/wordpress/7-functions-white-label-wordpress">7 Functions to White Label WordPress</a> appeared first on <a href="http://www.wpsyntax.com">WPSyntax</a>.</p>]]></description>
				<content:encoded><![CDATA[<p><img src="http://www.wpsyntax.com/wp-content/uploads/2013/03/white-label-wordpress.png" alt="white label wordpress" width="642" height="240" class="alignnone size-full wp-image-5410 frame" /></p>
<p>Do you want to White Label WordPress without a plugin? </p>
<p>If you&#8217;re in the business of building WordPress websites you might want to white label WordPress before delivering it to your client. In this WordPress tutorial I&#8217;m going to cover 7 WordPress functions that you can use to brand/white label WordPress in order to provide a more polished look to your theme.</p>
<p>All seven functions detailed below can be placed into your functions.php file. These have been developed and tested with WordPress version 3.5.1. </p>
<p><strong>Note:</strong> Before you begin, we recommend that you make a backup of your theme&#8217;s <strong><em>functions.php</em></strong> file before making edits to the file.</p>
<h3>1. How to Change the WordPress Login Logo</h3>
<p><img src="http://www.wpsyntax.com/wp-content/uploads/2013/03/wordpress-login-logo.png" alt="wordpress login logo" width="329" height="371" class="alignnone size-full wp-image-5368 frame" /></p>
<p>Create a logo sized 274px wide by 63px tall, name it logo-login.png then upload it into your theme&#8217;s images folder. Next you simply copy the code below and paste it into your theme&#8217;s functions.php file to change the WordPress login logo.</p>
<pre class="brush: php; title: ; notranslate">
// Login Screen: Change the login logo to your own logo
function b3m_custom_login_logo() {
	echo '&lt;style type=&quot;text/css&quot;&gt;
    h1 a { background-image:url('.get_stylesheet_directory_uri().'/images/logo-login.png) !important; }
    &lt;/style&gt;';
}
add_action('login_head', 'b3m_custom_login_logo');
</pre>
<h3>2. How to Change WordPress Logo URL</h3>
<p>Once you change the WordPress login logo you&#8217;ll also want to change the URL that you go to should you click on the logo. By default, the logo will send you to <a href="http://wordpress.org">wordpress.org</a>. In the code snippet below, you&#8217;ll now be sent to the homepage of your website. Learn more about <a href="http://codex.wordpress.org/Function_Reference/get_bloginfo">get_bloginfo()</a> at Codex.</p>
<pre class="brush: php; title: ; notranslate">
// Login Screen: Use your own external URL for login logo link
function b3m_url_login(){
	return get_bloginfo( 'wpurl' );
}
add_filter('login_headerurl', 'b3m_url_login');
</pre>
<h3>2a. How to Change WordPress Logo Hover Text</h3>
<p><strong><em>Added: March 29, 2013.</em></strong> A reader asked for a way to edit the text &#8220;Powered by WordPress&#8221; when you hover over the login logo. I did a little digging around and found a way to do that too. Copy the code below into your theme&#8217;s functions.php file to make it happen.</p>
<pre class="brush: php; title: ; notranslate">
// Login Screen: Change login logo hover text
function b3m_login_logo_url_title() {
    return 'REPLACE THIS WITH YOUR TEXT';
}
add_filter( 'login_headertitle', 'b3m_login_logo_url_title' );
</pre>
<h3>3. How to Cure the Forgetfulness of WordPress</h3>
<p><img src="http://www.wpsyntax.com/wp-content/uploads/2013/03/wordpress-remember-me.png" alt="wordpress remember me" width="284" height="55" class="alignnone size-full wp-image-5394 frame" /><br />
Raise your hand if you get annoyed that WordPress will not keep the check mark in the &#8216;remember me&#8217; check box. The code snippet below will keep it checked.</p>
<pre class="brush: php; title: ; notranslate">
// Login Screen: Set 'remember me' to be checked by default
function b3m_login_checked_remember_me() {
	add_filter( 'login_footer', 'b3m_rememberme_checked' );
}
add_action( 'init', 'b3m_login_checked_remember_me' );

function b3m_rememberme_checked() {
	echo &quot;&lt;script&gt;document.getElementById('rememberme').checked = true;&lt;/script&gt;&quot;;
}
</pre>
<h3>4. Keeping WordPress Login Credentials Vague</h3>
<p><img src="http://www.wpsyntax.com/wp-content/uploads/2013/03/wordpress-password-error.png" alt="wordpress login error" width="331" height="61" class="alignnone size-full wp-image-5379 frame" /><br />
By default when you login incorrectly, WordPress tells you which piece of information is incorrect. Now a hacker knows 50% of the information needed to get into your WordPress account. Stop that from happening by pasting the code below into your theme&#8217;s functions.php file.</p>
<pre class="brush: php; title: ; notranslate">
// Login Screen: Don't inform user which piece of credential was incorrect
function b3m_failed_login () {
    return 'The login information you have entered is incorrect. Please try again.';
}
add_filter ( 'login_errors', 'b3m_failed_login' );
</pre>
<p>OK. I realize that function #5 wasn&#8217;t really a function for white labeling WordPress, but I thought it to be a relevant function that should be included when branding a WordPress website for clients.</p>
<h3>5. How to Display Custom Logo in WordPress Dashboard</h3>
<p><img src="http://www.wpsyntax.com/wp-content/uploads/2013/03/wordpress-dashboard-logo.png" alt="wordpress dashboard logo" width="326" height="80" class="alignnone size-full wp-image-5389 frame" /><br />
So much of WordPress is customizable including the little house icon on the main dashboard screen. To include a custom logo to the admin dashboard, simple copy the code snippet below and paste it into your theme&#8217;s functions.php file.</p>
<pre class="brush: php; title: ; notranslate">
// Custom admin dashboard header logo
function b3m_custom_admin_logo() {
    echo '&lt;style type=&quot;text/css&quot;&gt;#icon-index { background-image: url('.get_stylesheet_directory_uri().'/images/logo-dashboard.png) !important; background-position: 0 0;}&lt;/style&gt;';
}
add_action('admin_head', 'b3m_custom_admin_logo');
</pre>
<h3>6. Modify the Admin Footer</h3>
<p><img src="http://www.wpsyntax.com/wp-content/uploads/2013/03/admin-footer.png" alt="admin footer " width="205" height="52" class="alignnone size-full wp-image-5391 frame" /><br />
The text that reads &#8216;Thank you for creating with WordPress&#8217; can also be customized. Again, simply grab the code below and paste it into your theme&#8217;s functions.php file.  </p>
<pre class="brush: php; title: ; notranslate">
// Modify the admin footer
function b3m_modify_footer_admin ()
{
    echo '&lt;span id=&quot;footer-thankyou&quot;&gt;Theme Development by &lt;a href=&quot;http://www.wpsyntax.com&quot; target=&quot;_blank&quot;&gt;WPSyntax&lt;/a&gt;&lt;/span&gt;';
}
add_filter('admin_footer_text', 'b3m_modify_footer_admin');
</pre>
<h3>7. Custom Widget in Admin Dashboard</h3>
<p><img src="http://www.wpsyntax.com/wp-content/uploads/2013/03/admin-dashboard-widget.png" alt="admin dashboard widget" width="226" height="162" class="alignnone size-full wp-image-5392 frame" /><br />
Once you deliver your finished product it&#8217;s nice when the user can log into WordPress and see both your contact information as well as a README file for your custom theme. The code below displays my contact information as well as a link to the Genesis README file that I update with all of my customizations. Things like shortcodes and custom styles for alert boxes are found in the README file so that users can utilize the theme&#8217;s functionality. I shouldn&#8217;t have to say it again, but&#8230; grab the code below and paste it into your theme&#8217;s functions.php file after editing it for your implementation.</p>
<pre class="brush: php; title: ; notranslate">
// Add a widget in WordPress Dashboard
function b3m_dashboard_widget_function() {
	// Entering the text between the quotes
	echo &quot;&lt;ul&gt;
	&lt;li&gt;&lt;strong&gt;Author:&lt;/strong&gt; Rick R. Duncan&lt;/li&gt;
	&lt;li&gt;&lt;strong&gt;Website:&lt;/strong&gt; &lt;a href='http://www.wpsyntax.com'&gt;WPSyntax.com&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;strong&gt;Contact:&lt;/strong&gt; &lt;a href='mailto:rick@wpsytax.com'&gt;rick@wpsyntax.com&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;strong&gt;Theme Instructions:&lt;/strong&gt; &lt;a href='http://www.wpsyntax.com/wp-admin/admin.php?page=genesis-readme'&gt;README&lt;/a&gt;&lt;/li&gt;
	&lt;/ul&gt;&quot;;
}
function b3m_add_dashboard_widgets() {
	wp_add_dashboard_widget('wp_dashboard_widget', 'Theme Details', 'b3m_dashboard_widget_function');
}
add_action('wp_dashboard_setup', 'b3m_add_dashboard_widgets' );
</pre>
<h3>BONUS &#8211; Did You Know?</h3>
<p>Did you know that you don&#8217;t have to type in /wp-login to get to the WordPress login screen? If you type in your website URL followed by /login you&#8217;ll be redirected to wp-login.php. I&#8217;ll admit it; I didn&#8217;t know.</p>
<p>If for some reason it doesn&#8217;t work on WordPress versions prior to 3.5.1 then try placing the following code into your .htaccess file.</p>
<pre class="brush: plain; title: ; notranslate">
RewriteRule ^login$ http://www.wpsyntax.com/wp-login.php [NC,L]
</pre>
<p>What did I miss? How do you white label WordPress without using a plugin? Please share in the comments below.</p>
<p>The post <a href="http://www.wpsyntax.com/wordpress/7-functions-white-label-wordpress">7 Functions to White Label WordPress</a> appeared first on <a href="http://www.wpsyntax.com">WPSyntax</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.wpsyntax.com/wordpress/7-functions-white-label-wordpress/feed</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>How to Customize the Metro Theme Footer</title>
		<link>http://www.wpsyntax.com/wordpress/customize-footer-metro-theme</link>
		<comments>http://www.wpsyntax.com/wordpress/customize-footer-metro-theme#comments</comments>
		<pubDate>Sun, 17 Feb 2013 13:21:56 +0000</pubDate>
		<dc:creator>Rick R. Duncan</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Genesis]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.wpsyntax.com/?p=5302</guid>
		<description><![CDATA[<p>One of the newest premium themes produced by StudioPress is the Metro Theme. The Metro Theme by StudioPress is a very modern and sleek magazine styled theme that is mobile responsive, comes with 6 color styles and layouts, landing page templates and more. Unfortunately, the full width footer in Metro isn&#8217;t widgetized nor easily customized [...]</p><p>The post <a href="http://www.wpsyntax.com/wordpress/customize-footer-metro-theme">How to Customize the Metro Theme Footer</a> appeared first on <a href="http://www.wpsyntax.com">WPSyntax</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>One of the newest premium themes produced by StudioPress is the <a href="http://www.wpsyntax.com/go/studiopress-metro" rel="nofollow">Metro Theme</a>. The Metro Theme by StudioPress is a very modern and sleek magazine styled theme that is mobile responsive, comes with 6 color styles and layouts, landing page templates and more.</p>
<p>Unfortunately, the full width footer in Metro isn&#8217;t widgetized nor easily customized unless you&#8217;re ready to get your hands dirty and start editing your <strong><em>functions.php</em></strong> file. Hey don&#8217;t sweat it, I&#8217;m here to walk you through the steps necessary to customize the footer in the Metro theme.</p>
<h3>Code Responsibly</h3>
<p>As I always recommend, please make a backup of your theme&#8217;s functions.php file before making any edits. OK, lets go&#8230;</p>
<h3>Open Up Functions.php File</h3>
<p>Inside of the Metro child theme folder, open the file functions.php and locate the snippet of code shown below.</p>
<pre class="brush: php; title: ; notranslate">
// 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', 11 );
add_action( 'genesis_after', 'genesis_do_footer', 12 );
add_action( 'genesis_after', 'genesis_footer_markup_close', 13 );
</pre>
<p>Take note of <strong>line 6</strong> in the code above. We&#8217;re going to make an edit to that specific line of code. </p>
<h3>Step #1</h3>
<p>Change line #6 to read:</p>
<pre class="brush: php; title: ; notranslate">
add_action( 'genesis_after', 'custom_genesis_do_footer', 12 );
</pre>
<p>Take note that we changed line #6 from genesis_do_footer to custom_genesis_do_footer.</p>
<h3>Step #2</h3>
<p>Add the code below underneath all of the code we mentioned above.</p>
<pre class="brush: php; title: ; notranslate">
function custom_genesis_do_footer() {
	echo '&lt;div class=&quot;gototop&quot;&gt;';
	echo '&lt;p&gt;&lt;a href=&quot;#wrap&quot; rel=&quot;nofollow&quot;&gt;Return to top of page&lt;/a&gt;&lt;/p&gt;';
	echo '&lt;/div&gt;';
	echo '&lt;div class=&quot;creds&quot;&gt;';
	echo '&lt;p&gt;Copyright &amp;copy B3Marketing, LLC&lt;/p&gt;';
	echo '&lt;/div&gt;';
}
</pre>
<p>Your final code should like like this:</p>
<pre class="brush: php; title: ; notranslate">
// 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', 11 );
add_action( 'genesis_after', 'custom_genesis_do_footer', 12 );
add_action( 'genesis_after', 'genesis_footer_markup_close', 13 );

// Customize the content of your footer
function custom_genesis_do_footer() {
	echo '&lt;div class=&quot;gototop&quot;&gt;';
	echo '&lt;p&gt;&lt;a href=&quot;#wrap&quot; rel=&quot;nofollow&quot;&gt;Return to top of page&lt;/a&gt;&lt;/p&gt;';
	echo '&lt;/div&gt;';
	echo '&lt;div class=&quot;creds&quot;&gt;&lt;p&gt;';
    	echo 'Copyright &amp;copy; ';
    	echo date('Y');
    	echo ' B3Marketing, LLC';
    	echo '&lt;/p&gt;&lt;/div&gt;';
}
</pre>
<h3>Step #3</h3>
<p>Now simply customize the contents of the footer text for your specific implementation and you&#8217;re all done.</p>
<h3>Homework Assignment</h3>
<p>You could take it a step further and make the content placeholders widgetized so that you don&#8217;t have to edit your functions.php file directly. Maybe I&#8217;ll build upon this code in my next <a href="http://www.wpsyntax.com/genesis-framework" title="genesis framework tutorials">Genesis Framework tutorial</a>&#8230;</p>
<p>OK, I couldn&#8217;t resist&#8230;</p>
<h3>How to Widgetize the Metro Theme Footer</h3>
<p>Building upon everything from above, I realized that most people would rather not edit their functions.php file directly when it comes time to editing the footer text in the Metro theme. I&#8217;ll be brief in my instructions, but wanted to share the code that will make the left and right sides of the Metro theme footer widgetized.</p>
<p><strong>Take note:</strong> The function custom_genesis_do_footer() has been edited to include two widget areas. Then you need to register the two new widget areas named footer-left and footer-right. All of this code goes into the functions.php file inside of the Metro child theme folder. </p>
<p><strong>File Download:</strong> I&#8217;ve created a download file of the code needed to make the Metro footer widgetized. Feel free to download it <a href="http://www.wpsyntax.com/downloads/metro-theme-footer-widgetized.php.zip" target="_blank" rel="nofollow">here</a>. </p>
<pre class="brush: php; title: ; notranslate">
// Customize the content of your footer
function custom_genesis_do_footer() {
	echo '&lt;div class=&quot;gototop&quot;&gt;&lt;p&gt;';
	dynamic_sidebar( 'footer-left' );
	echo '&lt;/p&gt;&lt;/div&gt;';
	echo '&lt;div class=&quot;creds&quot;&gt;&lt;p&gt;';
	dynamic_sidebar( 'footer-right' );
    echo '&lt;/p&gt;&lt;/div&gt;';
}

// Register left side footer area
genesis_register_sidebar( array(
	'id'				=&gt; 'footer-left',
	'name'			=&gt; __( 'Footer Left', 'CHILD_THEME_NAME' ),
	'description'	=&gt; __( 'This is the left side of the footer.', 'CHILD_THEME_NAME' ),
) );

// Register right side footer area
genesis_register_sidebar( array(
	'id'				=&gt; 'footer-right',
	'name'			=&gt; __( 'Footer Right', 'CHILD_THEME_NAME' ),
	'description'	=&gt; __( 'This is the right side of the footer.', 'CHILD_THEME_NAME' ),
) );
</pre>
<p>The post <a href="http://www.wpsyntax.com/wordpress/customize-footer-metro-theme">How to Customize the Metro Theme Footer</a> appeared first on <a href="http://www.wpsyntax.com">WPSyntax</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.wpsyntax.com/wordpress/customize-footer-metro-theme/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Add Google CSE to WordPress &amp; Genesis Child Theme</title>
		<link>http://www.wpsyntax.com/wordpress/add-google-cse-to-genesis</link>
		<comments>http://www.wpsyntax.com/wordpress/add-google-cse-to-genesis#comments</comments>
		<pubDate>Sat, 09 Feb 2013 16:04:28 +0000</pubDate>
		<dc:creator>Rick R. Duncan</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Genesis]]></category>

		<guid isPermaLink="false">http://www.wpsyntax.com/?p=5230</guid>
		<description><![CDATA[<p>For those new to WordPress, I&#8217;m here to tell you that the internal search functionality of WordPress leaves a lot to be desired. Once your WordPress website has grown beyond a hundred pages, the core search functionality of WordPress is simply inadequate. I learned this valuable lesson a while back when working on a WordPress [...]</p><p>The post <a href="http://www.wpsyntax.com/wordpress/add-google-cse-to-genesis">Add Google CSE to WordPress &#038; Genesis Child Theme</a> appeared first on <a href="http://www.wpsyntax.com">WPSyntax</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>For those new to WordPress, I&#8217;m here to tell you that the internal search functionality of WordPress leaves a lot to be desired. Once your WordPress website has grown beyond a hundred pages, the core search functionality of WordPress is simply inadequate.</p>
<p>I learned this valuable lesson a while back when working on a WordPress recipe website that had over 1,500 recipes. Trying to find a particular recipe using the built-in search functionality of WordPress was fruitless. </p>
<p>Once I experienced how poorly search was being done with WordPress core I turned to the <a href="http://wordpress.org/extend/plugins/" title="wordpress plugin directory">WordPress Plugin Directory</a> to see if anyone had built a better search for WordPress.  </p>
<h3>Relevanssi &#8211; A Better Search</h3>
<p>Several search plugins were downloaded and tested. After performing numerous search tests, we decided on a plugin named <a href="http://wordpress.org/extend/plugins/relevanssi/">Relevanssi</a>. The Relevanssi plugin performed exceptionally well for that project and other websites where we needed better search results than WordPress core could handle.</p>
<p>As much as we love Relevanssi here at WPSyntax, there are some website owners that want to use <a href="http://www.google.com/cse/">Google&#8217;s Custom Search Engine</a> with WordPress. Since I&#8217;m always trying new things with WordPress and WPSyntax.com, I decided to make the switch from Relevanssi to Google CSE and see what happens. The results have been great so I thought I would share how I built it with the WordPress/Genesis community.</p>
<p>Enough background info, on to the tutorial!</p>
<h3>Step 1: Sign Up for Google CSE</h3>
<p>Head on over to <a href="http://www.google.com/cse/" title="Google CSE">http://www.google.com/cse/</a> and get signed up for Google CSE. We&#8217;re not going to cover the details here since it&#8217;s a pretty straight forward process. </p>
<p>Once you get signed up for Google CSE and have created your custom search engine, look at the left navigation bar and click the link labeled <strong>get code</strong>. Click that link and ONLY grab the value of the variable <em>cx</em>.</p>
<p>Save it as we&#8217;ll need it once we get to step #3.</p>
<p><img src="http://www.wpsyntax.com/wp-content/uploads/2013/02/google-cse-script.png" alt="google cse script" width="600" height="180" class="alignnone size-full wp-image-5279" /></p>
<p><strong>Take note:</strong> You can monetize your search results page by connecting your Google AdSense account to your Google CSE account. It&#8217;s what we did here on WPSyntax.com and can be seen on our <a href="http://www.wpsyntax.com/search?q=genesis+breadcrumbs" rel="nofollow">search results page</a>. </p>
<h3>Step 2: Functions.php</h3>
<p>The first thing we&#8217;ll need to do is filter the Genesis search form. Our customizations of the search form include changing the <em>action</em> of the form and the <em>name</em> of the text box. </p>
<p>Copy the code below and paste it into your theme&#8217;s functions.php file.</p>
<pre class="brush: php; title: ; notranslate">
add_filter( 'genesis_search_form', 'wps_search_form', 10, 4);
function wps_search_form( $form, $search_text, $button_text, $label ) {
	$onfocus = &quot; onfocus=\&quot;if (this.value == '$search_text') {this.value = '';}\&quot;&quot;;
	$onblur = &quot; onblur=\&quot;if (this.value == '') {this.value = '$search_text';}\&quot;&quot;;
	$form = '&lt;form method=&quot;get&quot; class=&quot;searchform search-form&quot; action=&quot;' . home_url() . '/search&quot; &gt;' . $label . '
	&lt;input type=&quot;text&quot; value=&quot;' . esc_attr( $search_text ) . '&quot; name=&quot;q&quot; class=&quot;s search-input&quot;' . $onfocus . $onblur . ' /&gt;
	&lt;input type=&quot;submit&quot; class=&quot;searchsubmit search-submit&quot; value=&quot;' . esc_attr( $button_text ) . '&quot; /&gt;
	&lt;/form&gt;';
	return $form;
}
</pre>
<p>Make sure the code above is pasted below the line:</p>
<pre>require_once( get_template_directory() . '/lib/init.php' );</pre>
<p>If you don&#8217;t want the text inside of the Genesis search box to read &#8220;search this website&#8221; be sure to read my tutorial titled &#8220;<a href="http://www.wpsyntax.com/wordpress/customize-the-genesis-search-box" title="customize genesis search box">How to Customize the Genesis Search Box</a>&#8221; to see how easy it is.</p>
<p>The second update we need to make to the functions.php file is adding the code below in order to make our page template widgetized. We added this so that we can easily add a search widget to the top of our SERP page.</p>
<pre class="brush: php; title: ; notranslate">
genesis_register_sidebar( array(
	'id'		=&gt; 'google-page',
	'name'		=&gt; __( 'Google SERP Page', 'CHILD_THEME_NAME' ),
	'description'	=&gt; __( 'This is the widget area of the Google SERP Page Template.', 'CHILD_THEME_NAME' ),
) );
</pre>
<h3>Step 3: Create New Page Template</h3>
<p>Step 3 involves creating a new page template and adding it into your current Genesis child theme folder. </p>
<p>Fire up your favorite text editor and create a Php file named page-google.php. </p>
<p>Next, take the content below and paste it onto your new file named page-google.php.</p>
<p><strong>Take note:</strong> Make sure you replace line 19 (var cx=&#8221;lots-of-numbers&#8221;) with the value you got from Google CSE in step #1.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
/*
 * Template Name: Google Search
 * 
 * Google SERP template for Genesis Child Themes.
 * 
 * @author     Rick R. Duncan
 * @link       http://www.wpsyntax.com
 * @license    http://www.opensource.org/licenses/gpl-license.php GPL v2.0 (or later)
 *
 */


// Insert Google code into &lt;head&gt; section of webpage
add_action('genesis_meta', 'wps_google_cse_meta', 15);
function wps_google_cse_meta() { ?&gt;
&lt;script type='text/javascript'&gt;
  (function() {
    var cx = '007935457329138067308:1d39zwetca0';
    var gcse = document.createElement('script'); gcse.type = 'text/javascript'; gcse.async = true;
    gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
        '//www.google.com/cse/cse.js?cx=' + cx;
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gcse, s);
  })();
&lt;/script&gt;
&lt;?php }

// Add custom body class to the head
add_filter( 'body_class', 'add_body_class' );
function add_body_class( $classes ) {
   $classes[] = 'google-search-page';
   return $classes;
}

add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' ); // Force Full-Width Layout
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' ); // Removes breadcrumbs
remove_action( 'genesis_post_title','genesis_do_post_title' ); // Removes post title
remove_action( 'genesis_post_content', 'genesis_do_post_content' ); // Removes content

// Build your custom page and add content
add_action( 'genesis_post_content', 'wps_do_content' );
function wps_do_content() { ?&gt;

&lt;div id=&quot;google-serps&quot;&gt;
	&lt;?php genesis_do_breadcrumbs(); ?&gt;
	&lt;?php the_title( '&lt;h1&gt;', '&lt;/h1&gt;' ); ?&gt;
	&lt;?php 
	// Obtain querystring value if present and display on-screen
	$q = $_GET[&quot;q&quot;];
	echo '&lt;strong&gt;You Searched For:&lt;/strong&gt; &lt;em&gt;'.$q.'&lt;/em&gt;';
	?&gt;
	&lt;?php
	if ( is_active_sidebar( 'google-page' ) ) {
		dynamic_sidebar( 'google-page' );	
	}
	?&gt;
	&lt;?php the_content();?&gt;
	&lt;gcse:searchresults-only linkTarget='_self'&gt;&lt;/gcse:searchresults-only&gt; 
&lt;/div&gt;
&lt;?php }

genesis();
</pre>
<p>Save the file and FTP/upload it into your current Genesis child theme folder.</p>
<h3>Step 4: Create a New Page</h3>
<p>Create a new page. Pages -> Add New. </p>
<p>Name your page <strong>Search Results</strong> and set the permalink to <strong>search</strong>.<br />
<img src="http://www.wpsyntax.com/wp-content/uploads/2013/02/serp.png" alt="serp" width="379" height="117" class="alignnone size-full wp-image-5423" /></p>
<p>Look to the right inside the Page Attributes box and change the page template to Google Search. Look at image below for details.<br />
<img src="http://www.wpsyntax.com/wp-content/uploads/2013/02/google-search.png" alt="google search template" width="296" height="310" class="alignnone size-full wp-image-5269" /></p>
<p>Publish your page.</p>
<h3>Step 5: Search Widget</h3>
<p>As you can see on our <a href="http://www.wpsyntax.com/search?q=genesis+breadcrumbs" rel="nofollow">search result page</a>, we have included a search box right above the search results. </p>
<p>To make that happen go to Appearance -> Widgets.</p>
<p>Drag the search widget into the Google SERP Page widget box. See image below.</p>
<p><img src="http://www.wpsyntax.com/wp-content/uploads/2013/02/google-serp-widget.png" alt="google search widget" width="299" height="166" class="alignnone size-full wp-image-5275" /></p>
<p>At this point, all searches being done on your website should now go to your new &#8220;search&#8221; page using Google to power the results.</p>
<p><strong>Bonus</strong> &#8211; Monitoring the searches on your website is a tactic that digital marketers should be using to assist their content strategy. Google Analytics makes it really easy to monitor your on-site search activity by giving you the ability to create a custom dashboard for site searches. </p>
<p>Let me know in the comments below if you would like to see a tutorial on how that&#8217;s done.</p>
<p>The post <a href="http://www.wpsyntax.com/wordpress/add-google-cse-to-genesis">Add Google CSE to WordPress &#038; Genesis Child Theme</a> appeared first on <a href="http://www.wpsyntax.com">WPSyntax</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.wpsyntax.com/wordpress/add-google-cse-to-genesis/feed</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>How To Add a YouTube Video to WordPress</title>
		<link>http://www.wpsyntax.com/wordpress/add-youtube-video-to-wordpress</link>
		<comments>http://www.wpsyntax.com/wordpress/add-youtube-video-to-wordpress#comments</comments>
		<pubDate>Thu, 31 Jan 2013 10:00:12 +0000</pubDate>
		<dc:creator>Rick R. Duncan</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.wpsyntax.com/?p=5085</guid>
		<description><![CDATA[<p>Adding a YouTube video to WordPress no longer requires a plugin. If you can copy/paste, then you can add a YouTube video to WordPress in only a matter of seconds. The method outlined below works for both pages and posts. For this tutorial, we&#8217;ll use the term page to indicate both pages and posts. Embed [...]</p><p>The post <a href="http://www.wpsyntax.com/wordpress/add-youtube-video-to-wordpress">How To Add a YouTube Video to WordPress</a> appeared first on <a href="http://www.wpsyntax.com">WPSyntax</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>Adding a YouTube video to WordPress no longer requires a plugin. If you can copy/paste, then you can add a YouTube video to WordPress in only a matter of seconds. The method outlined below works for both pages and posts. For this tutorial, we&#8217;ll use the term <em>page</em> to indicate both pages and posts.</p>
<h3>Embed Video Using a URL</h3>
<p>The easiest and fastest way to embed a YouTube video into WordPress is to simply paste the video&#8217;s URL into your page on a line by itself. Go visit YouTube and find your video. Look in your browser&#8217;s address bar and copy the URL into your clipboard. Ctrl+C for Windows users and Command+C for Mac users. An example URL is shown in the image below:</p>
<p><img class="alignnone size-full wp-image-5087" alt="YouTube URL" src="http://www.wpsyntax.com/wp-content/uploads/2013/01/youtube-url.png" width="288" height="31" /></p>
<p>Now that you have the URL in your clipboard, go back to your WordPress editor and on a new line, paste the URL into your page. This can be done in &#8220;Visual Mode&#8221; or &#8220;Text Mode.&#8221; To paste; Ctrl+V on Windows or Command+V on a Mac. Make sure that the URL you pasted <strong>does not</strong> turn into a hyperlink. If the URL is an active hyperlink, the video will not be displayed.</p>
<p>Bam! You&#8217;re done. You should now see the video in your page. No plugin, no coding. Easy huh?</p>
<p>Need to customize the size? We&#8217;ve got you covered. Scroll below the video to see how it&#8217;s done.</p>
<p><iframe src="http://www.youtube.com/embed/dMH0bHeiRNg?rel=0" height="480" width="640" allowfullscreen="" frameborder="0"></iframe></p>
<h3>Embed Video Using an IFrame</h3>
<p>To embed the video in order to control the height, width and other settings, start as we did in the example above where you go to the video on YouTube using your web browser and follow the 4 steps below.</p>
<ol>
<li>Click on Share</li>
<li>Click on Embed</li>
<li>Select the video size</li>
<li>Copy the IFrame code highlighted in blue in the box</li>
</ol>
<p><img class="alignnone size-full wp-image-5104" alt="youtube iframe settings" src="http://www.wpsyntax.com/wp-content/uploads/2013/01/youtube-iframe.png" width="649" height="377" /></p>
<p>Now go back to WordPress and paste the code into a new line in your page. Bam! You&#8217;re done.</p>
<h3>Further Customizations?</h3>
<p>What we outlined above should be enough for 95% of the users that need to add a YouTube video to WordPress. To learn what else can be customized, check out the <a href="https://developers.google.com/youtube/player_parameters">YouTube Developers page</a>.</p>
<p>The post <a href="http://www.wpsyntax.com/wordpress/add-youtube-video-to-wordpress">How To Add a YouTube Video to WordPress</a> appeared first on <a href="http://www.wpsyntax.com">WPSyntax</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.wpsyntax.com/wordpress/add-youtube-video-to-wordpress/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Remove the Genesis Page Title</title>
		<link>http://www.wpsyntax.com/wordpress/remove-genesis-page-title</link>
		<comments>http://www.wpsyntax.com/wordpress/remove-genesis-page-title#comments</comments>
		<pubDate>Wed, 30 Jan 2013 12:40:03 +0000</pubDate>
		<dc:creator>Rick R. Duncan</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.wpsyntax.com/?p=5063</guid>
		<description><![CDATA[<p>Under certain circumstances, you might have the need to remove the Genesis Page Title from your posts, pages or both. The WP Snippets below cover several methods in which you can remove page titles from Genesis themes. Requirements StudioPress child theme &#038; Genesis Framework Access to functions.php file Ability to FTP to your website should [...]</p><p>The post <a href="http://www.wpsyntax.com/wordpress/remove-genesis-page-title">How to Remove the Genesis Page Title</a> appeared first on <a href="http://www.wpsyntax.com">WPSyntax</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>Under certain circumstances, you might have the need to remove the <strong>Genesis Page Title</strong> from your posts, pages or both. The WP Snippets below cover several methods in which you can remove page titles from Genesis themes.</p>
<h3>Requirements</h3>
<ul>
<li>StudioPress child theme &#038; Genesis Framework</li>
<li>Access to functions.php file</li>
<li>Ability to FTP to your website should you make a mistake and need to roll-back your changes</li>
</ul>
<h3>WP Snippets</h3>
<pre class="brush: php; title: ; notranslate">

/** Remove page titles site wide (posts &amp; pages) */
remove_action('genesis_post_title', 'genesis_do_post_title');


/** Remove page title for a specific page */
/** Change '28' to your page id */
add_action( 'get_header', 'child_remove_page_titles' );
function child_remove_page_titles() {
    if ( is_page( 28 ) ) {
        remove_action( 'genesis_post_title', 'genesis_do_post_title' );
    }
}


/** Remove page title for multiple pages */
/** Change '3645' and '4953' to match your needs */
add_action('get_header', 'child_remove_page_titles');
function child_remove_page_titles() {
    $pages = array( 3645,4953 );
    if ( is_page($pages) ) {
        remove_action( 'genesis_post_title', 'genesis_do_post_title' );
    }
}


/** Remove page titles from all single posts &amp; pages */
add_action( 'get_header', 'child_remove_titles' );
function child_remove_titles() {
    if ( is_singular() ){
        remove_action( 'genesis_post_title', 'genesis_do_post_title' );
    }
}

/** Remove page titles from specific posts */
add_action('get_header', 'child_remove_post_titles');
function child_remove_post_titles() {
    $pages = array( 4953,4648 );
    if ( is_single( $pages ) ) {
        remove_action( 'genesis_post_title', 'genesis_do_post_title' );
    }
}

</pre>
<h3>Instructions</h3>
<p>Copy the specific snippet of code above that fits your needs and paste it into your child theme&#8217;s <strong><em>functions.php</em></strong> file anywhere below:</p>
<pre>require_once( get_template_directory() . '/lib/init.php' );</pre>
<p>The post <a href="http://www.wpsyntax.com/wordpress/remove-genesis-page-title">How to Remove the Genesis Page Title</a> appeared first on <a href="http://www.wpsyntax.com">WPSyntax</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.wpsyntax.com/wordpress/remove-genesis-page-title/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>How To Add A Genesis Comment Policy Box to a StudioPress Child Theme</title>
		<link>http://www.wpsyntax.com/wordpress/genesis-comment-policy-box</link>
		<comments>http://www.wpsyntax.com/wordpress/genesis-comment-policy-box#comments</comments>
		<pubDate>Mon, 28 Jan 2013 12:15:40 +0000</pubDate>
		<dc:creator>Rick R. Duncan</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Genesis]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.wpsyntax.com/?p=4953</guid>
		<description><![CDATA[<p>Here&#8217;s an intermediate WordPress tutorial that demonstrates the simple steps involved in adding a Genesis comment policy box to your StudioPress child theme. The code below will add a comment policy statement directly below the text Speak Your Mind, the default text used above the comment form for StudioPress themes. Many people don&#8217;t like the [...]</p><p>The post <a href="http://www.wpsyntax.com/wordpress/genesis-comment-policy-box">How To Add A Genesis Comment Policy Box to a StudioPress Child Theme</a> appeared first on <a href="http://www.wpsyntax.com">WPSyntax</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>Here&#8217;s an intermediate WordPress tutorial that demonstrates the simple steps involved in adding a Genesis comment policy box to your StudioPress child theme.</p>
<p>The code below will add a comment policy statement directly below the text <em>Speak Your Mind</em>, the default text used above the comment form for StudioPress themes. Many people don&#8217;t like the label <em>Speak Your Mind</em> and a previous WordPress tutorial titled <a href="http://www.wpsyntax.com/wordpress/how-to-modify-modify-speak-your-mind" title="modify speak your mind">How to Modify Speak Your Mind</a> shows how easy it is to change the label to something you prefer. </p>
<p>To add a Genesis comment policy box to your theme, copy the code below and place it within your theme&#8217;s functions.php file. In order for the code below to work properly, the code should be placed in your child theme’s functions.php file after this code:</p>
<pre>require_once( get_template_directory() . '/lib/init.php' );</pre>
<pre class="brush: php; title: ; notranslate">
/** Modify comment form */
add_filter('genesis_comment_form_args', 'minimum_comment_form_args');
function minimum_comment_form_args($args) {
	$args['title_reply'] = 'Leave a Comment';
	$args['comment_notes_before'] = '&lt;p class=&quot;comment-policy&quot;&gt;' . __( 'Please, only use your &lt;strong&gt;real name&lt;/strong&gt;, not your business name or keywords. We moderate all comments before they appear on our website and will delete and &lt;em&gt;mark as spam&lt;/em&gt; anyone not using their real name.' ) . ( $req ? $required_text : '' ) . '&lt;/p&gt;';
	return $args;
}
</pre>
<p>The image below demonstrates how the code will place a comment policy within your page.</p>
<p><img src="http://www.wpsyntax.com/wp-content/uploads/2013/01/comment-policy-box.png" alt="comment policy box" width="344" height="194" class="alignnone size-full wp-image-4955" /></p>
<p>Take note that the comment policy statement is right below the H3 title in this case &#8220;Leave a Comment.&#8217; If you prefer to have the comment policy display under the form, just above the submit button, change Line 5 in the code above to what you see below. </p>
<p><strong>Take note</strong> that you are simply changing comment_notes_before to comment_notes_after. Everything else remains the same. The image below details how it looks on screen when changing the location to below the form directly above the submit button.</p>
<pre class="brush: php; title: ; notranslate"> $args['comment_notes_after'] </pre>
<p><img src="http://www.wpsyntax.com/wp-content/uploads/2013/01/comment-policy-box-2.png" alt="genesis comment policy box" width="344" height="194" class="alignnone size-full wp-image-4986" /></p>
<p>So there you have it. A cut &#038; paste wp snippet to easily add a Genesis Comment Box to your StudioPress child theme.</p>
<p>The post <a href="http://www.wpsyntax.com/wordpress/genesis-comment-policy-box">How To Add A Genesis Comment Policy Box to a StudioPress Child Theme</a> appeared first on <a href="http://www.wpsyntax.com">WPSyntax</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.wpsyntax.com/wordpress/genesis-comment-policy-box/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>How To: Customize WordPress Widget Title</title>
		<link>http://www.wpsyntax.com/wordpress/customize-wordpress-widget-title</link>
		<comments>http://www.wpsyntax.com/wordpress/customize-wordpress-widget-title#comments</comments>
		<pubDate>Thu, 24 Jan 2013 15:15:23 +0000</pubDate>
		<dc:creator>Rick R. Duncan</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Genesis]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.wpsyntax.com/?p=4648</guid>
		<description><![CDATA[<p>Recently, several readers of WPSyntax.com have asked how to customize their WordPress widget titles. The questions we&#8217;ll answer today include: How can I add an image to my widget title? How can I make my widget title two different colors? How can I to add link in a widget title? Can I make text widget [...]</p><p>The post <a href="http://www.wpsyntax.com/wordpress/customize-wordpress-widget-title">How To: Customize WordPress Widget Title</a> appeared first on <a href="http://www.wpsyntax.com">WPSyntax</a>.</p>]]></description>
				<content:encoded><![CDATA[<p><img src="http://www.wpsyntax.com/wp-content/uploads/2013/01/php.png" alt="php code" width="700" height="200" class="alignnone size-full wp-image-4780" /><br />
Recently, several readers of WPSyntax.com have asked how to customize their WordPress widget titles. The questions we&#8217;ll answer today include:</p>
<ul>
<li>How can I add an image to my widget title?</li>
<li>How can I make my widget title two different colors?</li>
<li>How can I to add link in a widget title?</li>
<li>Can I make text widget header a link?</li>
<li>Is there a way to make a widget title clickable?</li>
</ul>
<p>To answer the questions above, we&#8217;ll demonstrate 4 ways to customize your WordPress widget title that range from simple CSS to an advanced method that involves overriding the text widget class in order to make your widget title clickable. </p>
<h3>Background Info</h3>
<p>By default, WordPress does not allow you to enter HTML into your widget titles. Let me back up to be a little more clear. You can enter HTML into your widget titles, but by default, WordPress will strip out all of your HTML code when you go to save your widget settings.</p>
<p>Take a look at the image below to see four variations of the widget title to give you an idea as to what customizations are possible using the four methods we&#8217;re about to cover.</p>
<p><img src="http://www.wpsyntax.com/wp-content/uploads/2013/01/wordpress-widget-titles.png" alt="wordpress widget title" width="340" height="240" class="alignnone size-full wp-image-4742" /></p>
<h3>Custom WordPress Widget Title &#8211; Method 1</h3>
<p><img src="http://www.wpsyntax.com/wp-content/uploads/2013/01/wordpress-widget-title-1.png" alt="custom wordpress widget title" width="312" height="60" class="alignnone size-full wp-image-4748" /><br />
The first customization (shown above) is the easiest of all four methods. By simply using CSS, you can make numerous design tweaks to your widget title. </p>
<h4>CSS Code</h4>
<p>The CSS code below is what was used on an older website of mine running WordPress and the Genesis Framework. Your specific class name and/or <a href="http://www.w3.org/TR/CSS2/selector.html" class="extlnk">selector</a> might be different.</p>
<pre class="brush: css; title: ; notranslate">
.widget-area .widget_recent_entries h4 {
    background: url(&quot;images/bg-posts.png&quot;) no-repeat scroll left 6px transparent;
    padding-left: 40px;
}
.widget-area h4 {
    border-bottom: 4px double #ccc;
    border-top: 4px double #ccc;
    font-size: 24px;
}
</pre>
<p>Unfortunately, this particular method will not allow you to make a widget title a hyperlink or clickable. You need to skip down to method 4 if you want to learn how to make your widget title clickable.</p>
<h3>Custom WordPress Widget Title &#8211; Method 2</h3>
<p><img src="http://www.wpsyntax.com/wp-content/uploads/2013/01/wordpress-widget-title-2.png" alt="custom wordpress widget title" width="312" height="60" class="alignnone size-full wp-image-4753" /><br />
The technique shown above comes from <a href="http://www.briangardner.com/">Brian Gardner&#8217;s website</a>. When I asked how he accomplished the customization, he simply said &#8220;<a href="http://twitter.com/rickrduncan" title="Rick R Duncan on Twitter">@rickrduncan</a> It&#8217;s simple &#8212; just re-registered the primary sidebar adding the span class like so &#8212; <a class="extlnk" href="http://b.rian.cc/RCHQU6">http://b.rian.cc/RCHQU6</a>.&#8221;</p>
<p>For users of the Genesis Framework, simply copy the code below and paste it into your theme&#8217;s functions.php file.</p>
<h4>Php Code</h4>
<p>Place this code into your theme&#8217;s functions.php file.</p>
<pre class="brush: php; title: ; notranslate">
/** Register widget areas */
/** Source: www.wpsyntax.com */
genesis_register_sidebar(array(
	'name'			=&gt; 'Primary Sidebar',
	'id'				=&gt; 'sidebar',
	'description'	=&gt; 'This is the primary sidebar if you are using a two or three column site layout option.',
	'before_title'	=&gt; '&lt;h4 class=&quot;widgettitle&quot;&gt;&lt;span class=&quot;sidebar-title&quot;&gt;','after_title'=&gt;'&lt;/span&gt;&lt;/h4&gt;'
));
</pre>
<h4>HTML Code</h4>
<p>This is the HTML code generated by WordPress. As you can see in the code below, the Php code that you entered into functions.php will add a &lt;SPAN&gt; tag with the class name &#8220;sidebar-title&#8221; inside your H4 title tag.</p>
<pre class="brush: xml; title: ; notranslate">
&lt;h4 class=&quot;widgettitle&quot;&gt;
&lt;span class=&quot;sidebar-title&quot;&gt;Recent Posts&lt;/span&gt;
&lt;/h4&gt;
</pre>
<h4>CSS Code</h4>
<p>This is the CSS code that will likely need to be customized for your specific implementation.</p>
<pre class="brush: css; title: ; notranslate">
.widgettitle {
    background: url(&quot;images/lines.png&quot;) repeat scroll 0 0 transparent;
    text-align: center;
}
.sidebar-title {
    padding: 0 0.5rem;
}
</pre>
<p>This customization is really easy and quick to implement. Take note however that it encompasses everything (every word in the H4 tag) into the &#8220;SPAN&#8221; tag.</p>
<p>Some people have asked how to put only the first word into a &lt;SPAN&gt; tag. Well, that&#8217;s easy too and it&#8217;s our third tutorial on how to customize the WordPress widget title.</p>
<h3>Custom WordPress Widget Title &#8211; Method 3</h3>
<p><img src="http://www.wpsyntax.com/wp-content/uploads/2013/01/wordpress-widget-title-3.png" alt="custom wordpress widget title" width="312" height="60" class="alignnone size-full wp-image-4758" /><br />
As seen in the image above, our third method demonstrates how to wrap the first word of a WordPress widget title into a &lt;SPAN&gt; tag. </p>
<p>To accomplish this customization, you need to add a filter and a custom function into your theme&#8217;s functions.php file. This can be used for all users of WordPress and those using the Genesis Framework.</p>
<h4>Php Code</h4>
<p>Place this code into your theme&#8217;s functions.php file.</p>
<pre class="brush: php; title: ; notranslate">
/** Wrap first word of widget title into a span tag */
/** Source: www.wpsyntax.com */
function child_span_widgets( $old_title ) {
	$title = explode( &quot; &quot;, $old_title, 2 );
	$titleNew = &quot;&lt;span&gt;$title[0]&lt;/span&gt; $title[1]&quot;;
	return $titleNew;
}
add_filter ( 'widget_title', 'child_span_widgets' );
</pre>
<h4>HTML Code</h4>
<p>The HTML code shown below is what&#8217;s generated by WordPress.</p>
<pre class="brush: xml; title: ; notranslate">
&lt;h4 class=&quot;widgettitle&quot;&gt;
&lt;span&gt;Recent&lt;/span&gt;
Posts
&lt;/h4&gt;
</pre>
<h4>CSS Code</h4>
<p>The CSS below that makes the first word Orange and underlines both the entire title and the orange portion.</p>
<pre class="brush: css; title: ; notranslate">
.widgettitle {
    border-bottom: 1px solid #DDDDDD;
}

.widgettitle span {
    border-bottom: 1px solid #F0591A;
    color: #F0591A;
    display: block;
    float: left;
    margin: 0 5px 0 0;
}

</pre>
<p>Now go to your widget of choice and simply enter two or more words and the first word will be wrapped in a &lt;SPAN&gt; tag using your style defined in the CSS.</p>
<p>This method gives you a little more control over the styling of your widget title by allowing you to customize the first word. But what about if you want to put any HTML you wanted into the widget title? Keep reading as method #3 does just that!</p>
<h3>Custom WordPress Widget Title &#8211; Method 3</h3>
<p><img src="http://www.wpsyntax.com/wp-content/uploads/2013/01/wordpress-widget-title-4.png" alt="wordpress widget title" width="312" height="60" class="alignnone size-full wp-image-4760" /></p>
<p>This is by far the most difficult yet robust method in order to customize your WordPress widget title. Using this technique, you can enter HTML directly into the title of your widget. You can make your text widget header a link which will of course make it clickable.</p>
<p>The image below shows a snippet of HTML code entered directly into the widget title text-box.</p>
<p><img src="http://www.wpsyntax.com/wp-content/uploads/2013/01/wordpress-widget-title-4a.png" alt="clickable widget title" width="268" height="130" class="alignnone size-full wp-image-4772" /></p>
<p>WordPress core is using the Php function <a class="extlnk" href="http://php.net/manual/en/function.strip-tags.php">strip_tags()</a> when saving the widget title into the database. This causes your HTML or any Php code to be stripped away from the widget title.</p>
<p>Since I haven&#8217;t been able to locate a filter to use in the functions.php file that would allow us to save HTML into the widget title, the method we&#8217;ll use involves overriding the standard text widget plugin. This method is going to be upgrade safe and called from our theme&#8217;s functions.php file. We&#8217;re only covering the &#8220;text widget&#8221; for our example but these steps can be duplicated for any other widget you want to override.</p>
<h4>Step 1</h4>
<p>Fire up your favorite text editor and create a new file named custom_widgets.php.</p>
<p>Inside your WordPress folder, locate and open the file <em>wp-includes/default-widgets.php</em>. Look for the entire class declaration code, starting with:</p>
<pre class="brush: php; title: ; notranslate"> class WP_Widget_Text extends WP_Widget { </pre>
<p>and copy the entire class code into the file you created that we named custom_widgets.php.</p>
<p>Next, rename the class, by changing the class declaration to:</p>
<pre class="brush: php; title: ; notranslate"> class WP_Widget_Text_Custom extends WP_Widget_Text { </pre>
<h4>Step 2</h4>
<p>Instruct WordPress to use our custom widget code for <strong>text widgets</strong> instead of the standard version supplied by WordPress. Copy the code below and paste it into your theme&#8217;s functions.php file.</p>
<pre class="brush: php; title: ; notranslate">
if ( include( 'custom_widgets.php' ) ){
     add_action( &quot;widgets_init&quot;, &quot;load_custom_widgets&quot; );
}
function load_custom_widgets() {
    unregister_widget( &quot;WP_Widget_Text&quot; );
    register_widget( &quot;WP_Widget_Text_Custom&quot; );
}
</pre>
<p><strong>NOTE:</strong> The code you copied above needs to be placed into your theme&#8217;s functions.php file anywhere after:</p>
<pre>require_once( get_template_directory() . '/lib/init.php' );</pre>
<p>At this point, if everything is saved as-is nothing new is happening and hopefully nothing is broken. Since we haven&#8217;t done anything except to override the standard plugin text widget, everything should still be working without errors and without saving HTML.</p>
<h4>Step 3</h4>
<p>Now the magic happens! Since we now have our own version of the text widget plugin working we&#8217;ll make some tweaks to it in order to allow HTML code be entered and saved into the widget title.</p>
<p>Inside of custom_widgets.php locate the function <strong>update( $new_instance, $old_instance )</strong> and find the line of code:</p>
<pre class="brush: php; title: ; notranslate"> $instance['title'] = strip_tags($new_instance['title']); </pre>
<p>Replace it with:</p>
<pre class="brush: php; title: ; notranslate">
if (current_user_can('unfiltered_html')){
     $instance['title'] = $new_instance['title'];
}
else {
     strip_tags($new_instance['title']);
}
</pre>
<p>The code above first runs a security check to make sure the user is allowed to enter HTML (<a href="http://codex.wordpress.org/Roles_and_Capabilities#Capabilities">learn more at codex</a>) and if true will save the content with the HTML intact. Otherwise the data is saved but the HTML is stripped out.</p>
<p>Now locate <strong>function form( $instance )</strong> and find the line of code:</p>
<pre class="brush: php; title: ; notranslate"> $title = strip_tags($instance['title']); </pre>
<p>and replace it with:</p>
<pre class="brush: php; title: ; notranslate"> $title = $instance['title']; </pre>
<p>To make it easier on you, I&#8217;ve created a zip file of custom_widgets.php that you can download <a href="http://www.wpsyntax.com/downloads/custom_widgets.php.zip" rel="nofollow">here</a>.</p>
<p><strong>In closing:</strong> While this method is upgrade safe there is always the possibility that a security patch can come out that impacts the file default-widget.php. If this happens, you might be required you to update your custom implementation to take advantage of the security changes. You can keep up with the <a class="extlnk" href="http://codex.wordpress.org/Category:Changelogs">WordPress changelogs here</a>.</p>
<p>The post <a href="http://www.wpsyntax.com/wordpress/customize-wordpress-widget-title">How To: Customize WordPress Widget Title</a> appeared first on <a href="http://www.wpsyntax.com">WPSyntax</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.wpsyntax.com/wordpress/customize-wordpress-widget-title/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>How To Build a WordPress Test Site</title>
		<link>http://www.wpsyntax.com/wordpress/how-to-build-wordpress-test-site</link>
		<comments>http://www.wpsyntax.com/wordpress/how-to-build-wordpress-test-site#comments</comments>
		<pubDate>Tue, 01 Jan 2013 13:50:27 +0000</pubDate>
		<dc:creator>Rick R. Duncan</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.wpsyntax.com/?p=4551</guid>
		<description><![CDATA[<p>It&#8217;s easier than you think to build a WordPress demo site or as others call it, a WordPress test site. Today&#8217;s WordPress tutorial will demonstrate the steps necessary to create a new OR convert an existing standard WordPress website into a network of sites by using the multi-site feature. By the end of this tutorial [...]</p><p>The post <a href="http://www.wpsyntax.com/wordpress/how-to-build-wordpress-test-site">How To Build a WordPress Test Site</a> appeared first on <a href="http://www.wpsyntax.com">WPSyntax</a>.</p>]]></description>
				<content:encoded><![CDATA[<p><img class="frame" src="http://www.wpsyntax.com/wp-content/uploads/2013/01/construction.png" alt="construction" width="654" height="244" class="alignnone size-full wp-image-5363" /><br />
It&#8217;s easier than you think to build a WordPress demo site or as others call it, a WordPress test site.</p>
<p>Today&#8217;s WordPress tutorial will demonstrate the steps necessary to create a new OR convert an existing standard WordPress website into a network of sites by using the multi-site feature. By the end of this tutorial you will have created a WordPress multi-site network that will allow you to run a collection of websites that all share the same WordPress installation.</p>
<p>The reasons to build a WordPress test site can vary. Several reasons include:</p>
<ol>
<li>WordPress design agencies might want to build a client&#8217;s website on a public accessible server</li>
<li>WordPress theme builders might want to showcase their premium WordPress themes on a sub-domain using sub-directories</li>
<li>WordPress plugin builders might be testing a new piece of functionality on their latest version</li>
<li>the reasons go on&#8230;</li>
</ol>
<p>For this particular WordPress tutorial we&#8217;ll be providing information on how to build a WordPress test site on a sub-domain using sub-directories. Our wp tutorial will cover the steps necessary to build your test website using URLs as demonstrated below.</p>
<ul>
<li>http://demo.wpsyntax.com</li>
<li>http://demo.wpsyntax.com/minimum</li>
<li>http://demo.wpsyntax.com/theme2</li>
<li>http://demo.wpsyntax.com/theme3</li>
</ul>
<p>OK, lets get started!</p>
<h3>Minimum Requirements</h3>
<p>WordPress 3.0 or higher is required.</p>
<p>If you are converting an existing WordPress install then please disable all plugins and <a class="extlnk" href="http://codex.wordpress.org/WordPress_Backups">backup your database and files</a>.</p>
<h3>Step 1: Modify WP-Config.php</h3>
<p>FTP to your website (for us it&#8217;s demo.wpsyntax.com) and make a backup copy of wp-config.php in case something goes wrong. We usually make a copy and name the backups wp-config.php.bkup. Feel free to do the same or use your own naming convention.</p>
<p>Next, download wp-config.php found in the root of your WordPress install. Open the file in your favorite source code editor and look for the line <strong><em>/* That&#8217;s all, stop editing! Happy blogging. */</em></strong> and add an empty line just before it. Place this code into your file:</p>
<pre class="brush: php; title: ; notranslate">
define('WP_ALLOW_MULTISITE', true);
</pre>
<p>Your file should look like the image below.<br />
<img class="size-full wp-image-4588 alignnone" alt="wordpress test site image 1" src="http://www.wpsyntax.com/wp-content/uploads/2012/12/wordpress-test-site-1.png" width="640" height="272" /></p>
<p>The line of code you added into wp-config.php instructs WordPress to enable the Network Administration panel and prep the network install process.</p>
<p>Now, save the file and upload it back to your website.</p>
<h2>Step 2: Enable &amp; Configure WordPress Networks</h2>
<p>Go to the Admin dashboard and click on <em>Tools</em> -&gt; <em>Network Setup</em><br />
<img class="size-full wp-image-4590 alignnone" alt="wordpress test site 2" src="http://www.wpsyntax.com/wp-content/uploads/2012/12/wordpress-test-site-2.png" width="307" height="117" /></p>
<p>The next screen you see needs to be filled in carefully. As I mentioned at the beginning of this tutorial, we&#8217;re going to be creating a WordPress test site on a sub-domain using <strong>sub-directories</strong>.</p>
<p>Take a look at the image below to see that I selected &#8220;Sub-directories&#8221; and entered values for the &#8220;Network Title&#8221; and &#8220;Admin E-mail Address.&#8221;</p>
<p><a href="http://www.wpsyntax.com/wp-content/uploads/2012/12/wordpress-test-site-3.png"><img class="size-medium wp-image-4599 alignnone" alt="wordpress-test-site-3" src="http://www.wpsyntax.com/wp-content/uploads/2012/12/wordpress-test-site-3-300x186.png" width="300" height="186" /></a></p>
<p>Once you have everything filled out, click on the &#8220;install&#8221; button.</p>
<h3>Step 3: Enabling the Network</h3>
<p>At this point WordPress works some magic under the covers and then presents you with a screen containing instructions informing you that the next steps involve editing your .htaccess file and your wp-config.php file once again. As suggested by WordPress, it&#8217;s always best to make a backup of your files before making the edits. The image below details the next steps to enabling the network on WordPress.</p>
<p><a href="http://www.wpsyntax.com/wp-content/uploads/2012/12/wordpress-test-site-4.png"><img class="size-medium wp-image-4604 alignnone" alt="wordpress test site 4" src="http://www.wpsyntax.com/wp-content/uploads/2012/12/wordpress-test-site-4-300x192.png" width="300" height="192" /></a></p>
<p>To be clear, the code you add to your wp-config.php file will be placed immediately following the one line of code you entered in step 1 of this process.</p>
<p>Once you made your changes to .htaccess and wp-config.php you will need to save the files and upload them back to your web server. you will need to log into WordPress once again. At this point you should now see that you have successfully created a WordPress test site that&#8217;s perfect for theme developers showcasing their themes or for developers to build test sites for clients.</p>
<p>If you did everything right, your dashboard should now include &#8220;My Sites&#8221; in the two areas seen below in the image below.<br />
<img src="http://www.wpsyntax.com/wp-content/uploads/2013/01/wordpress-mysites.png" alt="wordpress my sites" width="285" height="110" class="alignnone size-full wp-image-5321" /></p>
<p>The post <a href="http://www.wpsyntax.com/wordpress/how-to-build-wordpress-test-site">How To Build a WordPress Test Site</a> appeared first on <a href="http://www.wpsyntax.com">WPSyntax</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.wpsyntax.com/wordpress/how-to-build-wordpress-test-site/feed</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>How To Build a Collapsible Responsive Menu for Genesis</title>
		<link>http://www.wpsyntax.com/wordpress/collapsible-responsive-menu-for-genesis</link>
		<comments>http://www.wpsyntax.com/wordpress/collapsible-responsive-menu-for-genesis#comments</comments>
		<pubDate>Sat, 22 Dec 2012 20:13:29 +0000</pubDate>
		<dc:creator>Rick R. Duncan</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Genesis]]></category>
		<category><![CDATA[Responsive Design]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.wpsyntax.com/?p=4369</guid>
		<description><![CDATA[<p>Updated March 3, 2013 — Thanks to several readers questioning whether or not this tutorial still works after the Genesis 1.9 release, I&#8217;ve revisited this code and realized that in fact it was no longer working properly. I&#8217;ve updated this tutorial and now it once again works with Genesis 1.91, the eleven40 theme using a [...]</p><p>The post <a href="http://www.wpsyntax.com/wordpress/collapsible-responsive-menu-for-genesis">How To Build a Collapsible Responsive Menu for Genesis</a> appeared first on <a href="http://www.wpsyntax.com">WPSyntax</a>.</p>]]></description>
				<content:encoded><![CDATA[<p><img src="http://www.wpsyntax.com/wp-content/uploads/2012/12/responsive-design.png" alt="responsive design" width="700" height="280" class="alignnone size-full wp-image-4728" /></p>
<div style="border:1px solid #ff0000;margin:25px 0;padding:12px;"><strong>Updated March 3, 2013 — </strong>Thanks to several readers questioning whether or not this tutorial still works after the Genesis 1.9 release, I&#8217;ve revisited this code and realized that in fact it was no longer working properly. I&#8217;ve updated this tutorial and now it once again works with Genesis 1.91, the eleven40 theme using a custom menu in the header right widget. You can see the code in action on my <a href="http://www.smoothieninja.com/" title="smoothie recipes">Smoothie recipe</a> website.</div>
<p>Most premium WordPress theme builders that offer responsive themes are lacking user-friendly navigation. Most premium WordPress theme builders simply stack the menu when their themes are viewed on smartphones.</p>
<p>I&#8217;m not a fan of that stacking the menu upon page load because it takes up valuable space on the screen. Forcing a user to scroll to read your article is a poor user experience.</p>
<p><a href="http://www.wpsyntax.com/wp-content/uploads/2012/12/studiopress-agency-mobile.png"><img class="size-medium wp-image-4376 alignright" alt="studiopress agency theme mobile" src="http://www.wpsyntax.com/wp-content/uploads/2012/12/studiopress-agency-mobile-241x300.png" width="241" height="300" /></a>A classic case of the header and navigation taking up too much screen space can be seen on the Agency theme from StudioPress. Note: I&#8217;m a huge fan of StudioPress, but not everyone is pixel-perfect. Including me!</p>
<p>The Agency theme is responsive and a great skin, but I&#8217;m not a fan of the menu system. I feel that it can be improved upon.</p>
<h3>Responsive Menu Choices</h3>
<p>I&#8217;m seeing two trends in creating menus using responsive web designs.</p>
<p><strong>Select Boxes —</strong> Many premium theme builders are changing their menu to be a select box once the screen-width decreases to a specific width. That solution is better than simply stacking your menu, but I&#8217;m not a fan.</p>
<p>The two images below demonstrate a responsive menu using the select box. The first image illustrates how the navigation looks when you&#8217;re not interacting with the menu. It&#8217;s unobtrusive, yet is not (in my opinion) what I think users are expecting to see when navigating a website.</p>
<p>The second image illustrates what happens once the user engages with the responsive menu. I don&#8217;t think this provides an optimal navigating experience.</p>
<div class="one-half first"><a href="http://www.wpsyntax.com/wp-content/uploads/2012/12/reboot-1.png"><img class="alignnone size-medium wp-image-4382" alt="responsive menu" src="http://www.wpsyntax.com/wp-content/uploads/2012/12/reboot-1-294x300.png" width="294" height="300" /></a></div>
<div class="one-half"><a href="http://www.wpsyntax.com/wp-content/uploads/2012/12/reboot-2.png"><img class="alignnone size-medium wp-image-4383" alt="responsive menu" src="http://www.wpsyntax.com/wp-content/uploads/2012/12/reboot-2-200x300.png" width="200" height="300" /></a></div>
<p>When browsing the internet on your desktop computer, how many times have you seen the navigation of a website built using a select box?  Probably zero. On a desktop computer, users are familiar with either seeing a text-based menu system or an image-based menu system. I think that once a user is on a tablet or smart-phone, it&#8217;s not natural for them to have to think about how to navigate a website. Training them to look for a select box is silly.</p>
<p><strong>Collapsible Menu —</strong> The second option I&#8217;m seeing used to save screen real estate and provide a user-friendly navigation system is to use a collapsible menu. What I&#8217;m seeing is a basic icon shape (thank god for standards) of three horizontal lines being used to indicate the presence of a menu/navigation item on the screen.</p>
<p>Let me show you three examples and tell me if you can spot a trend.</p>
<p><strong>iPhone Reminders:</strong></p>
<p><img class="alignnone size-full wp-image-4370" alt="iphone reminders" src="http://www.wpsyntax.com/wp-content/uploads/2012/12/iphone-reminders.png" width="640" height="138" /></p>
<p><strong>Google Chrome on the iPhone:</strong></p>
<p><img class="alignnone size-full wp-image-4371" alt="chrome mobile browser" src="http://www.wpsyntax.com/wp-content/uploads/2012/12/chrome-mobile.png" width="640" height="138" /></p>
<p><strong>YouTube on the iPhone:</strong></p>
<p><img class="alignnone size-full wp-image-4374" alt="youtube mobile" src="http://www.wpsyntax.com/wp-content/uploads/2012/12/youtube-mobile.png" width="640" height="138" /></p>
<p>Smart-phone and tablet users are already familiar with the three horizontal lines which indicate the presence of a menu or navigation. Why go against the flow and use a select box?</p>
<p>I think the three horizontal lines (responsive menu icon) is the best option and is what I&#8217;m using on my website. Go ahead and shrink your browser and watch the menu icon appear once you reach the proper size. To get this to work on my Genesis child theme took less than 10 minutes and requires zero Php coding. Ready to get started?</p>
<h3>How To Implement a Responsive Menu in 10 Minutes</h3>
<p><em>A summary of the code below:</em> You will place a mobile responsive menu icon into your website&#8217;s navigation and initially it&#8217;s hidden. If a user of your website is viewing your site at a predefined width or smaller, your desktop menu is hidden and your mobile responsive menu icon appears. When a user clicks on the mobile menu icon, jQuery will toggle the menu to then show your full menu.</p>
<p>Take note of a couple things before you start.</p>
<ul>
<li>My implementation and tutorial caters to those web developers using the Genesis Framework. It will work with any WordPress theme, but I&#8217;ve detailed some information below catering to Genesis. More thinking on your part is required if you&#8217;re not using Genesis.</li>
<li>The other very important thing to note is that in my example, I&#8217;m using a custom menu within the header widget. I&#8217;m pointing this out to you since your CSS ID and Class Selectors will probably differ from mine in the code below. The CSS selectors I&#8217;m referring to is: #menu-primarynavigation and .menu.</li>
</ul>
<p>1. Place the code below into your theme&#8217;s CSS file that&#8217;s not inside of a media query.</p>
<pre class="brush: css; title: ; notranslate">
#mobi-menu {
	display: none;
	visibility: hidden;
}
</pre>
<p>2. This next piece of CSS needs to be inside of a media query. I&#8217;ve chosen to switch to the mobile menu icon when the max-width of a browser is 400px.</p>
<pre class="brush: css; title: ; notranslate">
@media only screen and (max-width: 400px) {
#mobi-menu { background: url(&quot;images/icon-mobile.png&quot;) no-repeat scroll 0 0 transparent; cursor: pointer; display: inline-block; 	float: right; height: 30px; margin: 12px; width: 41px; visibility: visible; }
#nav_menu-2 { display: none; }
}
</pre>
<pre class="brush: css; title: ; notranslate">
/* Make sure main menu re-appears when scaled up */
@media only screen and (min-width: 401px) {
	#nav_menu-2 {
		display: block !important;
	}
}
</pre>
<p>The CSS styles mentioned above will get things working. Your homework is to style it properly for your particular implementation.</p>
<p>Now the jQuery&#8230;</p>
<p>Place the code below into your site&#8217;s head section. I&#8217;m using a Genesis child theme so I went to Genesis -&gt; Theme Settings and placed the code into the &#8220;Header&#8221; scripts section.</p>
<pre class="brush: jscript; title: ; notranslate">
&lt;script type=&quot;text/javascript&quot;&gt;// &lt;![CDATA[
jQuery(document).ready(function($){
	/* prepend menu icon */
	$('#title-area').append('&lt;div id=&quot;mobi-menu&quot;&gt;&lt;/div&gt;');

	/* toggle nav */
	$(&quot;#mobi-menu&quot;).on(&quot;click&quot;, function(){
		$(&quot;#nav_menu-2&quot;).slideToggle();
		$(this).toggleClass(&quot;active&quot;);
	});
});
// ]]&gt;&lt;/script&gt;
</pre>
<p>Grab my mobile menu icon <a href="http://www.wpsyntax.com/wp-content/uploads/2012/12/mobile-menu-icon.png">here</a>. Save it to your themes &#8216;images&#8217; folder. If you save it elsewhere, you&#8217;ll need to adjust the code above.</p>
<p>Save everything and re-size your browser. BAM! You now have a responsive menu in less than 10 minutes.</p>
<p>As a reminder. You will have to style everything according to how you want everything displayed on your website.</p>
<p>The post <a href="http://www.wpsyntax.com/wordpress/collapsible-responsive-menu-for-genesis">How To Build a Collapsible Responsive Menu for Genesis</a> appeared first on <a href="http://www.wpsyntax.com">WPSyntax</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.wpsyntax.com/wordpress/collapsible-responsive-menu-for-genesis/feed</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>How To: Prevent Your Stolen Content From Outranking You</title>
		<link>http://www.wpsyntax.com/wordpress/stop-stolen-content-outranking-you</link>
		<comments>http://www.wpsyntax.com/wordpress/stop-stolen-content-outranking-you#comments</comments>
		<pubDate>Fri, 14 Dec 2012 12:56:52 +0000</pubDate>
		<dc:creator>Rick R. Duncan</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Marketing]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.wpsyntax.com/?p=4169</guid>
		<description><![CDATA[<p>It&#8217;s inevitable. Your content will get stolen. Not only will your content get stolen, it&#8217;s also possible that the website hosting your stolen content will outrank you in the SERPs. If they&#8217;re outranking you with your own content, you may then be penalized by Google because they will think that YOU are the one stealing [...]</p><p>The post <a href="http://www.wpsyntax.com/wordpress/stop-stolen-content-outranking-you">How To: Prevent Your Stolen Content From Outranking You</a> appeared first on <a href="http://www.wpsyntax.com">WPSyntax</a>.</p>]]></description>
				<content:encoded><![CDATA[<p><img class="frame" alt="typewriter-blog" src="http://www.wpsyntax.com/wp-content/uploads/2012/12/typewriter-blog.jpg" width="600" height="220" /><br />
It&#8217;s inevitable. Your content will get stolen. Not only will your content get stolen, it&#8217;s also possible that the website hosting your stolen content will outrank you in the SERPs. If they&#8217;re outranking you with your own content, you may then be penalized by Google because they will think that YOU are the one stealing and re-publishing duplicate content.</p>
<p>There are hundreds of articles detailing methods to prevent your content from being stolen. Preventive measures range from software solutions, htaccess rewrite rules, Google alerts and a handful of other techniques.</p>
<p>So why am I writing this article you ask? Because my approach is free, simple, effective and I believe it works better than anything else out there. I&#8217;m sure that once I share my secret, others will try it and then eventually write about it too. You&#8217;re welcome!</p>
<p>Let&#8217;s get started!</p>
<h3>Prerequisite</h3>
<p><strong>Disable your RSS feed.</strong> I wrote an article on <a title="disable rss feed" href="http://www.wpsyntax.com/disable-worpdress-rss-feed">how to disable your WordPress RSS feed</a> that has easy to follow instructions. When I create new content to publish on any of my affiliate or client websites, I don&#8217;t want to alert the wrong people that I have new content for them to steal.</p>
<p><strong>Disable automatically rebuilding your XML sitemap.</strong> Are you running a WordPress plugin named <a href="http://wordpress.org/extend/plugins/google-sitemap-generator/">Google XML Sitemap</a> or something similar? Generally these plugins are set to automatically notify Google, Bing and Yahoo when the content of your website has changed. I have disabled that functionality so that someone cannot monitor my file for new content and then steal it from me.</p>
<p>Speaking of the XML sitemap file. Another technique I use to lower my risk of being scraped/outranked is to give my XML sitemap a name other than sitemap.xml. No need to make it too easy for someone to find my sitemap.xml file containing all my articles wrapped with a bow.</p>
<p>Now lets cover my procedure for publishing new content in an effort to minimize content theft and being outranked in the SERPs with your own content.</p>
<h3>How I Publish Content</h3>
<p>My 10-step process for publishing content is below. Don&#8217;t worry, this is simple, quick and thus far has been proven to be very effective.</p>
<p><strong>1.</strong> Write the article<br />
<strong>2.</strong> Publish the article<br />
<strong>3.</strong> Go to Google Webmaster Tools and click on Health -&gt; Fetch as Google<br />
<strong>4.</strong> Enter the URL of the page you just published into the text box. (<em><strong>see image below</strong></em>)</p>
<p><a href="http://www.wpsyntax.com/wp-content/uploads/2012/11/fetch-as-google-2.png"><img class="size-medium wp-image-4172 alignnone" title="fetch-as-google-2" alt="" src="http://www.wpsyntax.com/wp-content/uploads/2012/11/fetch-as-google-2-300x75.png" width="300" height="75" /></a></p>
<p><strong>5.</strong> Click on Fetch<br />
<strong>6.</strong> Once the page has been fetched, click on &#8216;Submit to Index&#8217;<br />
<strong>7.</strong> Go to Bing Webmaster Tools<br />
<strong>8.</strong> Dashboard -&gt; Configure My Site -&gt; Submit URLs<br />
<strong>9.</strong> Enter the URL and click on Submit<br />
<strong>10.</strong> Go back to Google and enter the URL of your new article into the search box. Once the URL appears in the SERPs, wait 24 hours and then promote the hell out of your article on all your preferred marketing channels.</p>
<p>If you are active on Google+, I would start there first. Next I would submit the article to LinkedIn, Twitter and finally Facebook. My tests have shown that posting in that order gives me my best chances of solidifying my ownership of the new content.</p>
<p>That&#8217;s it! You&#8217;re done. This is working well for me and I would suggest all smaller publishers giving this a try.</p>
<h3>Google Authorship</h3>
<p>I recently received an email from Google indicating my acceptance into the Google Authorship program. I believe that this is yet another tactic one should employ to help solidify their online presence.</p>
<p>I&#8217;m a believer that shadow authors used in affiliate marketing have their days numbered. My online presence and expert areas have been greatly reduced over the last 18 months and I&#8217;m seeing positive signals by being more transparent with my online activities.</p>
<p>Good luck. Let me know in the comments below if you have any questions.</p>
<p>The post <a href="http://www.wpsyntax.com/wordpress/stop-stolen-content-outranking-you">How To: Prevent Your Stolen Content From Outranking You</a> appeared first on <a href="http://www.wpsyntax.com">WPSyntax</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.wpsyntax.com/wordpress/stop-stolen-content-outranking-you/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The constant WPCACHEHOME must be set in the file wp-config.php and point at the WP Super Cache plugin directory. -->