WordPress – Advanced Custom Fields

WordPress – Advanced Custom Fields

Advanced Custom Fields (Official Site), this plugin is way too awesome not to mention. I’ve run into this WordPress Plugin (Plugin Page) over a dozen times in the course of my development work – I started realizing how powerful, flexible and stable this Plugin really is.

If you’re looking to add “Advanced”, “Custom”, “Fields” to your pages as the name suggests you’ll find a slick easy to use interface. Simply add the fields you want for your pages.

WordPress (backend) – Advanced Custom Fields Options

I myself thought I was all done – In this second step you’ll have to get your hands dirty with some PHP. Yeah this might be a little daunting if you aren’t tech savvy but you’ll be thankful you did, this all sounds cliche but for real practice makes perfect.

Continue reading “WordPress – Advanced Custom Fields”

WordPress AMP Plugin Errors due to New Relic Javascript Injection

Wordpress AMP Plugin Errors due to New Relic Javascript Injection

I was working on a high profile website under a big name and they had me implement the AMP plugin a couple months ago.

Pages were working great on mobile thanks to the WordPress AMP Plugin. Then after three months that’s when a bunch of errors started showing up on the Google AMP console and I later learned that these errors were very common.

Continue reading “WordPress AMP Plugin Errors due to New Relic Javascript Injection”

Big Commerce – Adding rel attributes to pagination

BigCommerce Adding Rel Attributes to Pagination

I was working on a BigCommerce site that needed rel attributes added to its pagination links. I’ve worked with BigCommerce sites in the past and I was curious if their backend had changed since then.

The rel=”next” and rel=”prev” link attributes are used to tell Google that each page in the series are unique – this eliminates duplicate content. This is similar to the rel=”canonical” attribute.

I dove right in – everything looked pretty much the same which was good, I needed that extra time to get familiarized again with where their template files were. I’m a big fan of BigCommerce – their backend is super slick. They’re working hard over there at BigCommerce.

Continue reading “Big Commerce – Adding rel attributes to pagination”

WordPress links with hashes and disabling a links normal behavior

WordPress allows for the creation of custom links within the Menu’s area. I like this feature, it has been around for years.

I use it sometimes to create internal and external links but there are cases where I wanted them disabled. In this case and as you may have experienced – a custom link requires a value. It’s pretty common to just put a hash “#” as a value.

Something like href=”#”. This however will cause the element to behave normally as it should – there’s nothing wrong with that except it will cause your page to “jump” back up to the top of the page which can be annoying for visitors.

Continue reading “WordPress links with hashes and disabling a links normal behavior”

WordPress – Removing AMP Plugin

AMP for WP - Removing AMP Plugin

I’m actually big fan of this wordpress plugin despite the bugs. The authors of this plugin I can tell have been working hard in fixing existing bugs and there are a lot of them, not an easy task. As a developer myself I know how wild code can get, so I give these guys mad respect and credit.

AMP for WP

Recently I was tasked with removing this plugin for a site. Disabling and removing the plugin was just the first step. The final step was to implement a redirect that would automatically redirect these amp urls to it’s respective non-amp url – leaving this as-is would be bad for SEO. And the client would not be happy to see their google rankings go down. So let’s take care of this.

Continue reading “WordPress – Removing AMP Plugin”

Github – Submitting a Pull Request

GitHub - Submitting a Pull Request

Overview

Submitting a Github Pull Request

A step by step guide on the pull request cycle. Submitting a pull request is part of a larger process in which external members can make modifications to the existing code base.

Forking

Fork target repository

Cloning involves making a copy of a git repository onto a local machine. In contrast, a fork is a cloning of one git repository to another repository.

Continue reading “Github – Submitting a Pull Request”