<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ashley Armstrong</title>
    <description>The latest articles on DEV Community by Ashley Armstrong (@aarmstrongplott).</description>
    <link>https://dev.to/aarmstrongplott</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F183950%2F89dbf2a8-9cdb-4f43-bbbd-fea3cba20577.jpg</url>
      <title>DEV Community: Ashley Armstrong</title>
      <link>https://dev.to/aarmstrongplott</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/aarmstrongplott"/>
    <language>en</language>
    <item>
      <title>My list of plugins I use daily and why. 🔌</title>
      <dc:creator>Ashley Armstrong</dc:creator>
      <pubDate>Sun, 24 Jul 2022 20:33:23 +0000</pubDate>
      <link>https://dev.to/aarmstrongplott/my-list-of-plugins-i-use-daily-and-why-3enf</link>
      <guid>https://dev.to/aarmstrongplott/my-list-of-plugins-i-use-daily-and-why-3enf</guid>
      <description>&lt;p&gt;So WordPress still powers around 30% ⚡ of the worlds sites, which roughly equates to 455 million websites&lt;sup&gt;[1]&lt;/sup&gt;. I'd estimate that each site using a least one plugin, wether that be create custom post types, or protect their site from spam comments or contact form submissions. &lt;/p&gt;

&lt;p&gt;I have a certain plugin suite to extend WordPress, below is the list of plugins we use and why we use them. So lets just dive straight into them!&lt;/p&gt;

&lt;h2&gt;
  
  
  ACF (Advanced Custom Fields)
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://www.advancedcustomfields.com/"&gt;Link to ACF&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;ACF allows developers to add different types of components to pages, templates and custom posts. Ranging from simple text and WYSIWYG fields, to gallery and repeating fields.&lt;/p&gt;

&lt;p&gt;We use ACF as we build bespoke websites and this helps us build templates, quicker and easier.&lt;/p&gt;

&lt;h2&gt;
  
  
  Gravity Forms
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://www.gravityforms.com/"&gt;Link to Gravity Forms&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Gravity Forms is the form builder we use. Yes, we could have chosen Ninja Forms, Formidable, or even Contact Form 7. But we realised quickly there were a-lot of extensions that will allow us to use Stripe, or extending it to use our marketing software Campaign Monitor. It's simple, and easy to build forms and allows dynamic data so we can change fields depending on links.&lt;/p&gt;

&lt;h2&gt;
  
  
  EWWW.IO
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://ewww.io/"&gt;Link to EWW.io&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;EWW is an image optimiser that allows you to delivery highly-optimised but still delivering high-quality images. We can also delivery images in WEBP format &lt;a href="https://developers.google.com/speed/webp"&gt;read more on WEBP from Google&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;These are our core suite of plugins, use anything different of similar? Comment below, I'd love to hear your thoughts!&lt;/p&gt;

&lt;p&gt;[1] &lt;a href="https://techjury.net/blog/percentage-of-wordpress-websites/#gref"&gt;What Percentage of Websites are WordPress in 2022?&lt;/a&gt;&lt;/p&gt;

</description>
      <category>wordpress</category>
      <category>plugin</category>
      <category>productivity</category>
      <category>discuss</category>
    </item>
    <item>
      <title>Some of my personal favourite functions</title>
      <dc:creator>Ashley Armstrong</dc:creator>
      <pubDate>Thu, 10 Jun 2021 19:58:40 +0000</pubDate>
      <link>https://dev.to/aarmstrongplott/some-of-my-personal-favourite-functions-8c6</link>
      <guid>https://dev.to/aarmstrongplott/some-of-my-personal-favourite-functions-8c6</guid>
      <description>&lt;h2&gt;
  
  
  Using Gravity Forms?
&lt;/h2&gt;

&lt;p&gt;You can only return a US or International Phone Number; using this function we can return a UK Phone Format:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
// Add UK phone number to Gravity Phone number using REGEX

