• Skip to primary navigation
  • Skip to main content
Sal Ferrarello
  • About Sal Ferrarello
  • Speaking
  • Connect
    Mastodon GitHub Twitter (inactive)
You are here: Home / Archives for WordPress Plugin

WordPress Plugin

Apply Bootstrap Classes to Gravity Forms Button

Last updated on August 9, 2018 by Sal Ferrarello

When working on a project, using Gravity Forms and Bootstrap, I wanted to style the buttons with Bootstrap. This code allows me to modify the markup output by the Gravity Forms WordPress plugin to use the Bootstrap classes.

Warning! This is a draft, not a finalized post. See full draft disclosure.

Filed Under: Draft, Programming, Solution Tagged With: Bootstrap, Gravity Forms, WordPress Plugin

Photograph of an organizer.

functions.php vs plugin vs mu-plugin for WordPress

Last updated on January 5, 2019 by Sal Ferrarello

It is common for articles on writing WordPress code to refer to adding the code to the functions.php file in the active theme. This is one location where code can be added but it isn’t always the best. Places to Add WordPress Code a new file in wp-content/mu-plugins a new plugin in wp-content/plugins the functions.php […]

Warning! This is a draft, not a finalized post. See full draft disclosure.

Filed Under: Dev Tips, Draft, Programming Tagged With: WordPress Plugin, WordPress Theme

WordPress Development Overlay

Last updated on July 14, 2018 by Sal Ferrarello

When doing WordPress theme development I find it helpful to overlay an image of the approved design on top of the code I’m working on. I use a reduced opacity on the image so I can see the code I’m working on. This helps me match things like font size and spacing. I’ve been doing […]

Warning! This is a draft, not a finalized post. See full draft disclosure.

Filed Under: Dev Tips, Draft, Solution Tagged With: JavaScript, WordPress Plugin, WordPress Theme

A photo of a ship's anchor

WordPress Anchor Shortcode Plugin

Last updated on October 25, 2017 by Sal Ferrarello

Once an article reaches a certain length, it is valuable to allow linking to a specific part of the page by creating anchor locations. Unfortunately, creating an anchor location in WordPress involves writing raw HTML, which is not an ideal client solution. There are other solutions out there but Blinebury Design wanted a specific set […]

Filed Under: Computing, Programming, Solution Tagged With: anchor, shortcode, WordPress Plugin

Building block car with extra pieces nearby

Make Your WordPress Plugin Easy to Extend

Last updated on October 14, 2017 by Sal Ferrarello

As a WordPress developer it is a painful (and all too familiar) feeling of angst, when I find a plugin that does almost exactly what I want but the author has left no way for me to modify the behavior without changing their code. Don’t Hack Core (or plugins) A popular refrain in WordPress developer […]

Filed Under: Dev Tips, Programming Tagged With: Templates, WordPress Filter, WordPress Plugin

Wall of Masks

Overridable Templates in Your WordPress Plugin

Last updated on October 14, 2017 by Sal Ferrarello

There are many WordPress plugins that allows you to provide your own template in your theme that overrides the default template (e.g. WooCommerce). I’d like to look at how you can add this functionality to your own plugin. Default Template For demonstration purposes I’ve created a WordPress plugin called the Raptor Button plugin. This plugin […]

Filed Under: Dev Tips, Programming Tagged With: Templates, WordPress Plugin

Squares with different countries' flags painted on them

Make Your Plugin Translatable

Last updated on June 26, 2018 by Sal Ferrarello

As we watch the number of non-English WordPress installations grow faster than English installations, the value of making your plugin “translation ready” grows as well. In order to make your plugin translatable (this is also know as Internationalization or I18n), there are three things you need to do. 1. Use Translation Functions Whenever you use […]

Filed Under: Dev Tips, Programming Tagged With: Internationalization (I18n), WordPress Plugin

A Telescope

Improve Genesis Theme Search

Last updated on October 3, 2017 by Sal Ferrarello

Over on the Yoast SEO Blog there is a great post on How to Improve WordPress Search. It is definitely worth a read (I can wait if you want to read it right now). I’m a big fan of the Genesis framework (see Why I Use the Genesis Framework) and implementing some of these changes […]

Filed Under: Programming, Solution Tagged With: Genesis, search, WordPress Plugin

Washing a Fork in the Sink

Delete Transients on Plugin Deactivation

Last updated on September 12, 2017 by Sal Ferrarello

When I was a child, my mother often reminded me to clean up after myself. While I’m pretty sure she was talking about the kitchen, this is great advice for plugin authors as well. When someone deactivates your plugin, it is good form to remove anything you added to the database. The most common place […]

Filed Under: Computing, Dev Tips, Programming Tagged With: cache, WordPress Plugin

Technician sanitizing operating equipment

WordPress sanitize_title() in JavaScript

Last updated on October 20, 2022 by Sal Ferrarello

Update While this article details my exploration in recreating the WordPress sanitize_title() behavior in JavaScript, since it was originally written WordPress core has added cleanForSlug(), which is part of the npm package @wordpress/url. I recommend using cleanForSlug() over this code. I was working on a project where I needed the functionality provided by the WordPress […]

Filed Under: Computing, Programming, Solution Tagged With: JavaScript, WordPress, WordPress Plugin

  • «Previous Page
  • Go to page 1
  • Go to page 2
  • Go to page 3
  • Go to page 4
  • Next Page»

Copyright © 2023 · Bootstrap4 Genesis on Genesis Framework · WordPress · Log in