<?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>adammunns.com</title>
	<atom:link href="http://adammunns.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://adammunns.com</link>
	<description></description>
	<lastBuildDate>Wed, 29 May 2013 19:21:50 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>jQuery Promise and slideToggle Method Enlightenment</title>
		<link>http://adammunns.com/jquery-promise-and-slidetoggle-enlightenment/</link>
		<comments>http://adammunns.com/jquery-promise-and-slidetoggle-enlightenment/#comments</comments>
		<pubDate>Wed, 17 Apr 2013 22:46:06 +0000</pubDate>
		<dc:creator>cmunns</dc:creator>
				<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://adammunns.com/?p=495</guid>
		<description><![CDATA[<p>Using slideToggle() can be tricky when you start to introduce more than one drawer/toggle. Using the little known jQuery Promise method we can make things much more useable.</p><p>The post <a href="http://adammunns.com/jquery-promise-and-slidetoggle-enlightenment/">jQuery Promise and slideToggle Method Enlightenment</a> appeared first on <a href="http://adammunns.com">adammunns.com</a>.</p>]]></description>
				<content:encoded><![CDATA[<h3>jQuery Slide Toggle Problem #1</h3>
<p>Lately I&#8217;ve been programming a lot of open/close drawers for websites. Many of them are simple and had a single button that opened and closed a single drawer. The slideToggle() method in jQuery with some nice easing worked wonderfully for accomplishing this, however as some of these projects required additional content to be opened/closed things quickly go down hill. See the code below to see what I mean.</p>
<pre class="codepen"data-height="300"data-type="result"data-href="vbCKd"data-user="cmunns"data-safe="true"><code></code><a href="http://codepen.io/cmunns/pen/vbCKd">Check out this Pen!</a></pre>
<p><script async src="http://codepen.io/assets/embed/ei.js"></script></p>
<h3>jQuery Slide Toggle Problem #2</h3>
<p>One way around this is to use the callback function available to us in the <a title="slideToggle jQuery method" href="http://api.jquery.com/slideToggle/" target="_blank">slideToggle</a> method that will fire once the slide is complete. Unfortunately many different combinations of slideUp and slideDown will all reveal various transition issues when the goal is to fully close a drawer before opening a new one. See the code below for adjustments to the problem #1.</p>
<pre class="codepen"data-height="300"data-type="result"data-href="rBHDE"data-user="cmunns"data-safe="true"><code></code><a href="http://codepen.io/cmunns/pen/rBHDE">Check out this Pen!</a></pre>
<p><script async src="http://codepen.io/assets/embed/ei.js"></script></p>
<h3>jQuery Slide Toggle Problem #3</h3>
<p>I found that if reversed the logic to slideUp all divs and slideDown the matching div in the callback we get a lot closer to the correct timing, but it also creates a problem for us when clicking on an already open drawer. Adding a delay to the complete/callback function helps to smooth out the timing when switching between drawers as well but this is not a very predictable solution. If you remove the delay in the code below you&#8217;ll see how it helps.</p>
<pre class="codepen"data-height="300"data-type="result"data-href="gBvsI"data-user="cmunns"data-safe="true"><code></code><a href="http://codepen.io/cmunns/pen/gBvsI">Check out this Pen!</a></pre>
<p><script async src="http://codepen.io/assets/embed/ei.js"></script></p>
<p>&nbsp;</p>
<h3>jQuery Slide Toggle Solution</h3>
<p>Ultimately .slideToggle() is very rarely going to be used on it&#8217;s own to solve problems like this. In this case the solution is to use a little known jQuery method called <a title="jQuery Promise Method" href="http://api.jquery.com/promise/" target="_blank">.promise()</a>. The .promise() method is tremendously useful because it will wait for any set of matched elements to completely finish animating, even if multiple animations are present.</p>
<pre class="codepen"data-height="300"data-type="result"data-href="fxguC"data-user="cmunns"data-safe="true"><code></code><a href="http://codepen.io/cmunns/pen/fxguC">Check out this Pen!</a></pre>
<p><script async src="http://codepen.io/assets/embed/ei.js"></script></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>The post <a href="http://adammunns.com/jquery-promise-and-slidetoggle-enlightenment/">jQuery Promise and slideToggle Method Enlightenment</a> appeared first on <a href="http://adammunns.com">adammunns.com</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://adammunns.com/jquery-promise-and-slidetoggle-enlightenment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Filter Hooks: A Beginner&#8217;s Guide</title>
		<link>http://adammunns.com/wordpress-filter-hooks-a-beginners-guide/</link>
		<comments>http://adammunns.com/wordpress-filter-hooks-a-beginners-guide/#comments</comments>
		<pubDate>Thu, 13 Dec 2012 19:40:44 +0000</pubDate>
		<dc:creator>cmunns</dc:creator>
				<category><![CDATA[PageLines]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://adammunns.com/?p=407</guid>
		<description><![CDATA[<p>Inevitably the average WordPress user is going to come face to face with a WordPress action or filter hook in order to complete the customization that they are looking for...
</p><p>The post <a href="http://adammunns.com/wordpress-filter-hooks-a-beginners-guide/">WordPress Filter Hooks: A Beginner&#8217;s Guide</a> appeared first on <a href="http://adammunns.com">adammunns.com</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>Inevitably the average WordPress user is going to come face to face with a WordPress action or filter hook in order to complete the customization that they are looking for.</p>
<h3>Action Hook Overview</h3>
<p>There are two types of hooks in WordPress and we will cover the more complicated and confusing filter hook. Action hooks are the other type and are used primarily for inserting content into template areas that may be otherwise inaccessible. For example from a plugin, you want to inject some content into the footer of your page. You would do something like this, which is directly from the codex:</p>
<pre class="qoate-code">
function your_function() {
echo 'This is inserted at the bottom';
}
add_action('wp_footer', 'your_function');
</pre>
<p>In the above code we are using the add_action call to specify which hook–or &#8220;location&#8221; for lack of a better term–is going be used when we call our function in the second argument. &#8216;your_function&#8217; could easily be &#8216;my_function&#8217; or &#8216;silly_nilly&#8217; as long as it matches the name of the actual function you are defining to do something in the specified location.</p>
<p>The add_action call can also come before or after the function definition, it does not matter.<br />
You test this code by placing it in the functions.php file of your current theme.</p>
<h3>The Mighty Filter Hook</h3>
<p>I find that it can be frustrating having to use a filter hook when all I want is to insert some content somewhere. This is because filter hooks are a bit trickier and must return a value. There is a very good explanation on stack exchange  between the two, <a title="the difference between action and filter hooks" href="http://wordpress.stackexchange.com/questions/1007/difference-between-filter-and-action-hooks" target="_blank">The difference between filter and action hooks</a></p>
<p>Since the point of this post is to show beginners how to use a filter hook we are only going to skim the surface of what is possible, in this case we are going to treat it like an action hook and simply insert some content into a template area.</p>
<p>In the <a href="http://pagelines.ojrq.net/c/15352/8966/437">PageLines</a><img alt="" src="http://pagelines.ojrq.net/i/15352/8966/437" width="1" height="1" /> framework we can reference filters here: <a title="pagelines hooks" href="api.pagelines.com/hooks">PageLines API Hooks</a></p>
<p>Now since there is no action hook that can be applied to the area just after the post metabar we will use a filter instead to add content.</p>
<pre class="qoate-code">
add_filter('pagelines_post_metabar', 'my_metabar_addition');

function my_metabar_addition($metabar){
$metabar .= 'Added Content';
return $metabar;
}
</pre>
<p>The above code takes a custom function and adds to the variable which contains the output of the metabar. If we had used</p>
<pre class="qoate-code">
function my_metabar_addition($metabar){
$metabar = 'Added Content';
return $metabar;
}
</pre>
<p>Our metabar would simply say &#8220;Added Content&#8221; because we would have reset the variable $metabar instead of adding to what output already exists in the core files. By using the dot before the equal sign we concatenate the two values.</p>
<p>The post <a href="http://adammunns.com/wordpress-filter-hooks-a-beginners-guide/">WordPress Filter Hooks: A Beginner&#8217;s Guide</a> appeared first on <a href="http://adammunns.com">adammunns.com</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://adammunns.com/wordpress-filter-hooks-a-beginners-guide/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Quick Reminder on WordPress Conditionals</title>
		<link>http://adammunns.com/quick-reminder-on-wordpress-conditionals/</link>
		<comments>http://adammunns.com/quick-reminder-on-wordpress-conditionals/#comments</comments>
		<pubDate>Mon, 10 Dec 2012 20:48:44 +0000</pubDate>
		<dc:creator>cmunns</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://adammunns.com/?p=265</guid>
		<description><![CDATA[<p>If you are diving into the world of WordPress conditional tags don’t forget that there are few keys to targeting blog related pages...</p><p>The post <a href="http://adammunns.com/quick-reminder-on-wordpress-conditionals/">Quick Reminder on WordPress Conditionals</a> appeared first on <a href="http://adammunns.com">adammunns.com</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>If you are diving into the world of WordPress conditional tags don&#8217;t forget that there are few keys to targeting blog related pages.</p>
<ol>
<li>There is <strong>NO</strong>
<pre class="qoate-code">is_blog()</pre>
<p> conditional tag &#8212; using this will break your theme.</li>
<li>To target the main blog page you must use
<pre class="qoate-code">is_home()</pre>
<p> &#8212; do not confuse with
<pre class="qoate-code">is_front_page()</pre>
<p> which will target your home page if you are not using the blog page as your home.</li>
<li>To target all other blog pages and single pages you can use
<pre class="qoate-code">is_single() || is_archive()</pre>
</li>
</ol>
<p>Happy conditionalizing!!</p>
<h4>Resources for WordPress conditional tags:</h4>
<p><a title="Wordpress Conditional Tags: Codex" href="https://www.google.com/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=1&amp;cad=rja&amp;ved=0CDIQFjAA&amp;url=http%3A%2F%2Fcodex.wordpress.org%2FConditional_Tags&amp;ei=ijLKUK7ZD9HwigKRioHYDw&amp;usg=AFQjCNEctfs09tciPKv2lLyitzshLyjoPQ&amp;sig2=Fw3LjgMxW7kteS4uq_PedA&amp;bvm=bv.1355325884,d.cGE" target="_blank">WordPress Codex</a></p>
<p><a title="Theme Lab Ultimate Guide to conditionals" href="http://www.themelab.com/2008/04/14/the-ultimate-guide-to-wordpress-conditional-tags/" target="_blank">ThemeLab Ultimate Guide</a></p>
<p>The post <a href="http://adammunns.com/quick-reminder-on-wordpress-conditionals/">Quick Reminder on WordPress Conditionals</a> appeared first on <a href="http://adammunns.com">adammunns.com</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://adammunns.com/quick-reminder-on-wordpress-conditionals/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Post Navigation Within Same Category</title>
		<link>http://adammunns.com/wordpress-post-navigation-within-same-category/</link>
		<comments>http://adammunns.com/wordpress-post-navigation-within-same-category/#comments</comments>
		<pubDate>Wed, 27 Jul 2011 20:11:00 +0000</pubDate>
		<dc:creator>cmunns</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[navigation]]></category>

		<guid isPermaLink="false">http://adammunns.com/?p=261</guid>
		<description><![CDATA[<p>Here’s a quick tip. By default most WordPress themes have a single post page navigation setup so that you are shown a double arrow + “Previous/Next Post Title”...</p><p>The post <a href="http://adammunns.com/wordpress-post-navigation-within-same-category/">WordPress Post Navigation Within Same Category</a> appeared first on <a href="http://adammunns.com">adammunns.com</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>Here&#8217;s a quick tip. By default most WordPress themes have a single post page navigation setup so that you are shown a double arrow + &#8220;Previous/Next Post Title&#8221;.</p>
<p><a href="http://codex.wordpress.org/Template_Tags/previous_post_link">http://codex.wordpress.org/Template_Tags/previous_post_link</a></p>
<p>It also shows you how to customize the text of the link by changing the default</p>
<pre class="qoate-code">&lt;!--?php previous_post_link(); ?--&gt; </pre>
<p> to
<pre class="qoate-code"> &lt;!--?php previous_post_link('%link', 'Previous in category', TRUE); ?--&gt;</pre>
<p> where the link contains custom text and even remains in the same category of the current single post. Now putting it all together if you wanted to maintain the same default post navigation (where the link contains the title of the next/previous post) while also remaining in the same category you can do something like this:</p>
<pre class="qoate-code"> &lt;!--?php previous_post_link('%link', '%title', TRUE); ?--&gt;</pre>
<p>For <a href="http://pagelines.ojrq.net/c/15352/6148/437">PageLines</a> users you can edit your default navigation by creating a file in your PlatformBase theme called template.postnav.php and pasting the below code in it so that your post-navigation remains category dependent. Of course by editing in the child theme you won&#8217;t have this small change overwritten when it comes time to update your core files.</p>
<pre class="qoate-code">
&lt;div class="post-nav fix"&gt;&lt;/div&gt;
</pre>
<p>The post <a href="http://adammunns.com/wordpress-post-navigation-within-same-category/">WordPress Post Navigation Within Same Category</a> appeared first on <a href="http://adammunns.com">adammunns.com</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://adammunns.com/wordpress-post-navigation-within-same-category/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Create Archive Carousel with Thumbnails</title>
		<link>http://adammunns.com/how-to-create-archive-carousel-with-thumbnails/</link>
		<comments>http://adammunns.com/how-to-create-archive-carousel-with-thumbnails/#comments</comments>
		<pubDate>Tue, 19 Jul 2011 21:31:15 +0000</pubDate>
		<dc:creator>cmunns</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[PageLines]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://adammunns.com/?p=250</guid>
		<description><![CDATA[<p><p></p> <p>I&#8217;m not going to cover how to set up the carousel using the jcarousel jquery plugin by Sorgalla because there is enough instruction out there on how to do it. However I am going to show you how to use this carousel to display an image based archive carousel in WordPress.</p> The code <p>The [...]</p><p>The post <a href="http://adammunns.com/how-to-create-archive-carousel-with-thumbnails/">How To Create Archive Carousel with Thumbnails</a> appeared first on <a href="http://adammunns.com">adammunns.com</a>.</p>]]></description>
				<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-258" title="archive_carousel" src="http://adammunns.com/wp-content/uploads/2011/07/archive_carousel.jpg" alt="" width="758" height="163" /></p>
<div class="clear"></div>
<p>I&#8217;m not going to cover how to set up the carousel using the <a href="http://sorgalla.com/jcarousel/">jcarousel jquery plugin by Sorgalla</a> because there is enough instruction out there on how to do it. However I am going to show you how to use this carousel to display an image based archive carousel in WordPress.</p>
<h4>The code</h4>
<pre class="qoate-code">
$archives = wp_get_archives(array('echo' =&gt; 0,'format'=&gt;'html','type'=&gt;'monthly','before'=&gt;'|'));
$archive = explode('|',$archives);
$remove = array_shift($archive);

foreach($archive as $i):
$i = strip_tags($i);
$month = preg_replace('/[^a-z]/i', '', $i);
$month_int = date('m', strtotime($month));

if ($month === "February") $month_int = 2; //fixes weird PHP bug

$year = preg_replace('/[^0-9]/i', '', $i);

$query = new WP_Query('meta_key=_thumbnail_id&amp;posts_per_page=1&amp;monthnum='.$month_int.'&amp;year='.$year.'&amp;paged='.$paged);
while ($query-&gt;have_posts()) : $query-&gt;the_post();
?&gt;

&nbsp;

&lt;!--?php &lt;br ?--&gt; endwhile;
wp_reset_postdata();
endforeach;
</pre>
<p>The above code is what you would want to place inside of the main ul which holds your carousel.</p>
<h4>How it Works</h4>
<p>The <a href="http://codex.wordpress.org/Function_Reference/wp_get_archives">wp_get_archives()</a> function in WordPress by default will return an archive based list in the format of &#8220;February 2011, January 2011, etc&#8221;. Using the &#8216;before&#8217; parameter we are able to insert an element at the beginning of each list item which we can then use to break our list into an array using the <a href="http://php.net/manual/en/function.explode.php">explode function</a> in conjunction with the before parameter from wp_get_archives as the delimiter.</p>
<p>Using the before parameter as a delimiter actually creates a an null value in the first array position. To fix this we use the <a href="http://php.net/manual/en/function.array-shift.php">array_shift function</a> to remove the first array item and recalculate the positions starting at zero.</p>
<p>Next we loop through the array values [0]=&gt;February 2011 [1]=&gt;January 2011, etc and perform two separate <a href="http://php.net/manual/en/function.preg-replace.php">preg_replace functions</a> to isolate the month from the year. After turning the month name into the corresponding integer ( e.g. January -&gt; 01 ) we can use the integer values for the month and year to perform a custom loop that will query these dates</p>
<pre class="qoate-code">
new WP_Query('meta_key=_thumbnail_id&amp;posts_per_page=1&amp;monthnum='.$month_int.'&amp;year='.$year.'&amp;paged='.$paged);
</pre>
<p>Notice that in this query we are only pulling posts that have
<pre class="qoate-code">meta_key=thumbnail_id</pre>
<p> so that none of our carousel items come back blank. We also only return one post per page so that only one thumb represents each month/year combo.</p>
<p>Finally we just loop through and setup the category link, the archive title, and thumbnail</p>
<pre class="qoate-code">
&lt;!--?php while ($query---&gt;have_posts()) : $query-&gt;the_post(); ?&gt;

&lt;!--?php endwhile;?--&gt;</pre>
<h4>PageLines Carousel Hook</h4>
<p>If you are using PageLines you can easily use the above code as it is in conjunction with the <strong>pagelines_carousel_list</strong> action hook that works with the default carousel section so that you can use custom carousel content as we did above.</p>
<p>The post <a href="http://adammunns.com/how-to-create-archive-carousel-with-thumbnails/">How To Create Archive Carousel with Thumbnails</a> appeared first on <a href="http://adammunns.com">adammunns.com</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://adammunns.com/how-to-create-archive-carousel-with-thumbnails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create A Fullwidth Clickable Feature Slider</title>
		<link>http://adammunns.com/create-a-fullwidth-clickable-feature-slider/</link>
		<comments>http://adammunns.com/create-a-fullwidth-clickable-feature-slider/#comments</comments>
		<pubDate>Fri, 15 Jul 2011 23:33:16 +0000</pubDate>
		<dc:creator>cmunns</dc:creator>
				<category><![CDATA[PageLines]]></category>

		<guid isPermaLink="false">http://adammunns.com/?p=242</guid>
		<description><![CDATA[<p><p>UPDATE: This post is regarding action hooks from the Platform Framework 1.0, using this advice for 2.0 is not guaranteed the same results</p> <p>A common request of many people using the PageLines feature slider is to make the entire feature staging area clickable. The default action for the &#8220;Feature Link URL&#8221; option is to create [...]</p><p>The post <a href="http://adammunns.com/create-a-fullwidth-clickable-feature-slider/">Create A Fullwidth Clickable Feature Slider</a> appeared first on <a href="http://adammunns.com">adammunns.com</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>UPDATE: This post is regarding action hooks from the Platform Framework 1.0, using this advice for 2.0 is not guaranteed the same results</p>
<p>A common request of many people using the <a href="http://pagelines.ojrq.net/c/15352/6148/437">PageLines</a> feature slider is to make the entire feature staging area clickable. The default action for the &#8220;Feature Link URL&#8221; option is to create the black button featured below.</p>
<p><img class="size-full wp-image-243" title="pagelines-feature-link" src="http://adammunns.com/wp-content/uploads/2011/07/pagelines-feature-link.jpg" alt="" width="479" height="138" align="left" /></p>
<div class="clear"></div>
<p>If you want to forego the simple button by making the entire area clickable you must do two things.</p>
<h4>Using the Before Feature Hook</h4>
<p>Add the small block of code to your PlatformBase functions.php file.</p>
<pre class="qoate-code">
add_action('pagelines_feature_before','whole_link_image');

function whole_link_image(){?&gt;
&lt;!--?php global $post;?--&gt;

&lt;!--?php if(get_post_meta($post---&gt;ID, 'feature-link-url', true)):?&gt;

&lt;!--?php endif;?--&gt;
&lt;!--?php }&lt;br ?--&gt; </pre>
<h4>The CSS</h4>
<pre class="qoate-code">
a.whole_image_link {
position:absolute;
width:100%;
height:100%;
z-index:9999;
left:0; /*Firefox fix*/
}
</pre>
<p>What we&#8217;ve done is taken the pre-existing PageLines option for linking the feature slide and used that to create an empty link that overlays the entire staging area.</p>
<p>For a little added bonus you could even apply a cool<a href="http://css-tricks.com/snippets/css/css-box-shadow/"> CSS3 inner box shadow</a> hover effect.</p>
<pre class="qoate-code">
a.whole_image_link:hover {
-moz-box-shadow:inset 0 0 10px #000000;
-webkit-box-shadow:inset 0 0 10px #000000;
box-shadow:inset 0 0 10px #000000;
}
</pre>
<p>The post <a href="http://adammunns.com/create-a-fullwidth-clickable-feature-slider/">Create A Fullwidth Clickable Feature Slider</a> appeared first on <a href="http://adammunns.com">adammunns.com</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://adammunns.com/create-a-fullwidth-clickable-feature-slider/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Quickly Change &#8220;Leave A Reply&#8221; Text in Comments</title>
		<link>http://adammunns.com/quickly-change-leave-a-reply-text-in-comments/</link>
		<comments>http://adammunns.com/quickly-change-leave-a-reply-text-in-comments/#comments</comments>
		<pubDate>Tue, 12 Jul 2011 18:23:06 +0000</pubDate>
		<dc:creator>cmunns</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://adammunns.com/?p=235</guid>
		<description><![CDATA[<p><p>I was searching through some of the WordPress.org forums and found a great filter for changing the default &#8220;Leave a Reply&#8221; text that normally appears at the top of the comments section.</p> <p></p> <p>Simply place this snippet below in your theme&#8217;s functions.php file. This will save you time from having to modify or change the [...]</p><p>The post <a href="http://adammunns.com/quickly-change-leave-a-reply-text-in-comments/">Quickly Change &#8220;Leave A Reply&#8221; Text in Comments</a> appeared first on <a href="http://adammunns.com">adammunns.com</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>I was searching through some of the WordPress.org forums and found a great filter for changing the default &#8220;Leave a Reply&#8221; text that normally appears at the top of the comments section.</p>
<p><img class="alignnone size-full wp-image-238" title="Screen shot 2011-07-12 at 11.23.48 AM" src="http://adammunns.com/wp-content/uploads/2011/07/Screen-shot-2011-07-12-at-11.23.48-AM.jpg" alt="" width="631" height="216" /></p>
<p>Simply place this snippet below in your theme&#8217;s functions.php file. This will save you time from having to modify or change the comments.php just to make a small wording change.</p>
<pre class="qoate-code">function my_comment_text ($arg) {
$arg['title_reply'] = __('Submit Your Comment');
return $arg;
}
add_filter('comment_form_defaults','my_comment_text');</pre>
<p>The post <a href="http://adammunns.com/quickly-change-leave-a-reply-text-in-comments/">Quickly Change &#8220;Leave A Reply&#8221; Text in Comments</a> appeared first on <a href="http://adammunns.com">adammunns.com</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://adammunns.com/quickly-change-leave-a-reply-text-in-comments/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Put PageLines Post Thumbnails On Top of Titles</title>
		<link>http://adammunns.com/how-to-put-pagelines-post-thumbnails-on-top-of-titles/</link>
		<comments>http://adammunns.com/how-to-put-pagelines-post-thumbnails-on-top-of-titles/#comments</comments>
		<pubDate>Wed, 08 Jun 2011 15:16:01 +0000</pubDate>
		<dc:creator>cmunns</dc:creator>
				<category><![CDATA[PageLines]]></category>

		<guid isPermaLink="false">http://adammunns.com/?p=230</guid>
		<description><![CDATA[<p><p>This is a fairly common customization request that is actually quite easy to accomplish. The first thing you need to do if you are just beginning the customization process is to be sure you are using the PlatformBase child theme.</p> <p>Next, using an FTP program like Transmit or Filezilla copy the template.postloop.php file from the [...]</p><p>The post <a href="http://adammunns.com/how-to-put-pagelines-post-thumbnails-on-top-of-titles/">How to Put PageLines Post Thumbnails On Top of Titles</a> appeared first on <a href="http://adammunns.com">adammunns.com</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>This is a fairly common customization request that is actually quite easy to accomplish. The first thing you need to do if you are just beginning the customization process is to be sure you are using the PlatformBase child theme.</p>
<p>Next, using an FTP program like Transmit or Filezilla copy the template.postloop.php file from the main PlatformPro theme and move it into the root of the PlatformBase theme. You should now have two files both called template.postloop.php in both the PlatformPro and PlatformBase themes. By editing this file in the child theme you won&#8217;t have to worry about your custom changes getting overwritten in the next upgrade to the core files.</p>
<p>Now that we are edit-ready open up the template.postloop.php file in a text editor of your choice.</p>
<p>Find this block of code:</p>
<pre class="qoate-code">
&lt;div class="post-header fix &lt;?php if(!pagelines_show_thumb($post-&gt;ID)) echo 'post-nothumb';?&gt;" style="&lt;?php 
							
		if(pagelines_show_thumb($post-&gt;ID)){
			echo 'margin-left:'.$thumb_space.'px';
		}
							
?&gt;" &gt;
</pre>
<p>and change it simply to</p>
<pre class="qoate-code">
&lt;div class="post-header fix"&gt;
</pre>
<p>Now that we&#8217;ve gotten rid of the snippet that adds our left margin to the excerpt, we need to clear this so it isn&#8217;t overlapping the thumbnail.</p>
<p>In the base.css file add:</p>
<pre class="qoate-code">
.fpost .post-header {
	float: none;
	clear: both;
	padding-top: 10px;
}
</pre>
<p>Remember that you can change the size of your post thumbnails by going to your WP SETTINGS &#8211; MEDIA panel.</p>
<p>The post <a href="http://adammunns.com/how-to-put-pagelines-post-thumbnails-on-top-of-titles/">How to Put PageLines Post Thumbnails On Top of Titles</a> appeared first on <a href="http://adammunns.com">adammunns.com</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://adammunns.com/how-to-put-pagelines-post-thumbnails-on-top-of-titles/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Custom Loop Won&#8217;t Show the Publish Date</title>
		<link>http://adammunns.com/custom-loop-wont-show-the-publish-date/</link>
		<comments>http://adammunns.com/custom-loop-wont-show-the-publish-date/#comments</comments>
		<pubDate>Thu, 02 Jun 2011 05:39:09 +0000</pubDate>
		<dc:creator>cmunns</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://adammunns.com/?p=226</guid>
		<description><![CDATA[<p><p>If you&#8217;ve ever created a custom query or loop you might have run into this really simple, but annoying problem. Everything shows up perfectly, except that when you have two posts published on the same day the latter post will not show the date.</p> <p>Luckily the fix is very simple. Change your date output e.g.</p> [...]</p><p>The post <a href="http://adammunns.com/custom-loop-wont-show-the-publish-date/">Custom Loop Won&#8217;t Show the Publish Date</a> appeared first on <a href="http://adammunns.com">adammunns.com</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>If you&#8217;ve ever created a custom query or loop you might have run into this really simple, but annoying problem. Everything shows up perfectly, except that when you have two posts published on the same day the latter post will not show the date.</p>
<p>Luckily the fix is very simple. Change your date output e.g.</p>
<pre class="qoate-code">&lt;?php the_date('j M Y');?&gt;</pre>
<p>to the WordPress time function e.g.</p>
<pre class="qoate-code">&lt;?php the_time('j M Y');?&gt;</pre>
<p>Also, don&#8217;t forget all of the options available for modifying the output : <a href="http://codex.wordpress.org/Formatting_Date_and_Time">Codex : Formatting the Date and Time </a></p>
<p>The post <a href="http://adammunns.com/custom-loop-wont-show-the-publish-date/">Custom Loop Won&#8217;t Show the Publish Date</a> appeared first on <a href="http://adammunns.com">adammunns.com</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://adammunns.com/custom-loop-wont-show-the-publish-date/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create A Hover Effect For Your Feature Navigation.</title>
		<link>http://adammunns.com/create-a-hover-effect-for-your-feature-navigation/</link>
		<comments>http://adammunns.com/create-a-hover-effect-for-your-feature-navigation/#comments</comments>
		<pubDate>Thu, 26 May 2011 01:45:25 +0000</pubDate>
		<dc:creator>cmunns</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[feature slider]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://adammunns.com/?p=174</guid>
		<description><![CDATA[<p><p>There are a variety of navigation options in the default PlatformPro Feature section. Some of these include thumbnails, numbers, names, and simple squares or dots. There a few things we can do, however to easily customize the look and feel of this marquee feature.</p> The CSS Setup <p>First open up your base.css file in the [...]</p><p>The post <a href="http://adammunns.com/create-a-hover-effect-for-your-feature-navigation/">Create A Hover Effect For Your Feature Navigation.</a> appeared first on <a href="http://adammunns.com">adammunns.com</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>There are a variety of navigation options in the default PlatformPro Feature section. Some of these include thumbnails, numbers, names, and simple squares or dots. There a few things we can do, however to easily customize the look and feel of this marquee feature.</p>
<h4>The CSS Setup</h4>
<p>First open up your base.css file in the PlatformBase child theme and make sure that you are using the &#8220;Squares or Dots&#8221; navigation mode, which is set under the global PlatformPro Feature Settings.</p>
<p>The important thing about the CSS here is that we are changing the position of the feature navigation so that it sits on top of the feature slide area instead of directly beneath it. We are also including a transparent black background for the feature navigation as well as an image sprite to replace the default circles/squares. </p>
<p>Place the transparent background and image sprite in the images folder in your Base theme for the code below to work</p>
<pre class="qoate-code">
#feature #feature-footer {
	position: absolute;
	bottom: 0;
	background: url('images/black60.png') repeat;
	z-index: 999999;
	border: 0;
	width: 100%;
}
	
#feature-footer .feature-footer-pad {border:0px;}

	/*FEATURE DOTS*/
		#featurenav a {border:0px!important;background:transparent;}

		#feature #feature-footer a, #cycle_navigation a {
			background:url('images/glass_buttons.png') no-repeat center top transparent;
			width:20px;
			height:20px;
		}
		
		#feature #feature-footer a:hover, #cycle_navigation a:hover  {
			background:url('images/glass_buttons.png') no-repeat center center transparent;
		}
		
		#feature #feature-footer a.activeSlide, #cycle_navigation a.activeSlide  {
			background:url('images/glass_buttons.png') no-repeat center bottom transparent;
		}
</pre>
<h4>The Images</h4>
<p>To make it easy for you, you can save the images below to your own server to get this demo working quickly.</p>
<p><a href="http://adammunns.com/wp-content/uploads/2011/05/glass_buttons.png"><img src="http://adammunns.com/wp-content/uploads/2011/05/glass_buttons.png" alt="" title="glass_buttons" width="20" height="60" class="alignnone size-full wp-image-198" /></a></p>
<p><a href="http://adammunns.com/wp-content/uploads/2011/05/black60.png"><img src="http://adammunns.com/wp-content/uploads/2011/05/black60.png" alt="" title="black60" width="5" height="5" class="alignnone size-full wp-image-199" /></a></p>
<h4>The jQuery</h4>
<p>Then next step is to add a touch of jQuery to hide and show the navigation when hovering off and on the whole feature area.</p>
<p>Use a hook in your functions.php file to accomplish this.</p>
<pre class="qoate-code">
add_action ('wp_footer','animate_feature_nav');

	function animate_feature_nav(){?&gt;

		&lt;script type="text/javascript"&gt;

			var $j = jQuery.noConflict();
			$j(document).ready(function() {
				$j('#feature-footer').hide();
				$j('#feature_slider').hover(function(){$j('#feature-footer').fadeToggle("slow", "linear")});
			});

		&lt;/script&gt;

	&lt;?php }
</pre>
<p>That&#8217;s it! You have a new custom feature section that is perfect for an auto playing image gallery or portfolio.</p>
<p>The post <a href="http://adammunns.com/create-a-hover-effect-for-your-feature-navigation/">Create A Hover Effect For Your Feature Navigation.</a> appeared first on <a href="http://adammunns.com">adammunns.com</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://adammunns.com/create-a-hover-effect-for-your-feature-navigation/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
