<?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>Snippits / Ashley Hollinworth / Front-end Web Developer &amp; Designer / Wakefield, West Yorkshire</title>
	<atom:link href="https://www.ashley-hollinworth.co.uk/category/snippits/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.ashley-hollinworth.co.uk</link>
	<description></description>
	<lastBuildDate>Mon, 26 Oct 2015 09:53:27 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.6.2</generator>
	<item>
		<title>Add Webgains tracking code to WooCommerce</title>
		<link>https://www.ashley-hollinworth.co.uk/add-webgains-tracking-code-to-woocommerce/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=add-webgains-tracking-code-to-woocommerce</link>
					<comments>https://www.ashley-hollinworth.co.uk/add-webgains-tracking-code-to-woocommerce/#comments</comments>
		
		<dc:creator><![CDATA[Ash]]></dc:creator>
		<pubDate>Mon, 26 Oct 2015 09:52:17 +0000</pubDate>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Snippits]]></category>
		<guid isPermaLink="false">http://www.ashley-hollinworth.co.uk/?p=100</guid>

					<description><![CDATA[Include the following in your themes functions.php file. The Webgains container tag is included within the &lt;head&gt; of every page. And the Webgains tracking script with dynamic variables is included on the WooCommerce order confirmation page (thankyou.php). Just remember to replace the 'XXXX' with your Webgains ID's. // Include Webgains container tag script within head [...]]]></description>
										<content:encoded><![CDATA[<p>Include the following in your themes functions.php file.</p>
<p>The Webgains container tag is included within the &lt;head&gt; of every page.</p>
<p>And the Webgains tracking script with dynamic variables is included on the WooCommerce order confirmation page (thankyou.php).</p>
<p>Just remember to replace the &#8216;XXXX&#8217; with your Webgains ID&#8217;s.</p>
<pre class="lang:php decode:true">// Include Webgains container tag script within head of very page
wp_enqueue_script('webgains-script', '//tag.webgains.com/container-XXXX.html', array(), '1', false);
// Include Webgains tracking script on order confirmation page
add_action('woocommerce_thankyou', 'wg_tracking', 10, 1);
function wg_tracking( $orderid ) {

    $order = new WC_Order($orderid);
	
	$order_number = $order-&gt;get_order_number();
	$total = $order-&gt;get_total();
    $currency = $order-&gt;get_order_currency();
    
    if( $order-&gt;get_used_coupons() ) {
		
		$coupons_count = count( $order-&gt;get_used_coupons() );
	
	    echo '&lt;h4&gt;' . __('Coupons used') . ' (' . $coupons_count . ')&lt;/h4&gt;';
	     
	    echo '&lt;p&gt;&lt;strong&gt;' . __('Coupons used') . ':&lt;/strong&gt; ';
	    
	    $i = 1;
	    $coupons_list = '';
	    
	    foreach( $order-&gt;get_used_coupons() as $coupon) {
	        $coupons_list .=  $coupon;
	        if( $i &lt; $coupons_count )
	        	$coupons_list .= ', ';
	        $i++;
	    }
	
	} // endif get_used_coupons
   
    ?&gt;

	&lt;!-- &lt;webgains tracking code&gt; --&gt;
	&lt;script language="javascript" type="text/javascript"&gt;
	
	var wgOrderReference = "&lt;?php echo $order_number?&gt;";
	var wgOrderValue = "&lt;?php echo $total?&gt;";
	var wgEventID = XXXX;
	var wgComment = "";
	var wgLang = "en_EN";
	var wgsLang = "javascript-client";
	var wgVersion = "1.2";
	var wgProgramID = XXXX;
	var wgSubDomain = "track";
	var wgCheckSum = "";
	var wgItems = "";
	var wgVoucherCode = "&lt;?php echo $coupons_list?&gt;";
	var wgCustomerID = "";
	var wgCurrency = "&lt;?php echo $currency?&gt;";
	
	if(location.protocol.toLowerCase() == "https:") wgProtocol="https";
	else wgProtocol = "http";
	wgUri = wgProtocol + "://" + wgSubDomain + ".webgains.com/transaction.html" + "?wgver=" + wgVersion + "&amp;wgprotocol=" + wgProtocol + "&amp;wgsubdomain=" + wgSubDomain + "&amp;wgslang=" + wgsLang + "&amp;wglang=" + wgLang + "&amp;wgprogramid=" + wgProgramID + "&amp;wgeventid=" + wgEventID + "&amp;wgvalue=" + wgOrderValue + "&amp;wgchecksum=" + wgCheckSum + "&amp;wgorderreference="  + wgOrderReference + "&amp;wgcomment=" + escape(wgComment) + "&amp;wglocation=" + escape(document.referrer) + "&amp;wgitems=" + escape(wgItems) + "&amp;wgcustomerid=" + escape(wgCustomerID) + "&amp;wgvouchercode=" + escape(wgVoucherCode) + "&amp;wgCurrency=" + escape(wgCurrency);
	document.write('&lt;sc'+'ript language="JavaScript"  type="text/javascript" src="'+wgUri+'"&gt;&lt;/sc'+'ript&gt;');
	&lt;/script&gt;
	&lt;noscript&gt;
	&lt;?php echo '&lt;img src="http://track.webgains.com/transaction.html?wgver=1.2&amp;wgprogramid=XXXX&amp;wgrs=1&amp;wgvalue=' . $total . '&amp;wgeventid=XXXX&amp;wgorderreference=' . $order_number . '&amp;wgitems=&amp;wgvouchercode=' . $coupons_list . '&amp;wgcustomerid=&amp;wgCurrency=' . $currency . '" alt="" /&gt;' ?&gt;	
	&lt;/noscript&gt;
	&lt;!-- &lt;/webgains tracking code&gt; --&gt;
    &lt;?php
}
</pre>
<p>&nbsp;</p><p>The post <a href="https://www.ashley-hollinworth.co.uk/add-webgains-tracking-code-to-woocommerce/">Add Webgains tracking code to WooCommerce</a> first appeared on <a href="https://www.ashley-hollinworth.co.uk">Ashley Hollinworth / Front-end Web Developer & Designer / Wakefield, West Yorkshire</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.ashley-hollinworth.co.uk/add-webgains-tracking-code-to-woocommerce/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>Add Gravity Form Admin Panel to other WordPress User Roles</title>
		<link>https://www.ashley-hollinworth.co.uk/add-gravity-form-admin-panel-to-other-wordpress-user-roles/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=add-gravity-form-admin-panel-to-other-wordpress-user-roles</link>
					<comments>https://www.ashley-hollinworth.co.uk/add-gravity-form-admin-panel-to-other-wordpress-user-roles/#respond</comments>
		
		<dc:creator><![CDATA[Ash]]></dc:creator>
		<pubDate>Fri, 20 Mar 2015 10:15:48 +0000</pubDate>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Snippits]]></category>
		<guid isPermaLink="false">http://www.ashley-hollinworth.co.uk/?p=96</guid>

					<description><![CDATA[Add the code below to your theme's functions.php file to add the Gravity Forms settings, form editor and form entires to anther user roles admin panel. function add_gf_cap() { $role = get_role( 'editor' ); $role-&gt;add_cap( 'gform_full_access' ); } add_action( 'admin_init', 'add_gf_cap' );]]></description>
										<content:encoded><![CDATA[<p>Add the code below to your theme&#8217;s functions.php file to add the Gravity Forms settings, form editor and form entires to anther user roles admin panel.</p>
<pre class="lang:default decode:true ">function add_gf_cap()
{
    $role = get_role( 'editor' );
    $role-&gt;add_cap( 'gform_full_access' );
}
 
add_action( 'admin_init', 'add_gf_cap' );</pre><p>The post <a href="https://www.ashley-hollinworth.co.uk/add-gravity-form-admin-panel-to-other-wordpress-user-roles/">Add Gravity Form Admin Panel to other WordPress User Roles</a> first appeared on <a href="https://www.ashley-hollinworth.co.uk">Ashley Hollinworth / Front-end Web Developer & Designer / Wakefield, West Yorkshire</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.ashley-hollinworth.co.uk/add-gravity-form-admin-panel-to-other-wordpress-user-roles/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Move Woocommerce Tabs to right hand product content section</title>
		<link>https://www.ashley-hollinworth.co.uk/move-woocommerce-tabs-to-right-hand-product-content-section/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=move-woocommerce-tabs-to-right-hand-product-content-section</link>
					<comments>https://www.ashley-hollinworth.co.uk/move-woocommerce-tabs-to-right-hand-product-content-section/#respond</comments>
		
		<dc:creator><![CDATA[Ash]]></dc:creator>
		<pubDate>Sun, 16 Nov 2014 15:02:24 +0000</pubDate>
				<category><![CDATA[Snippits]]></category>
		<category><![CDATA[WooCommerce]]></category>
		<category><![CDATA[Wordpress]]></category>
		<guid isPermaLink="false">http://www.ashley-hollinworth.co.uk/?p=87</guid>

					<description><![CDATA[If your developing an e-commerce website using Woocommerce, by default the product tabs (including full product description, technical specifications etc.) are positioned underneath the two product columns. To move the tabs to the right hand side (underneath 'Add to Cart' button etc.) Insert the snippit into your Wordpress themes functions.php file. This is an update-safe [...]]]></description>
										<content:encoded><![CDATA[<p>If your developing an e-commerce website using Woocommerce, by default the product tabs (including full product description, technical specifications etc.) are positioned underneath the two product columns.</p>
<p>To move the tabs to the right hand side (underneath &#8216;Add to Cart&#8217; button etc.) Insert the snippit into your WordPress themes functions.php file. This is an update-safe method as your not having to edit core Woocommerce code.</p>
<pre class="lang:php decode:true ">// Removes tabs from their original loaction 
remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 10 );
// Inserts tabs under the main right product content 
add_action( 'woocommerce_single_product_summary', 'woocommerce_output_product_data_tabs', 60 );</pre>
<p>&nbsp;</p><p>The post <a href="https://www.ashley-hollinworth.co.uk/move-woocommerce-tabs-to-right-hand-product-content-section/">Move Woocommerce Tabs to right hand product content section</a> first appeared on <a href="https://www.ashley-hollinworth.co.uk">Ashley Hollinworth / Front-end Web Developer & Designer / Wakefield, West Yorkshire</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.ashley-hollinworth.co.uk/move-woocommerce-tabs-to-right-hand-product-content-section/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Woocommerce Advanced Delivery Datepicker per Product</title>
		<link>https://www.ashley-hollinworth.co.uk/woocommerce-advanced-delivery-datepicker-per-product/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=woocommerce-advanced-delivery-datepicker-per-product</link>
					<comments>https://www.ashley-hollinworth.co.uk/woocommerce-advanced-delivery-datepicker-per-product/#comments</comments>
		
		<dc:creator><![CDATA[Ash]]></dc:creator>
		<pubDate>Wed, 10 Sep 2014 09:48:38 +0000</pubDate>
				<category><![CDATA[Snippits]]></category>
		<category><![CDATA[WooCommerce]]></category>
		<category><![CDATA[Wordpress]]></category>
		<guid isPermaLink="false">http://blog.local/?p=16</guid>

					<description><![CDATA[My brief was to add a delivery date picker to a Woocommerce website selling gift hampers. There were a few conditions required on the datepicker; 5pm cut-off for next day delivery Sun delivery unavailable National Holidays/ holidays unavailable add £10 surcharge for Saturday Deliveries. Initially I was looking at this plugin, however this delivery option is only [...]]]></description>
										<content:encoded><![CDATA[<p>My brief was to add a delivery date picker to a Woocommerce website selling gift hampers. There were a few conditions required on the datepicker;</p>
<ul>
<li>5pm cut-off for next day delivery</li>
<li>Sun delivery unavailable</li>
<li>National Holidays/ holidays unavailable</li>
<li>add £10 surcharge for Saturday Deliveries.</li>
</ul>
<p>Initially I was looking at <a href="http://www.tychesoftwares.com/store/premium-plugins/order-delivery-date-for-woocommerce-pro-21/" target="_blank">this plugin</a>, however this delivery option is only at checkout, and applies to all products. What if I need to specify the delivery date selection on a per product basis? The solution was to first use <a href="http://www.woothemes.com/products/product-add-ons/" target="_blank">WooCommerce Product Addons</a> to add 2 global addons.</p>
<ul>
<li>Delivery date text field (to add datepicker.js onto)</li>
<li>Saturday Delivery checkbox field with £10 addon when active</li>
</ul>
<p>Next I call the jQuery UI library and my custom datepicker.js file.</p>
<pre class="lang:php decode:true ">/*-----------------------------------------------------------------------------------*/
/* Delivery Custom Datepicker */
/*-----------------------------------------------------------------------------------*/
add_action( 'wp_enqueue_scripts', 'custom_enqueue_datepicker' );
 
function custom_enqueue_datepicker() {
	// Optional - enqueue styles
	wp_enqueue_style( 'jquery-ui', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.21/themes/smoothness/jquery-ui.css', false, '1.0', false );
	
	// Enqueue YOURTHEME/js/datepicker.js
	wp_enqueue_script(  'your-datepicker-script', get_stylesheet_directory_uri() . '/js/datepicker.js', array( 'jquery', 'jquery-ui-datepicker' ), '1.0', true );
}</pre>
<p>Now I add the datepicker.js file within my theme&#8217;s js/ folder.</p>
<pre class="lang:js decode:true">jQuery(document).ready(function($) { 
	var dateMin = new Date();
    var weekDays = AddWeekDays(1);

    dateMin.setDate(dateMin.getDate() + weekDays);

    var natDays = [
      [1, 1, 'uk'], //New Years Day
      [12, 25, 'uk'], //Xmas Day
      [12, 26, 'uk'] //Boxing Day
    ];

    function noWeekendsOrHolidays(date) {
        var noWeekend = date.getDay();
                  
        if (noWeekend &gt; 0) {
            return nationalDays(date);
        } else {
            return [(noWeekend &gt; 0), ''];
        }
    }
    
    function nationalDays(date) {
        for (i = 0; i &lt; natDays.length; i++) {
            if (date.getMonth() == natDays[i][0] - 1 &amp;&amp; date.getDate() == natDays[i][1]) {
                return [false, natDays[i][2] + '_day'];
            }
        }
        return [true, ''];
    }
    
    function AddWeekDays(weekDaysToAdd) {
        var mydate = new Date()
        if (mydate.getHours()&gt;=17) var daysToAdd = 1 // 5pm Cut Off
        else var daysToAdd = 0
        var day = mydate.getDay()
        weekDaysToAdd = weekDaysToAdd - (5 - day)
        if ((5 - day) &lt; weekDaysToAdd || weekDaysToAdd == 1) {
            daysToAdd = (5 - day) + 2 + daysToAdd
        } else { // (5-day) &gt;= weekDaysToAdd
            daysToAdd = (5 - day) + daysToAdd
        }
        while (weekDaysToAdd != 0) {
            var week = weekDaysToAdd - 5
            if (week &gt; 0) {
                daysToAdd = 7 + daysToAdd
                weekDaysToAdd = weekDaysToAdd - 5
            } else { // week &lt; 0
                daysToAdd = (5 + week) + daysToAdd
                weekDaysToAdd = weekDaysToAdd - (5 + week)
            }
        }

        return daysToAdd;
    }
    //Add datepicker to Woocommerce Addon field
    jQuery( ".product-addon-delivery-date input" ).datepicker({
        beforeShowDay: noWeekendsOrHolidays,
        minDate: dateMin,
        defaultDate: +1,
        firstDay: 1,
        changeFirstDay: true,
        dateFormat: "DD dd-mm-yy"
    });
    
});</pre>
<p>Now the datepicker is using the conditions required I just need to add the Saturday delivery charge. The date is outputting the long day name (DD) into the field. So lets check the date field for the word &#8216;Saturday&#8217; and if  present check the addon checkbox. If no present, uncheck the addon checkbox.</p>
<pre class="lang:js decode:true ">jQuery( ".product-addon-delivery-date input" ).change(function() {
    if ( $(this).val().indexOf("Saturday") &gt; -1 ) {
        $('.product-addon-saturday-delivery input').attr('checked','checked');
    } else {
            $( ".product-addon-saturday-delivery input" ).prop( "checked", false );
           }
	});</pre>
<p>Finally hide the Saturday Delivery field with some CSS. Final result <a href="#" target="_blank">here</a></p><p>The post <a href="https://www.ashley-hollinworth.co.uk/woocommerce-advanced-delivery-datepicker-per-product/">Woocommerce Advanced Delivery Datepicker per Product</a> first appeared on <a href="https://www.ashley-hollinworth.co.uk">Ashley Hollinworth / Front-end Web Developer & Designer / Wakefield, West Yorkshire</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.ashley-hollinworth.co.uk/woocommerce-advanced-delivery-datepicker-per-product/feed/</wfw:commentRss>
			<slash:comments>8</slash:comments>
		
		
			</item>
		<item>
		<title>Order WordPress Custom Post Type Lists by Column</title>
		<link>https://www.ashley-hollinworth.co.uk/order-wordpress-custom-post-type-lists-by-column/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=order-wordpress-custom-post-type-lists-by-column</link>
					<comments>https://www.ashley-hollinworth.co.uk/order-wordpress-custom-post-type-lists-by-column/#respond</comments>
		
		<dc:creator><![CDATA[Ash]]></dc:creator>
		<pubDate>Fri, 22 Aug 2014 16:32:54 +0000</pubDate>
				<category><![CDATA[Snippits]]></category>
		<category><![CDATA[WooCommerce]]></category>
		<category><![CDATA[Wordpress]]></category>
		<guid isPermaLink="false">http://blog.local/?p=35</guid>

					<description><![CDATA[By default, posts are sorted by the date published. Paste the code below into your theme's functions.php file to order the posts differently //order custom post type posts list in admin function posts_for_current_author($query) { if($query-&gt;is_admin) { if ($query-&gt;get('post_type') == 'members') //custom post type { $query-&gt;set('orderby', 'title'); //order by this column $query-&gt;set('order', 'ASC'); } } return [...]]]></description>
										<content:encoded><![CDATA[<p>By default, posts are sorted by the date published.</p>
<p>Paste the code below into your theme&#8217;s functions.php file to order the posts differently</p>
<pre class="lang:php decode:true ">//order custom post type posts list in admin
function posts_for_current_author($query) {
 
  if($query-&gt;is_admin) {
 
        if ($query-&gt;get('post_type') == 'members') //custom post type
        {
          $query-&gt;set('orderby', 'title'); //order by this column
          $query-&gt;set('order', 'ASC');
        }
  }
  return $query;
}
add_filter('pre_get_posts', 'posts_for_current_author');</pre>
<p>&nbsp;</p><p>The post <a href="https://www.ashley-hollinworth.co.uk/order-wordpress-custom-post-type-lists-by-column/">Order WordPress Custom Post Type Lists by Column</a> first appeared on <a href="https://www.ashley-hollinworth.co.uk">Ashley Hollinworth / Front-end Web Developer & Designer / Wakefield, West Yorkshire</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.ashley-hollinworth.co.uk/order-wordpress-custom-post-type-lists-by-column/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Display Latest WordPress Posts on Single Post Page, Omitting The Post Currently Being Viewed</title>
		<link>https://www.ashley-hollinworth.co.uk/display-latest-wordpress-posts-on-single-post-page-omitting-the-post-currently-being-viewed/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=display-latest-wordpress-posts-on-single-post-page-omitting-the-post-currently-being-viewed</link>
					<comments>https://www.ashley-hollinworth.co.uk/display-latest-wordpress-posts-on-single-post-page-omitting-the-post-currently-being-viewed/#respond</comments>
		
		<dc:creator><![CDATA[Ash]]></dc:creator>
		<pubDate>Fri, 22 Aug 2014 10:12:41 +0000</pubDate>
				<category><![CDATA[Snippits]]></category>
		<category><![CDATA[Wordpress]]></category>
		<guid isPermaLink="false">http://blog.local/?p=29</guid>

					<description><![CDATA[You want to show other recent posts on your single post page, however you don't want the currently viewed post to be repeated and show in the list. &lt;?php $args = array( 'post_type' =&gt; 'post', 'post__not_in' =&gt; array($post-&gt;ID), ); $query = new WP_Query($args); if ($query-&gt;have_posts()) : while ($query-&gt;have_posts()) : $query-&gt;the_post(); ?&gt; &lt;!-- Example Code --&gt; [...]]]></description>
										<content:encoded><![CDATA[<p>You want to show other recent posts on your single post page, however you don&#8217;t want the currently viewed post to be repeated and show in the list.</p>
<pre class="lang:php decode:true ">&lt;?php
	$args = array(
	 'post_type' =&gt; 'post',
	 'post__not_in' =&gt; array($post-&gt;ID),			
	);
	
        $query = new WP_Query($args);
				 
	if ($query-&gt;have_posts()) : while ($query-&gt;have_posts()) : $query-&gt;the_post(); 
				
?&gt;
				 
					
			        &lt;!-- Example Code --&gt;
				&lt;a href="&lt;?php the_permalink(); ?&gt;"&gt;&lt;h4&gt;&lt;?php the_title(); ?&gt;&lt;/h4&gt;&lt;/a&gt;
					
				 
				&lt;?php endwhile; endif; ?&gt;</pre>
<p>&nbsp;</p><p>The post <a href="https://www.ashley-hollinworth.co.uk/display-latest-wordpress-posts-on-single-post-page-omitting-the-post-currently-being-viewed/">Display Latest WordPress Posts on Single Post Page, Omitting The Post Currently Being Viewed</a> first appeared on <a href="https://www.ashley-hollinworth.co.uk">Ashley Hollinworth / Front-end Web Developer & Designer / Wakefield, West Yorkshire</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.ashley-hollinworth.co.uk/display-latest-wordpress-posts-on-single-post-page-omitting-the-post-currently-being-viewed/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Make Gravity Forms Address Fields more British</title>
		<link>https://www.ashley-hollinworth.co.uk/make-gravity-forms-address-fields-more-british/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=make-gravity-forms-address-fields-more-british</link>
					<comments>https://www.ashley-hollinworth.co.uk/make-gravity-forms-address-fields-more-british/#respond</comments>
		
		<dc:creator><![CDATA[Ash]]></dc:creator>
		<pubDate>Mon, 18 Aug 2014 09:56:10 +0000</pubDate>
				<category><![CDATA[Snippits]]></category>
		<category><![CDATA[Gravity Forms]]></category>
		<category><![CDATA[Wordpress]]></category>
		<guid isPermaLink="false">http://blog.local/?p=19</guid>

					<description><![CDATA[The address fields in Gravity Forms are very much international based, and it's a good idea to modify these if your website is targeting mainly a UK audience. Add the code below to your theme's functions.php file. // Function to make the address fields GravityForms more British. add_filter("gform_address_types", "uk_address", 10, 2); function uk_address($address_types, $form_id){ $address_types["uk"] [...]]]></description>
										<content:encoded><![CDATA[<p>The address fields in Gravity Forms are very much international based, and it&#8217;s a good idea to modify these if your website is targeting mainly a UK audience.</p>
<p>Add the code below to your theme&#8217;s functions.php file.</p>
<pre class="lang:php decode:true ">// Function to make the address fields GravityForms more British.
add_filter("gform_address_types", "uk_address", 10, 2);
function uk_address($address_types, $form_id){
$address_types["uk"] = array(
"label" =&gt; "UK",
"country" =&gt; "United Kingdom",
"zip_label" =&gt; "Postcode",
"state_label" =&gt; "County",
"states" =&gt; array("Aberdeenshire"=&gt;"Aberdeenshire","Angus/Forfarshire"=&gt;"Angus/Forfarshire","Argyllshire"=&gt;"Argyllshire","Ayrshire"=&gt;"Ayrshire","Banffshire"=&gt;"Banffshire","Bedfordshire"=&gt;"Bedfordshire","Berkshire"=&gt;"Berkshire",
"Berwickshire"=&gt;"Berwickshire","Blaenau Gwent"=&gt;"Blaenau Gwent","Bridgend"=&gt;"Bridgend","Buckinghamshire"=&gt;"Buckinghamshire","Buteshire"=&gt;"Buteshire","Caerphilly"=&gt;"Caerphilly","Caithness"=&gt;"Caithness",
"Cambridgeshire"=&gt;"Cambridgeshire","Cardiff"=&gt;"Cardiff","Carmarthenshire"=&gt;"Carmarthenshire","Ceredigion"=&gt;"Ceredigion","Cheshire"=&gt;"Cheshire","Clackmannanshire"=&gt;"Clackmannanshire",
"Conwy"=&gt;"Conwy","Cornwall"=&gt;"Cornwall","Cromartyshire"=&gt;"Cromartyshire","Cumberland"=&gt;"Cumberland","Denbighshire"=&gt;"Denbighshire","Derbyshire"=&gt;"Derbyshire","Devon"=&gt;"Devon","Dorset"=&gt;"Dorset",
"Dumfriesshire"=&gt;"Dumfriesshire","Dunbartonshire/Dumbartonshire"=&gt;"Dunbartonshire/Dumbartonshire","Durham"=&gt;"Durham","East Lothian/Haddingtonshire"=&gt;"East Lothian/Haddingtonshire","Essex"=&gt;"Essex","Fife"=&gt;"Fife",
"Flintshire"=&gt;"Flintshire","Gloucestershire"=&gt;"Gloucestershire","Gwynedd"=&gt;"Gwynedd","Hampshire"=&gt;"Hampshire","Herefordshire"=&gt;"Herefordshire","Hertfordshire"=&gt;"Hertfordshire","Huntingdonshire"=&gt;"Huntingdonshire",
"Inverness-shire"=&gt;"Inverness-shire","Isle of Anglesey"=&gt;"Isle of Anglesey","Kent"=&gt;"Kent","Kincardineshire"=&gt;"Kincardineshire","Kinross-shire"=&gt;"Kinross-shire","Kirkcudbrightshire"=&gt;"Kirkcudbrightshire",
"Lanarkshire"=&gt;"Lanarkshire","Lancashire"=&gt;"Lancashire","Leicestershire"=&gt;"Leicestershire","Lincolnshire"=&gt;"Lincolnshire","Merthyr Tydfil"=&gt;"Merthyr Tydfil","Middlesex"=&gt;"Middlesex",
"Midlothian/Edinburghshire"=&gt;"Midlothian/Edinburghshire","Monmouthshire"=&gt;"Monmouthshire","Morayshire"=&gt;"Morayshire","Nairnshire"=&gt;"Nairnshire","Neath Port Talbot"=&gt;"Neath Port Talbot",
"Newport"=&gt;"Newport","Norfolk"=&gt;"Norfolk","Northamptonshire"=&gt;"Northamptonshire","Northumberland"=&gt;"Northumberland","Nottinghamshire"=&gt;"Nottinghamshire","Orkney"=&gt;"Orkney",
"Oxfordshire"=&gt;"Oxfordshire","Peeblesshire"=&gt;"Peeblesshire","Pembrokeshire"=&gt;"Pembrokeshire","Perthshire"=&gt;"Perthshire","Powys"=&gt;"Powys","Renfrewshire"=&gt;"Renfrewshire",
"Rhondda Cynon Taff"=&gt;"Rhondda Cynon Taff","Ross-shire"=&gt;"Ross-shire","Roxburghshire"=&gt;"Roxburghshire","Rutland"=&gt;"Rutland","Selkirkshire"=&gt;"Selkirkshire","Shetland"=&gt;"Shetland","Shropshire"=&gt;"Shropshire",
"Somerset"=&gt;"Somerset","Staffordshire"=&gt;"Staffordshire","Stirlingshire"=&gt;"Stirlingshire","Suffolk"=&gt;"Suffolk","Surrey"=&gt;"Surrey","Sussex"=&gt;"Sussex","Sutherland"=&gt;"Sutherland","Swansea"=&gt;"Swansea","Torfaen"=&gt;"Torfaen",
"Vale of Glamorgan"=&gt;"Vale of Glamorgan","Warwickshire"=&gt;"Warwickshire","West Lothian/Linlithgowshire"=&gt;"West Lothian/Linlithgowshire","Westmorland"=&gt;"Westmorland",
"Wigtownshire"=&gt;"Wigtownshire","Wiltshire"=&gt;"Wiltshire","Worcestershire"=&gt;"Worcestershire","Wrexham"=&gt;"Wrexham","Yorkshire"=&gt;"Yorkshire")
);
return $address_types;
}</pre>
<p>&nbsp;</p><p>The post <a href="https://www.ashley-hollinworth.co.uk/make-gravity-forms-address-fields-more-british/">Make Gravity Forms Address Fields more British</a> first appeared on <a href="https://www.ashley-hollinworth.co.uk">Ashley Hollinworth / Front-end Web Developer & Designer / Wakefield, West Yorkshire</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.ashley-hollinworth.co.uk/make-gravity-forms-address-fields-more-british/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Remove Unused WordPress User Roles</title>
		<link>https://www.ashley-hollinworth.co.uk/remove-unused-wordpress-user-roles/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=remove-unused-wordpress-user-roles</link>
					<comments>https://www.ashley-hollinworth.co.uk/remove-unused-wordpress-user-roles/#respond</comments>
		
		<dc:creator><![CDATA[Ash]]></dc:creator>
		<pubDate>Wed, 13 Aug 2014 10:01:40 +0000</pubDate>
				<category><![CDATA[Snippits]]></category>
		<category><![CDATA[Wordpress]]></category>
		<guid isPermaLink="false">http://blog.local/?p=23</guid>

					<description><![CDATA[To simplify the user roles option for your client, remove any unused roles from Wordpress. Paste the following code into your them's functions.php file. //Remove unused user roles remove_role('subscriber'); remove_role('author'); remove_role('contributor');    ]]></description>
										<content:encoded><![CDATA[<p>To simplify the user roles option for your client, remove any unused roles from WordPress.</p>
<p>Paste the following code into your them&#8217;s functions.php file.</p>
<pre class="lang:php decode:true ">//Remove unused user roles
remove_role('subscriber');
remove_role('author');
remove_role('contributor');</pre>
<p>&nbsp;</p>
<p>&nbsp;</p><p>The post <a href="https://www.ashley-hollinworth.co.uk/remove-unused-wordpress-user-roles/">Remove Unused WordPress User Roles</a> first appeared on <a href="https://www.ashley-hollinworth.co.uk">Ashley Hollinworth / Front-end Web Developer & Designer / Wakefield, West Yorkshire</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.ashley-hollinworth.co.uk/remove-unused-wordpress-user-roles/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Edit The Number Of Related Products on WooCommerce Single Product Page</title>
		<link>https://www.ashley-hollinworth.co.uk/edit-the-number-of-related-products-on-woocommerce-single-product-page/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=edit-the-number-of-related-products-on-woocommerce-single-product-page</link>
					<comments>https://www.ashley-hollinworth.co.uk/edit-the-number-of-related-products-on-woocommerce-single-product-page/#respond</comments>
		
		<dc:creator><![CDATA[Ash]]></dc:creator>
		<pubDate>Sat, 02 Aug 2014 09:58:53 +0000</pubDate>
				<category><![CDATA[Snippits]]></category>
		<category><![CDATA[WooCommerce]]></category>
		<category><![CDATA[Wordpress]]></category>
		<guid isPermaLink="false">http://blog.local/?p=21</guid>

					<description><![CDATA[By default Woocommerce displays 4 related products on your website's single-product page. Modify the output using the function below. Paste the code below into your theme's functions.php file. // Redefine woocommerce_output_related_products() function woocommerce_output_related_products() { woocommerce_related_products(6,3); // Display 6 products in rows of 3 }  ]]></description>
										<content:encoded><![CDATA[<p>By default Woocommerce displays 4 related products on your website&#8217;s single-product page. Modify the output using the function below.</p>
<p>Paste the code below into your theme&#8217;s functions.php file.</p>
<pre class="lang:default decode:true">// Redefine woocommerce_output_related_products()
function woocommerce_output_related_products() {
woocommerce_related_products(6,3); // Display 6 products in rows of 3
}</pre>
<p>&nbsp;</p><p>The post <a href="https://www.ashley-hollinworth.co.uk/edit-the-number-of-related-products-on-woocommerce-single-product-page/">Edit The Number Of Related Products on WooCommerce Single Product Page</a> first appeared on <a href="https://www.ashley-hollinworth.co.uk">Ashley Hollinworth / Front-end Web Developer & Designer / Wakefield, West Yorkshire</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.ashley-hollinworth.co.uk/edit-the-number-of-related-products-on-woocommerce-single-product-page/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Remove &#8216;Install WooCommerce Updater Plugin&#8217; Notice</title>
		<link>https://www.ashley-hollinworth.co.uk/remove-install-woocommerce-updater-plugin-notice/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=remove-install-woocommerce-updater-plugin-notice</link>
					<comments>https://www.ashley-hollinworth.co.uk/remove-install-woocommerce-updater-plugin-notice/#respond</comments>
		
		<dc:creator><![CDATA[Ash]]></dc:creator>
		<pubDate>Tue, 29 Jul 2014 10:56:27 +0000</pubDate>
				<category><![CDATA[Snippits]]></category>
		<category><![CDATA[WooCommerce]]></category>
		<category><![CDATA[Wordpress]]></category>
		<guid isPermaLink="false">http://blog.local/?p=32</guid>

					<description><![CDATA[If you don't have the plugin installed, this notice will appear in the Dashboard for Shop Mangers and Admins. Hide this from your client by pasting the following into your theme's functions.php file. // Remove Woocomerce Updater Notice remove_action( 'admin_notices', 'woothemes_updater_notice' );  ]]></description>
										<content:encoded><![CDATA[<p>If you don&#8217;t have the plugin installed, this notice will appear in the Dashboard for Shop Mangers and Admins. Hide this from your client by pasting the following into your theme&#8217;s functions.php file.</p>
<pre class="lang:php decode:true ">// Remove Woocomerce Updater Notice
remove_action( 'admin_notices', 'woothemes_updater_notice' );</pre>
<p>&nbsp;</p><p>The post <a href="https://www.ashley-hollinworth.co.uk/remove-install-woocommerce-updater-plugin-notice/">Remove ‘Install WooCommerce Updater Plugin’ Notice</a> first appeared on <a href="https://www.ashley-hollinworth.co.uk">Ashley Hollinworth / Front-end Web Developer & Designer / Wakefield, West Yorkshire</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://www.ashley-hollinworth.co.uk/remove-install-woocommerce-updater-plugin-notice/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
