Turn off SSH passwords in Ubuntu, connect via SSH keys only
Once you have a successful connection to your remote instance with SSH keys, it is better practice to disable SSH Password Authentication to mitigate further bruteforce password attempts, this coupled…
Read MoreAdd WooCommerce Styles to The Customizer in WordPress
Adding the WooCommerce styles to the Customizer in WordPress can help you quickly style and scaffold some common components of WooCommerce. This tutorial takes you through how to set that…
Read MoreHow to Add Extra Settings to Default Customizer Sections in WordPress
…the normal color value. Applying the Accent Color with wp_add_inline_style The more efficient way to add the color is to utilise wp_add_inline_style which loads the style immediately after the main…
Read MoreAdd inline CSS style to existing WordPress Plugin or Theme
…also it immediately follows the main stylesheet so the CSS load order is better managed in terms of specificity. In the image above a plugins main CSS file is loaded…
Read MoreAdding Bootstraps Collapse to a Beaver Builder button and module
…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 MoreCombining VOB files into one in Linux or macos and convert to MP4
…a simple method on the command line to merge the files and then use a free video converter to change format. Merging the VOBs Launch your Terminal application in –…
Read MoreScript a WordPress Valet Install on macOS – bash/wp-cli/wp-cli-valet
…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 MoreSetting up Composer and PHPCodesniffer on Atom Editor on macOS
…-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 MoreSet up WordPress Code Standards phpcs on VS Code on macOS
…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 MoreCreate a slider of WooCommerce Product Featured Images
…order Download the latest Slick version. Move into your CSS directory – slick.css, slick-theme.css, fonts, ajax-loader.gif Move into your JS directory – slick.min.js Create a slick-init.js file and also file…
Read More