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.
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.
Custom breadcrumb using Breadcrumb NavXT
Learn more about using the actions and filters built into Breadcrumb NavXT to modify your breadcrumb trail.
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.
Extending your theme with add_theme_support
Learn how to utilise the built-in add theme support functionality to clean up your theme.
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.
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.
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.
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.