• 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 Theme

WordPress Theme

Create WordPress Child Theme

Last updated on November 1, 2019 by Sal Ferrarello

You can quickly create a WordPress child theme by creating a new theme directory and adding two files: style.css and functions.php.

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

Filed Under: Draft, Programming Tagged With: WordPress, WordPress Theme

Genesis Child Theme Load style.css with Version Number

Last updated on January 31, 2019 by Sal Ferrarello

How to get your Genesis Child Theme to load style.css with a cache busting ver URL parameter based on the version defined in the header of style.css.

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

Filed Under: Draft, Programming, Solution Tagged With: cache, CSS, Genesis, WordPress Theme

Genesis Remove Superfish JavaScript

Last updated on August 13, 2018 by Sal Ferrarello

By default the Wordpress Genesis theme framework loads the jQuery Superfish Menu Plugin to help the menu display properly. If you’re displaying your menu in a way that doesn’t need Superfish, you can remove it with the following code.

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

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

Featured Image Label for WordPress

Last updated on August 13, 2018 by Sal Ferrarello

I often find it helpful to add a label to the Featured Image area in the WordPress admin. By guiding clients to upload the appropriate sized image, it lets me avoid them being surprised by WordPress cropping their image in an unexpected way.

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

Filed Under: Draft, Programming Tagged With: WordPress Filter, WordPress Theme

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

Load Newest CSS in WordPress

Last updated on August 2, 2018 by Sal Ferrarello

When developing a WordPress theme, I often need to ensure I’m loading the latest version of the CSS file I’m working on. One way to do this is by appending a URL parameter (e.g. ?ver=123) that gets updated each time the file gets updated. Load Newest Assets Plugin Thanks to Corey Salzano for pointing out […]

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

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

WordPress Theme Path and URI

Last updated on July 17, 2018 by Sal Ferrarello

WordPress comes with some helper functions for finding a theme’s path and/or URI, which are tremendously useful but I always have to look them up. Therefore, I’m making note of them here so I know where to look them up: get_stylesheet_directory(), get_stylesheet_directory_uri(), get_template_directory(), get_template_directory_uri()

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

Filed Under: Dev Tips, Draft, Programming Tagged With: WordPress, 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 runner at the starting line

Genesis Starter Theme

Last updated on April 18, 2017 by Sal Ferrarello

As a WordPress developer, when I’m building a WordPress theme my strong preference is to build on the Genesis Framework. I’ve written about Why the Genesis Framework is Great. Pre-Made Genesis Child Themes The Genesis Framework is a parent theme that needs a child theme to go with it (Genesis does the heavy lifting and […]

Filed Under: Dev Tips, Programming, Recommendations Tagged With: Genesis, WordPress Theme

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