Coder Social home page Coder Social logo

kntnt / kntnt-base-theme Goto Github PK

View Code? Open in Web Editor NEW
12.0 4.0 3.0 61 KB

Minimalistic WordPress theme for Beaver Themer and Beaver Builder.

License: GNU General Public License v3.0

PHP 45.11% JavaScript 6.25% CSS 48.64%
beaver-builder wordpress-theme beaver-theme-builder beaver-themer underscores wordpress-child-theme

kntnt-base-theme's Introduction

Kntnt's base theme for Beaver Themer

Minimalistic WordPress theme for Beaver Themer and Beaver Builder.

Description

Kntnt's base theme for Beaver Themer is based on Automattic's thorough and well-made starter theme _s (pronounced underscores).

While _s is intended as a starting point for building theme by hand, Kntnt base theme is intended as a starting point for building theme by using Beaver Themer and Beaver Builder.

Rationale

Beaver Themer is a great tool that allows you to build a theme by using Beaver Builder. But to work, Beaver Themer requires a supporting theme.

Many of them comes with bells and whistles which are unnecessary since you can and often do override them with Beaver Themer. That holds true even for themes which are supposedly light-weight, including Beaver Theme and Astra.

Kntnts Base Theme is missing all bells and whistles. With Beaver Themer installed, you will not see any headers or footers, nor a sidebar. It is just a clean slate.

But Kntnt Base Theme is not too simplistic. To ensure basic features and best practice it is built on _s which provides "a thousand hour head start". _s is created by Automattic — the company behind WordPress — and is used as the starting point for many of their themes, including recent themes bundled with WordPress (e.g. Twenty Seventeen).

Installation

Install the usually way.

Get started

Your site will look really crappy after installing and activating Kntnt Base Theme. Don't panic. That is intentional. Your next step would be to create layouts for header, footer, posts/pages, archives and a 404-page. It takes just a few minutes to get a really beautiful theme which then can modify as you please. This is whart you need to do:

  1. Visit your sites backend at /wp-admin.
  2. Install and activate Beaver Themer and Beaver Builder.
  3. Select Builder » Themer Layouts in the admin menu.
  4. Create a header layout:
    1. Click on Add New-button near the top of the screen.
    2. Enter Header in the Title-field, select Header from the Layout-dropdown, and click on the Add Themer Layout-button.
    3. Select Entire Site as Location on the next screen, and click on the Publish-button.
  5. Create a footer layout:
    1. Click on Add New-button near the top of the screen.
    2. Enter Footer in the Title-field, select Footer from the Layout-dropdown, and click on the Add Themer Layout-button.
    3. Select Entire Site as Location on the next screen, and click on the Publish-button.
  6. Create a post and page layout:
    1. Click on Add New-button near the top of the screen.
    2. Enter Singular in the Title-field, select Singular from the Layout-dropdown, and click on the Add Themer Layout-button.
    3. Select All Singular as Location on the next screen, and click on the Publish-button.
  7. Create an archive layout:
    1. Click on Add New-button near the top of the screen.
    2. Enter Archive in the Title-field, select Archive from the Layout-dropdown, and click on the Add Themer Layout-button.
    3. Select All Archives as Location on the next screen, and click on the Publish-button.
  8. Create an "page not found" layout:
    1. Click on Add New-button near the top of the screen.
    2. Enter Page not found (404) in the Title-field, select 404 from the Layout-dropdown, and click on the Add Themer Layout-button.
    3. Select All Users as Users on the next screen, and click on the Publish-button.
  9. Go to the front of your site and enjoy!

Styling

The only stylesheet used by the theme is style.css.

You can leave it as it is, and make all your styling through Beaver Builder. Things you cannot modify directly through Beaver Builder's user interface, can be modify by adding custom CSS in Beaver Builder.

You can also modify and extend style.css as you wish.

Sass

You can re-generate style.css from Sass-files found in the sass-directory. To do that you need Node.js and follow these steps:

  1. Open a terminal and change working directory to the theme's directory (where you find style.css).
  2. Install node-sass-chokidar by following command: npm install.
  3. Re-generate style.css with following command: npm run build.

Run npm run build every time you you want to re-generate style.css.

You can also automate the re-generation by starting npm run watch and let it run in the background. style.css will automatically be re-generated every time a file in the sass-directory is changed. When you are done with your adjustments of the sass-files, turn off the automatic re-generation by simply stopping the background process started with npm run watch.

Updating

The purpose of _s is not to be a basic theme, but to be a starting point for developers to create their own theme. However, it makes it difficult to incorporate bug fixes and improvements made to _s.

Kntnt Base Theme therefore leave files originating from _s as untouched as possible. Inevitable modifications are made so that it is easy to create an apprehensible patch file with diff and apply it to later versions of _s.

Future plans

Plans for future versions of the theme includes options in the customizer to set global colors and fonts (including fonts from Gooogle Fonts).

Changelog

1.0

Initial release.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.