A basic starter theme for WordPress and ClassicPress.
See BS Plugin for a basic WordPress/ClassicPress starter plugin.
- This theme was written in a WordPress 5.0+ environment with no concern for backwards compatibility. However, it is currently tested with no issues in ClassicPress 1.2.0.
- This theme was written on a local server running PHP 7.4
- The short array syntax (
[]
rather thanarray()
) requires PHP 5.4+ - Class files are namespaced and the methods of which must be called accordingly in template parts.
- Header, navigation, and footer loaded via hook so that they may be unhooked.
- Widget to toggle light and dark themes.
- Sample theme options page ready to begin developing.
- Theme info page as an example for getting theme data.
- Bundle & load plugins by adding to the
includes/vendor
directory and extend the Plugin class. - Fully SASS (SCSS) ready with
modules
andpartials
directories. - Right-to-left (RTL) stylesheets are provided, and existing left-right styles are reversed.
The theme is ready to bundle a copy of Advanced Custom Fields basic or Pro. Simply add the contents of the plugin folder to the includes/vendor/acf
directory and Advanced Custom Fields is automatically loaded, if the plugin is not active via the plugins interface.
If the includes/vendor/acf
directory is not used as the root directory of the plugin then change the directory name, and core filename in the ACF class file properties:
@see includes/classes/vendor/class-acf.php
.
- There is a
before_html
hook before the opening<html>
tag for ACF frontend forms. - Template files look for content
template-parts
files ending with-acf
. - An ACF JSON directory is ready to use, filters added in the ACF class.
Following is a list of strings to find and replace in all theme files.
-
Plugin name
FindBS_Theme
and replace with your theme name, include underscores between words. This will change the namespace and the package name in file headers. -
Text domain
Findbs-theme
and replace with the text domain of your theme. -
Theme prefix Find
bst
and replace with the unique, lowercase theme prefix. This prefix is used for applied filters, stylesheet IDs, and admin page URIs, so the prefix may be followed by an underscore or a dash. Search forbst_
andbst-
to find the difference. -
Constant prefix
FindBST
and replace with the uppercase prefix of your theme. -
Header image
Find the default header image file,default-header.jpg
, in theassets/images/
directory and replace with your default image. -
Activation and deactivation
Check the activation and deactivation classes,includes/class-activate
andincludes/class-deactivate
, for sample methods. Remove or modify the samples as needed. -
README file
Whether or not your theme will be kept in a version control repository, edit the content of the README file in the theme's root directory or delete it if it is not necessary.