Skip to content

WordPressUtilities/wputhemefeatures

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WPU Theme Features

Add Features to a WordPress Theme

How to install on your machine

Go to your favorite tools folder :

git clone https://github.com/WordPressUtilities/wputhemefeatures

Add CLI shortcut :

cd wputhemefeatures;_DIR_WPUTHEMEFEATURES=$(pwd);echo "alias wputhemefeatures=\". ${_DIR_WPUTHEMEFEATURES}/wputhemefeatures.sh\"" >> ~/.bash_profile;

How to use

Install a lazy-loading script.

wputhemefeatures script lazy;

Install a block-moving script.

wputhemefeatures script move-blocks;

Install Vanilla Hybrid-Screens script.

wputhemefeatures script hybrid;

Add a new lang

wputhemefeatures lang es_ES;

Go to this tool source.

wputhemefeatures src;

Config

You can create a wputhemefeatures-local.sh file in this tool root folder to override some settings.

#!/bin/bash

_SCRIPTDIR="assets/js/libraries";

Roadmap

  • Config file.
  • Config path for JS Libs.
  • Config to avoid git submodules.
  • Find the active theme if called from root.
  • Find the active theme if called from a subfolder.
  • Autocomplete on CLI.
  • Check if a feature is already installed.
  • Load WP-CLI.
  • Self Update.
  • Config file at WordPress root level or one level above.

Scripts

  • Install Vanilla hybridscreens.
  • Install Vanilla JSU Parallax.
  • Install Vanilla Scroll Anims.
  • Install Slick Slider.
  • Install Flickity.
  • Install Masonry.
  • Install twentytwenty.
  • Install Isotope.
  • Load script versions from submodule version tag if available.
  • Create example template for complex scripts.

New Features

  • Create a langage file ( fr_FR.po / es_ES.po ).
  • Override a Parent template.

Enhancement

  • Use Theme Name instead of Theme ID in .PO files.

About

Add Features to a WordPress Theme

Resources

License

Stars

Watchers

Forks

Packages

No packages published