<?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>Gregory Wallace</title>
	<atom:link href="http://www.icodeforu.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.icodeforu.com</link>
	<description>WordPress / Genesis Developer</description>
	<lastBuildDate>Mon, 30 Apr 2012 23:19:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>WP Custom Login Logo Filter</title>
		<link>http://www.icodeforu.com/wp-custom-login-logo-filter/</link>
		<comments>http://www.icodeforu.com/wp-custom-login-logo-filter/#comments</comments>
		<pubDate>Mon, 02 Apr 2012 23:21:19 +0000</pubDate>
		<dc:creator>Greg Wallace</dc:creator>
				<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://www.icodeforu.com/?p=2471</guid>
		<description><![CDATA[In an attempt to cut down on plugins and core edits for a customer site I used this snippet to add a custom logo to the login page.]]></description>
			<content:encoded><![CDATA[<p>In an attempt to cut down on plugins and core edits for a customer site I used this snippet to add a custom logo to the login page.</p>
<pre class="brush: php; title: ; notranslate">
/****************custom login logo**********************/
function custom_logo(){
    echo '&lt;style type=&quot;text/css&quot;&gt;
	h1 a {background-image:url(http://domain.com/your-logo.png) ; margin:0 auto;}
	&lt;/style&gt;';
}
add_filter('login_head', 'custom_logo');
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.icodeforu.com/wp-custom-login-logo-filter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change the Howdy! &#8211; WP admin bar</title>
		<link>http://www.icodeforu.com/change-the-howdy-wp-admin-bar/</link>
		<comments>http://www.icodeforu.com/change-the-howdy-wp-admin-bar/#comments</comments>
		<pubDate>Fri, 30 Mar 2012 22:16:52 +0000</pubDate>
		<dc:creator>Greg Wallace</dc:creator>
				<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://www.icodeforu.com/?p=2458</guid>
		<description><![CDATA[The &#8220;Howdy&#8221; in the WordPress admin bar has never bothered me, but some clients are down right persnickety. This is how we go about fixing that issue. I also put &#8220;Access your profile here&#8221; in because new website users don&#8217;t usually know that they have a profile and are able to change their password to [...]]]></description>
			<content:encoded><![CDATA[<p>The &#8220;Howdy&#8221; in the WordPress admin bar has never bothered me, but some clients are down right persnickety.</p>
<p>This is how we go about fixing that issue.</p>
<pre class="brush: php; title: ; notranslate">
/******************change the HOWDY *************************/
add_filter('gettext', 'change_howdy', 10, 3);

function change_howdy($translated, $text, $domain) {

    if (!is_admin() || 'default' != $domain)
        return str_replace('Howdy', 'Welcome to Blahblahblah. Access your profile here' ,  $translated);

    if (false !== strpos($translated, 'Howdy'))
        return str_replace('Howdy', 'Welcome to Arrowhead Press', $translated);

    return $translated;
}
</pre>
<p>I also put &#8220;Access your profile here&#8221; in because new website users don&#8217;t usually know that they have a profile and are able to change their password to one they can remember.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.icodeforu.com/change-the-howdy-wp-admin-bar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Genesis Welcome $user Menu Item</title>
		<link>http://www.icodeforu.com/genesis-welcome-user-menu-item/</link>
		<comments>http://www.icodeforu.com/genesis-welcome-user-menu-item/#comments</comments>
		<pubDate>Tue, 27 Mar 2012 16:45:09 +0000</pubDate>
		<dc:creator>Greg Wallace</dc:creator>
				<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://www.icodeforu.com/?p=2433</guid>
		<description><![CDATA[This little snippet I wrote to inject the WordPress current user&#8217;s first name into a nav menu. I put it in secondary nav, but you could hook it anywhere. In the codex you can find all kinds of info to inject under get_currentuserinfo(). Just use your own class for styling or you could style it [...]]]></description>
			<content:encoded><![CDATA[<p>This little snippet I wrote to inject the WordPress current user&#8217;s first name into a nav menu. I put it in secondary nav, but you could hook it anywhere. In the <a href="http://codex.wordpress.org/Main_Page" title="WordPress Codex" target="_blank">codex</a> you can find all kinds of info to inject under <a href="http://codex.wordpress.org/Function_Reference/get_currentuserinfo" title="get_currentuserinfo" target="_blank">get_currentuserinfo()</a>.</p>
<pre class="brush: php; title: ; notranslate">
/*******************add welcome $user*************************/
add_filter( 'genesis_nav_items', 'welcome_nav_condition', 10, 2 );
add_filter( 'wp_nav_menu_items', 'welcome_nav_condition', 10, 2 );

function welcome_nav_condition($menu, $args) {
	$args = (array)$args;
	if ( 'secondary' !== $args['theme_location']  )
		return $menu;
	global $current_user;
        get_currentuserinfo();
	$the_name = $current_user-&gt;user_firstname;
	$username = '&lt;li class=&quot;welcome_item&quot;&gt;'. 'Hello ' . $the_name .'&amp;#33;' .'&lt;/li&gt;';

return $username . $menu;
}
</pre>
<p>Just use your own class for styling or you could style it inline.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.icodeforu.com/genesis-welcome-user-menu-item/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

