Adding Bootstraps Collapse to a Beaver Builder button and module

Bootstrap Collapse Beaver Builder

…slightly modify this snippet: https://community.wpbeaverbuilder.com/t/add-download-attribute-to-a-button/10226 So I added the class “collapse-trigger” to my Icon module (also works with the button module) and then here is my modified code: jQuery(document).ready(function(){ jQuery(…

Read More

Script a WordPress Valet Install on macOS – bash/wp-cli/wp-cli-valet

valet-cli-wp

…VP_UNDERLINE=’\033[4m’ # Change current directory to Sites cd ~/Sites/ # Create WordPress site wp valet new $1 –dbname=”wp_$1″ –dbuser=”root” –dbpass=“” –dbprefix=”wp_” –admin_user=”admin” –admin_password=‘password’ –admin_email=”you@yourdomain.com” –unsecure # Site creation success message…

Read More

Setting up Composer and PHPCodesniffer on Atom Editor on macOS

atom-codesniffer-wpcs

…-r “if (hash_file(‘SHA384’, ‘composer-setup.php’) === ‘669656bab3166a7aff8a7506b8cb2d1c292f042046c5a994c43155c0be6190fa0355160742ab2e1c88d40d5be660b410’) { echo ‘Installer verified’; } else { echo ‘Installer corrupt’; unlink(‘composer-setup.php’); } echo PHP_EOL;” php composer-setup.php php -r “unlink(‘composer-setup.php’);” When installing Composer be sure…

Read More

Set up WordPress Code Standards phpcs on VS Code on macOS

atom-codesniffer-wpcs

…php -r “copy(‘https://getcomposer.org/installer’, ‘composer-setup.php’);” php -r “if (hash_file(‘SHA384’, ‘composer-setup.php’) === ‘669656bab3166a7aff8a7506b8cb2d1c292f042046c5a994c43155c0be6190fa0355160742ab2e1c88d40d5be660b410’) { echo ‘Installer verified’; } else { echo ‘Installer corrupt’; unlink(‘composer-setup.php’); } echo PHP_EOL;” php composer-setup.php php -r “unlink(‘composer-setup.php’);”…

Read More