A starter Child Theme for BST
Version 1.1
BST is a Bootstrap 4 Starter Theme, for WordPress
Get BST here: https://github.com/SimonPadbury/b4st
bst-child contains the minimum requirement for a child theme based off bst.
So far, all it has is an enqueue function for the linking the stylesheet css/style.css
##Notes
(1.) You can't put your styles in this file (style.css). Put them in css/bst-child.css
(2.) Since downloads of BST from GitHub will be in a folder named 'bst-master', therefore in the CSS comment header above I have put 'Template: bst-master'. If the BST root folder has a different name, then you must make the SAME change to the Template line in the CSS comment above.
(3.) You can make this child theme your own by simply:
(a.) Change the name of the root folder (b.) Change the name of the stylesheet css/style.css (c.) In functions.php, do a search-and-replace for these two terms:
"bst-child" => "your-theme-name"
"bst_child" => "your_theme_name"
(d.) Change the Theme Name in the CSS comment in this file (style.css)
Version 2.7.1
https://github.com/SimonPadbury/b4st
b4st is a simple, Gutenberg-compatible WordPress starter theme loaded with Bootstrap 4 and Font Awesome 5.
-
UNLICENCE (open source).
-
Simple, intuitive, clean code. Theme CSS and JS, functions and loops are organized into different folders.
-
A starter CSS theme –
/theme/css/b4st.css
, enqueued. (Note: do not put your styles instyles.css
, because that is not enqueued.) -
Sidebar-widget-area
is optional. If no widgets are dropped into the sidebar, then the sidebar will not be shown on the frontend (and so the main column is automatically the full width of the Bootstrap.container
).
-
jQuery and Modernizr – enqueued (served from the WordPress core).
-
Bootstrap 4.3.1 CSS – enqueued (served by
cdnjs.com
CDN). -
Bootstrap 4.3.1 and Popper 1.14.7 bundle JS – enqueued (served by
cdnjs.com
CDN). Popper is needed by Bootstrap popovers, tooltips and collapsed navbar “hamburger” action. -
Font Awesome 5.8.1 – enqueued (CSS served by
use.fontawesome.com
CDN).
-
Bootstrap navbar with WordPress menu and search.
- Navbar dropdowns (child menus) are handled by a custom walker nav menu class.
-
Bootstrap customized comments and feedback response form.
-
Bootstrap pagination for:
- blog index and blog category pages
- Bootstrap pagination for posts/pages if split over a series of 'pages'
- Gutenberg editor stylesheet – into which has been copy-pasted the typography styles from Bootstrap 4’s Reboot CSS (see http://getbootstrap.com/docs/4.3.1/content/reboot/).
- Note: Blog post and page content in theme’s frontend are controlled by Bootstrap’s columnar grid layout – not by the Gutenberg editor CSS. This means that b4st does not support Gutenberg’s extra-wide image blocks.
-
Many functions are pluggable.
- Note: Although b4st was originally intended as a simple starter theme (hence the name b4st), several developers wanted child theme capability. So the functions have been made ‘pluggable’. (However, b4st can still be used as a starter theme.)
-
Theme hooks – paired before and after the navbar, post/page main, (optional sidebar) and footer. Parent theme hooks are able to recieve actions from a child theme.
-
Also, the navbar brand, navbar search form and sub-footer “bottomline” are inserted using pluggable hooks. So, a child theme can override these.
-
Documentation on b4st theme hooks can be found in the wiki.
style base https://codepen.io/oliviale/pen/LYYrKMV