public-accountability / littlesis-news-theme

Custom theme for news.littlesis.org, based on understrap
https://news.littlesis.org
GNU General Public License v3.0
0 stars 0 forks source link

LittleSis Blog

Theme URI: https://github.com/misfist/littlesis Tags: Blog, Bootstrap 4 Requires at least: 4.5.0 Tested up to: 4.9.1 Version: 0.2.0 License: GPLv3 License URI: https://www.gnu.org/licenses/gpl.html

Description

Child theme based on Understrap theme.

How it works

It shares with the parent theme all PHP files and adds its own functions.php on top of the UnderStrap parent theme's functions.php.

IT DID NOT LOAD THE PARENT THEMES CSS FILE(S)! Instead it uses the UnderStrap Parent Theme as dependency via Bower and compiles its own CSS file from it.

Uses the Enqueue method the load and sort the CSS file the right way instead of the old @import method.

Installation

  1. Install the parent theme UnderStrap first: https://github.com/holger1411/understrap

    • IMPORTANT: If you download it from GitHub make sure you rename the "understrap-master.zip" file just to "understrap.zip" or you might have problems using this child themes !!
  2. Just upload the littlesis folder to your wp-content/themes directory

  3. Go into your WP admin backend

  4. Go to "Appearance -> Themes"

  5. Activate the LittleSis Blog theme

Editing

WordPress will use the parent theme templates to render pages except when there is an appropriate template in the LittleSis child theme.

Add your own CSS styles to /sass/theme/_{file}.scss

To overwrite Bootstrap or UnderStraps base variables just add your own value to: /sass/theme/_bootstrap-custom-variables.scss

For example: the "$brand-primary" variable is used by both, Bootstrap and UnderStrap. Add your own color like: $brand-primary: #ff6600; in /sass/theme/_bootstrap-custom-variables.scss overwrite it. That will change automatically all elements who use this variable. It will be outputted into: /css/style.min.css and /css/style.css

So you have one clean CSS file at the end and just one request.

Developing With NPM, Gulp, SASS and Browser Sync

Installing Dependencies

Running

To work and compile your Sass files on the fly start:

Or, to run with Browser-Sync:

[1] Visit http://browsersync.io for more information on Browser Sync

Structure

Theme functions are in separate files within /inc/ Templates

Changelog

PHP Recoverable fatal error:  Object of class WP_Error could not be converted to string in /var/www/blog/wordpress/wp-content/themes/littlesis/inc/template-tags.php on line 96