Add Features to a WordPress Theme
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;
wputhemefeatures script lazy;
wputhemefeatures script move-blocks;
wputhemefeatures script hybrid;
wputhemefeatures lang es_ES;
wputhemefeatures src;
You can create a wputhemefeatures-local.sh file in this tool root folder to override some settings.
#!/bin/bash
_SCRIPTDIR="assets/js/libraries";
- 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.
- 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.
- Create a langage file ( fr_FR.po / es_ES.po ).
- Override a Parent template.
- Use Theme Name instead of Theme ID in .PO files.