A lightweight and skeletal WordPress boilerplate theme with powerful features to encourage rapid development

Barebones helps developers rapidly build and scale bespoke WordPress websites with an efficient workflow.

Build with Barebones

Currently 3.0.0

Recent Articles

ACF and WPML: Global Options values instead of different values for each language

Using Advanced Custom Fields and WPML, retrieve a global Option value regardless of the current active language.

WooCommerce: Post Title missing from Product page

If certain Product information is missing from your WordPress theme with WooCommerce support, this code snippet will help.

Add a WordPress Nonce to Log Out menu links to prevent 'Do you really want to log out?' message

How to add a Log Out link to your WordPress menus without encountering the 'Do you really want to log out?' message.

Assign a custom template to one or more post types

When you create a custom template in WordPress it will be available only to Pages by default. With this simple snippet, you can assign templates to one or more post types of your choice.

Order WordPress search results by post type

Learn how to order WordPress' search results by post type with a simple code snippet.

Include Advanced Custom Fields Flexible Layout content in the REST API

If you're using Advanced Custom Field's powerful Flexible Layout fields to create modular WordPress templates then you may find you need to include this content in the REST API output.

How to defer scripts in WordPress

Append the defer attribute to JavaScript files on your WordPress site in order to avoid render-blocking scripts and improve performance.

Include ACF flexible content fields in search queries

Modify the WordPress search logic to include ACF Flexible Content fields for more accurate results.

Allow SVG media images to be uploaded to WordPress

Allowing the uploading of SVG files to the WordPress media library through a simple snippet.