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


WPML: hide or rewrite language URLs in language switcher and hreflang tags

Amend the list of languages used by WPML's language switcher, icl_get_languages() function and hreflang tags

WPML's ICL_LANGUAGE_CODE constant always returns the default language within AJAX functions

Find out how to get the currently active language from WPML when using AJAX functions

Change posts_per_page on post type archives, search results and other WordPress pages

Modify the posts_per_page parameter according to the current post type or page being viewed

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.