• Skip to primary navigation
  • Skip to main content
  • Skip to footer

Craig Simpson

  • Home
  • About
  • Plugins

Code Snippets

Keeping a note of useful code, and solutions to some of the code-related problems I've faced in WordPress development over the years.

5th June 2022 — 0

Creating A Simple Responsive Menu With Genesis & Alpine.js

My new blog theme is missing an important feature, a responsive menu with a toggle button. Let’s add it with Genesis and Alpine.js.

Read More in the article titled "Creating A Simple Responsive Menu With Genesis & Alpine.js"

15th March 2018 — 3

Custom breadcrumb using Breadcrumb NavXT

Learn more about using the actions and filters built into Breadcrumb NavXT to modify your breadcrumb trail.

Read More in the article titled "Custom breadcrumb using Breadcrumb NavXT"

15th March 2018 — 1

Initialise Soliloquy sliders loaded by AJAX

Learn how to manually initialise Soliloquy sliders, after they’ve been loaded dynamically with AJAX in combination with FacetWP.

Read More in the article titled "Initialise Soliloquy sliders loaded by AJAX"

20th September 2017 — 0

Extending your theme with add_theme_support

Learn how to utilise the built-in add theme support functionality to clean up your theme.

Read More in the article titled "Extending your theme with add_theme_support"

20th April 2017 — 4

How to render ACF Wysiwyg fields correctly

How to filter and format the content of your ACF WYSIWYG fields, and output them correctly on the frontend.

Read More in the article titled "How to render ACF Wysiwyg fields correctly"

23rd March 2017 — 0

How to filter the FacetWP Google Maps options

Learn how to filter the arguments passed to FacetWP Google Maps and in this case disable scrollwheel zoom.

Read More in the article titled "How to filter the FacetWP Google Maps options"

2nd May 2016 — 0

Enqueue Conditional Scripts & Styles for Internet Explorer

Learn how to use with the native WordPress methods to enqueue scripts and styles, to conditionally load them per browser.

Read More in the article titled "Enqueue Conditional Scripts & Styles for Internet Explorer"

25th August 2015 — 0

Add the day of the week as a body class to your WordPress website.

Learn how to filter the classes added to the body tag, and include the current day of the week.

Read More in the article titled "Add the day of the week as a body class to your WordPress website."
  • Go to page 1
  • Go to page 2
  • Next

Footer

Get more by email

Subscribe to my email newsletter for a monthly digest of my blog posts, as well as exclusive developer content and curated links to useful resources.

Copyright © 2015–2022 Craig Simpson • Built on the Genesis Framework

Twitter GitHub