add_filter( 'gform_phone_formats', 'uk_phone_format' );
function uk_phone_format( $phone_formats ) {
    $phone_formats['uk'] = array(
        'label'       =&amp;gt; 'UK',
        'mask'        =&amp;gt; false,
        'regex'       =&amp;gt; '/^(((\+44\s?\d{4}|\(?0\d{4}\)?)\s?\d{3}\s?\d{3})|((\+44\s?\d{3}|\(?0\d{3}\)?)\s?\d{3}\s?\d{4})|((\+44\s?\d{2}|\(?0\d{2}\)?)\s?\d{4}\s?\d{4}))(\s?\#(\d{4}|\d{3}))?$/',
        'instruction' =&amp;gt; false,
    );

    return $phone_formats;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Switch from Gutenberg to Classic Editor
&lt;/h2&gt;

&lt;p&gt;This will switch you back to the classic editor and remove the Gutenberg styling&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;add_filter("use_block_editor_for_post_type", "disable_gutenberg_editor");
function disable_gutenberg_editor(){
    return false;
}

//Remove Gutenberg Block Library CSS from loading on the frontend
function remove_wp_block_library_css(){
    wp_dequeue_style( 'wp-block-library' );
    wp_dequeue_style( 'wp-block-library-theme' );
    wp_dequeue_style( 'wc-block-style' ); // Remove WooCommerce block CSS
}
add_action( 'wp_enqueue_scripts', 'remove_wp_block_library_css', 100 );
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Reduce the risk of being hacked!
&lt;/h2&gt;

&lt;p&gt;Disabling XMLPRC can help reduce the amount of hackers trying to gain access to your site&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;add_filter('xmlrpc_enabled', '__return_false');
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Change the max image size before it's scaled.
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;add_filter( 'max_srcset_image_width', 'plott_max_srcset_image_width', 10 , 2 );

// set the max image width
function plott_max_srcset_image_width() {
    return 2200;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Change the url for the logo in WordPress admin login
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function theme_url( $url ) {
   return get_bloginfo( 'url' );
}

add_filter( 'login_headerurl', 'theme_url' );
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Change the category checkboxes to radio buttons
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;?php
function admin_js() { ?&amp;gt;
    &amp;lt;script type="text/javascript"&amp;gt;

        jQuery(document).ready( function () {
            jQuery('form#post').find('.categorychecklist input').each(function() {
                var new_input = jQuery('&amp;lt;input type="radio" /&amp;gt;'),
                    attrLen = this.attributes.length;

                for (i = 0; i &amp;lt; attrLen; i++) {
                    if (this.attributes[i].name != 'type') {
                        new_input.attr(this.attributes[i].name.toLowerCase(), this.attributes[i].value);
                    }
                }

                jQuery(this).replaceWith(new_input);
            });
        });

    &amp;lt;/script&amp;gt;
&amp;lt;?php }
add_action('admin_head', 'admin_js');
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There you go; some of best and favourite functions that I use to make my life easier when developing sites for clients that are always in my base theme.&lt;/p&gt;

</description>
      <category>functional</category>
      <category>wordpress</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Why is WordPress considered one of the top CMS’s?</title>
      <dc:creator>Ashley Armstrong</dc:creator>
      <pubDate>Wed, 09 Jun 2021 20:49:30 +0000</pubDate>
      <link>https://dev.to/aarmstrongplott/why-is-wordpress-considered-one-of-the-top-cms-s-296j</link>
      <guid>https://dev.to/aarmstrongplott/why-is-wordpress-considered-one-of-the-top-cms-s-296j</guid>
      <description>&lt;h1&gt;
  
  
  Welcome
&lt;/h1&gt;

&lt;p&gt;I use WordPress everyday in my job, here's why I believe it is considered one of the top CMS's on the market!&lt;/p&gt;

&lt;h2&gt;
  
  
  It’s FREE!
&lt;/h2&gt;

&lt;p&gt;The first thing to say is yes, it is free! The core WordPress system (which is downloadable via .org version of the site). Making WordPress free, is one of the main reasons why it’s so popular; it helped lowered the barrier to making high-quality professional sites.&lt;/p&gt;

&lt;p&gt;It is important to note that only the core WordPress software is free and any plugins and themes that you want, may come with a separate fee. &lt;/p&gt;

&lt;h2&gt;
  
  
  There’s a plugin for nearly everything!
&lt;/h2&gt;

&lt;p&gt;There are loads of talented developers/ companies out that create plugins to extend the core system. They can range from e-Commerce stores to forms and SEO, that can meet your needs.&lt;/p&gt;

&lt;p&gt;Plugins can be free or paid, some offer both, which can be very beneficial when evaluating your options. But normally a free version of the plugin will normally get the job done for you.&lt;/p&gt;

&lt;p&gt;Don’t know where to start? The best place to look first is the WordPress Plugin Repository. There are thousands to choose from free or paid. Have a read of which Plugins I use on a day-to-day basis and why I use them.&lt;/p&gt;

&lt;h2&gt;
  
  
  WordPress is top when looking for a blogging solution.
&lt;/h2&gt;

&lt;p&gt;WordPress started in 2003 as a blogging platform and 18 years on and it’s still going strong. It has also seen it’s fair share of competition in forms of Tumblr, Medium and Blogger. But they were not match for WordPress. &lt;/p&gt;

&lt;p&gt;With its simplicity, it’s easy to manage posts, scheduling of posts, having multiple authors or editors. You can easily create an online publishing platform or magazine, without even knowing a single line of code. You can even preview how it would look before you release it to the world.&lt;/p&gt;

&lt;h2&gt;
  
  
  You can do so much more than blogging with WordPress
&lt;/h2&gt;

&lt;p&gt;You don’t just use WordPress to create a blog you can create some of the following with WordPress;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;e-Learning Portal: Looking for somewhere to host a portal dedicated to learning online? Whether it’s to host online tutorials or somewhere pupils can share their work. You can build it with WordPress.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Invoicing Manager: Running a small business? You can integrate payment systems, using gateways like; stripe or PayPal and allow your clients to see and pay their invoices. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Job Portals: Running a recruitment agency? You can create a portal to upload jobs and allow prospective candidates apply for roles. You can easily categorise and managing listings in your agency making life easier.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Appointment Scheduling: Run a business where you need to allow clients to book appointments? You can build this in WordPress too. You can easily integrate it with Google, Apple or Outlook calendars. Allowing for a seamless User Experience for your clients that they’ll love.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Your website will grow with you!
&lt;/h2&gt;

&lt;p&gt;Whether you are just starting out or you already have a presence online you’ll be able to expand your WordPress website, I’ve worked on many different sized WordPress sites from 1 pagers to complex multi-paged sites that has over (150 pages).&lt;/p&gt;

&lt;p&gt;I would always recommend having a digital brand and web agency to do the hard work for you. We can create designs that will work for you and your business. We can help develop pages, content, designs and flexibility into your website. We let you focus on your business and allow you to grow. You can go it alone, using page builders/ themes however you will spend more time working on your website, rather than looking after your clients.&lt;/p&gt;

&lt;h2&gt;
  
  
  Managing your content is easy!
&lt;/h2&gt;

&lt;p&gt;Yes, it is easy. Where I work, we build websites and pages that allows you to add, change or remove content easily without breaking anything. It gives non-developers the freedom to allow what goes on to their site and what doesn’t. We create extensive page builders, options and templates that make it easy for client to choose what they want on their site.&lt;/p&gt;

&lt;h2&gt;
  
  
  It supports many media formats
&lt;/h2&gt;

&lt;p&gt;A quick tap into Google can show you all the different types of media formats you can use in WordPress here are the primary types that you can use:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;  Images (.jpeg, .png)&lt;/li&gt;
&lt;li&gt;  Documents (.pdf, .doc, .pptx)&lt;/li&gt;
&lt;li&gt;  Audio and video (.mp3, .mp4, .m4a, .mov, .wmv, and .avi)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can programme WordPress to accept other formats like .svg or .webp.&lt;/p&gt;

&lt;h2&gt;
  
  
  You’re in control of everything.
&lt;/h2&gt;

&lt;p&gt;WordPress grants you full control of everything relating to your website. Move site files with ease; build and expand your online store; do just about anything you need with WordPress. The majority of WordPress competitors out there aren’t open-source. And although they’ll do an adequate job of hosting your site, there’s a limit to their flexibility.&lt;/p&gt;

</description>
      <category>wordpress</category>
      <category>webdev</category>
      <category>www</category>
    </item>
    <item>
      <title>Responsive Background Images Mixin with SCSS</title>
      <dc:creator>Ashley Armstrong</dc:creator>
      <pubDate>Tue, 11 May 2021 09:49:20 +0000</pubDate>
      <link>https://dev.to/aarmstrongplott/responsive-background-images-mixin-with-scss-pdo</link>
      <guid>https://dev.to/aarmstrongplott/responsive-background-images-mixin-with-scss-pdo</guid>
      <description>&lt;p&gt;So responsive images are &lt;strong&gt;BRILLIANT&lt;/strong&gt; with Bootstraps handy html class&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.img-fluid
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I also use &lt;a href="https://ewww.io/"&gt;EWWW&lt;/a&gt; for optimizing my images on Wordpress and converting images to WEBP. &lt;/p&gt;

&lt;p&gt;However I wanted my background images to use have the same proportions whilst working responsively.&lt;/p&gt;

&lt;p&gt;I used the below mixin and it has changed my life. Give it try.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight scss"&gt;&lt;code&gt;&lt;span class="k"&gt;@mixin&lt;/span&gt; &lt;span class="nf"&gt;responsive-bg-image&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$image-width&lt;/span&gt;&lt;span class="o"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$image-height&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;background-size&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;cover&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;padding-bottom&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;percentage&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$image-height&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="nv"&gt;$image-width&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
  &lt;span class="nl"&gt;display&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;block&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;position&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;relative&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>What I've learnt in the past 2 years in the job and in life.</title>
      <dc:creator>Ashley Armstrong</dc:creator>
      <pubDate>Sun, 14 Feb 2021 11:19:37 +0000</pubDate>
      <link>https://dev.to/aarmstrongplott/what-i-ve-learnt-in-the-past-2-years-in-the-job-and-in-life-3ic9</link>
      <guid>https://dev.to/aarmstrongplott/what-i-ve-learnt-in-the-past-2-years-in-the-job-and-in-life-3ic9</guid>
      <description>&lt;p&gt;So I've been in the industry for almost 2 years! I love coding and have done for years. &lt;/p&gt;

&lt;p&gt;I have learnt a lot in my time from actually developing websites in WordPress to creating a meet up for junior web develops (WebJnr).&lt;/p&gt;

&lt;p&gt;But through all the companies I've been involved in here are some of the most of valuable lessons I have learnt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Always develop yourself
&lt;/h2&gt;

&lt;p&gt;Web development is one of most crucial parts of any developers career progression, not in terms of money or career progression. But can help you build more beautiful and amazing websites.&lt;/p&gt;

&lt;h2&gt;
  
  
  Look after #1
&lt;/h2&gt;

&lt;p&gt;Your mental, physical and digital health needs to be your number one priority, it's okay not to feel good that day, but extra steps can help you feel more relaxed. I was diagnosed with Imposter Syndrome last year and had to rapidly teach myself that I am accomplishing a-lot everyday, sometimes it may not be big achievements sometimes it is only small steps.&lt;/p&gt;

&lt;h2&gt;
  
  
  Don't be a YES person
&lt;/h2&gt;

&lt;p&gt;This has been something I have always done. For example being asked to do a project outside of hours and expect no gratitude for doing/ completing it. I have learnt not to say yes to every little thing and make sure the job is done correctly and that is of high quality.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep people who respect you close.
&lt;/h2&gt;

&lt;p&gt;In the agency I work with now, I have earned respect and have made some great professional and personal relationships. Which is something I have never had before and for this, has helped my mental health and think more clearly about certain people and traits.&lt;/p&gt;

&lt;h2&gt;
  
  
  BE YOURSELF
&lt;/h2&gt;

&lt;p&gt;Last but not least (I could go on forever), don't pretend to be someone you're not, just be yourself. For me that's be one of the guys, having a laugh whilst producing high quality and efficient code.&lt;/p&gt;

&lt;h4&gt;
  
  
  Conclusion
&lt;/h4&gt;

&lt;p&gt;Why am I writing this? I writing this because, the past 7/8 years in my life have been difficult and if one person reads this and makes a difference in their life. I feel then I have given someone comfort, understanding and strength from what I have written. &lt;/p&gt;

&lt;p&gt;This is something hard for me write about, but I don't need to hide anymore!&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>learning</category>
      <category>wordpress</category>
    </item>
    <item>
      <title>Am I a developer yet?</title>
      <dc:creator>Ashley Armstrong</dc:creator>
      <pubDate>Thu, 25 Jun 2020 14:05:55 +0000</pubDate>
      <link>https://dev.to/aarmstrongplott/am-i-a-developer-yet-4e8h</link>
      <guid>https://dev.to/aarmstrongplott/am-i-a-developer-yet-4e8h</guid>
      <description>&lt;p&gt;So I've been working with my current company for almost 9 months now! I've worked on some amazing projects but I quite a fan of my latest curation: &lt;a href="https://fuelbankfoundation.org/"&gt;https://fuelbankfoundation.org/&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I would love to get some honest feedback on the functionality and the smoothness of transitions ect.&lt;/p&gt;

&lt;p&gt;Thanks guys :D&lt;/p&gt;

&lt;p&gt;Post Image: &lt;a href="https://lattice.com/library/constructive-feedback-should-always-be-a-discussion"&gt;https://lattice.com/library/constructive-feedback-should-always-be-a-discussion&lt;/a&gt;&lt;/p&gt;

</description>
      <category>feedback</category>
      <category>wordpress</category>
    </item>
  </channel>
</rss>
