Blog

Adding Custom Fieldsets to Gravity Forms

Fieldsets are important in ADA compliance because they help tell screen readers that a group of fields belong together and can share a label. This enhancement makes it easier for those using screen readers to use your site and navigate your forms, and you certainly don’t want to give anyone any obstacles in using your site! Now, what if you’re using Gravity Forms to create your forms?  Gravity Forms allows you to add certain grouped fields that will automatically add a fieldset around them. These are fields like Address, Name, and other combined information. This can be helpful, but it also can be very restrictive. You must choose fields that are certain field types and only have a maximum amount. It is true that you can modify the title of a “name” field – such as “middle name” – to identify it as accepting an email address, but you’ll lose

There's More »

WordPress Hooks – The Difference Between Actions and Filters

WordPress handles most of what’s needed to output your content to the user’s screen with PHP and SQL, producing that information in HTML with the capability to manipulate it further with JavaScript. However, there may be times when you want to modify how WordPress works with that data on the back end or how it’s displayed to the user. There are a few reasons for this, including ensuring ADA compatibility, modifying content before it’s saved, or simply deferring enqueued JavaScript files. In circumstances where you need to alter the data, either to change it before output or to add an additional function while something is loading, WordPress offers hooks in two flavors: Actions and FIlters.  So, what is a WordPress hook? It is an additional function that you can use in order to interrupt WordPress’s normal operations and run some of your own. This can be very handy because WordPress

There's More »

Enqueueing JavaScript and CSS Files In Your WordPress Theme

When you’re building a theme, it is important to be able to use CSS stylesheets or JavaScript files where necessary. Sometimes you only want a script or stylesheet included on a specific custom post type or template, you might be adding some fancy JavaScript to modify your site, or you may just want to add different stylesheets for different media values. WordPress is not picky about allowing you to add additional files and it is well within your capabilities when written properly. In order to add files correctly, you’ll have to use the enqueue functions available within WordPress. Enqueuing the files this way ensures both full control and the ability to filter the HTML if needed. It is important to note that these files will only appear in your theme when you use wp_header() and wp_footer() within the head of your theme and just before the ending element for the

There's More »

The Short Echo Tag in PHP

Using the short echo tag (“<?=”) in PHP was rumored to be deprecated because the short PHP tags (“<?”) were slated to be. Those short open tags were scheduled to be removed due to XML’s opening tags conflicting directly with them. Even though XML’s opening tags conflict with the defunct PHP short open tags, the short echo tag does not! Therefore, it is perfectly okay to use the short open tags in PHP as long as your code doesn’t need to work below PHP 5.4 – Which shouldn’t be a problem!

There's More »

Posted on January 12th, 2016 in PHP

Building a WordPress Theme

Building a WordPress Theme Part 1 – Setting up the stylesheet and the file structure There are many articles out there on building a WordPress theme, and many different techniques for doing so. I would like to tell you what I’ve learned, the best practices I’ve found, and the easiest path for creating a WordPress theme. If you want to include additional functionality, I suggest you use a plugin. If you’re just looking to style your website, then a template is what you’re after. The first step is to ensure that you have the latest version of WordPress installed on your server. Starting Out: Okay, WordPress is installed. Now what? Start by creating a directory in the wp-content/themes/ folder with an obvious and appropriate title. All of the theme’s work will go into this folder, such as your images, JavaScript, additional CSS, etc. The Stylesheet A theme’s default stylesheet is

There's More »

WordPress 4.3 “Billie” Released

WordPress 4.3 – Billie WordPress 4.3, or “Billie” (named for jazz singer Billie Holiday), was released on Tuesday, August 18th. Every new Core release is a big deal for the WordPress community because it signifies work put into making a better product, providing a better CMS, and making WordPress more accessible and fun for everyone. WordPress 4.3 is exciting not just because it signifies another step forward for this community, but also because it boasts some amazing new features! Billie Release Video Stronger suggested passwords for users Security is always a concern in anything, whether it’s on the web or within a room, you need a strong lock on that door. WordPress now suggests extremely strong autogenerated passwords to new users or those who have forgotten their passwords. This helps prevent against brute force guessing and makes all WordPress sites more secure when used. Comments are automatically turned off for

There's More »

WordPress Theme Tips and Tricks

A short list of WordPress theme tips and tricks to get you started This is not intended to be a concise and perfect tutorial for beginners to start their very own theme from scratch. There’s already a multitude of tutorials on the web available for this. For example, Line25 provides a list of the best 15 tutorials for starting out. This is meant to be more of a standards and best practices worksheet. This is meant to be amended and revised as new techniques are learned and discovered. WordPress is constantly updating, so so should our knowledge of best practices. The following WordPress theme Tips and Tricks are meant for beginners to get started creating a theme correctly. Starting Out: Okay, WordPress is installed. Now what? You’ve installed WordPress correctly and tested the database. You’ve played around with some of the features, looked at plugins, and even posted a page

There's More »