Make an Alias in Bash or Zsh Shell in macOS with Terminal
…is created you are ready to enter your alias commands. So here I am using the alias ‘l’ to alias the command ‘ls -lah’ alias l=’ls -lah’ In nano ‘control+o’…
Read MoreWooCommerce Skip Cart, Go Straight to Checkout Page
…= wc_get_checkout_url(); return $checkout_url; } That’s it now when you click a product add to cart it will go to checkout. Change the ‘Add to Cart’ label Now since the…
Read MoreRemove WooCommerce CSS Styles and Scripts From Pages That Don’t Need It
…content. woocommerce-layout.css woocommerce-smallscreen.css woocommerce.css These are loaded from /wp-content/plugins/woocommerce/assets/css/ Woo have made a filter available to remove all 3 or remove individual ones. https://gist.github.com/neilgee/487b7389662de5411f05#file-woostyles-php You can do this and just…
Read MoreShow Hidden Library and User Library files and folder in macOS
…in OSX 10.9 Mavericks: defaults write com.apple.finder AppleShowAllFiles -boolean true ; killall Finder Getting back to cleanliness: defaults write com.apple.finder AppleShowAllFiles -boolean false ; killall Finder To show all…
Read MoreSyncing RunCloud and Cloudflare firewalls for fail2ban IPs
…better source, last updated Jan 2021. The Cloudflare conf below is from version 0.11.2 https://github.com/fail2ban/fail2ban/blob/master/config/action.d/cloudflare.conf https://gist.github.com/neilgee/9e89fced25ee515876dee125758330a4 You just rename/backup the old cloudflare.conf.original and add in the new one above best…
Read MoreCreate An ACF Repeater Accordion in WordPress
…rows. Add the Javascript https://gist.github.com/neilgee/7a94649e844f3aa0e5370092d3e9bf20#file-accordion-script-js Add the ACF Loop Accordion Code https://gist.github.com/neilgee/7a94649e844f3aa0e5370092d3e9bf20#file-accordion-acf-repeater-loop-php Name Fred Perry Description The brand founded by triple Wimbledon champion Fred Perry in 1952 and adopted by…
Read MoreAdd Scroll Back to Top of page Functionality in WordPress
…is the solution I went with. jQuery scrollToTop was my choice of poison, download and install the scrollToTop.min.js file in your theme’s js folder and create an init file with…
Read MoreSetting up SVG Fallback Images in WordPress
…file type such as .png Download the latest version of SVGeezy and grab the svgeezy.min.js file and add to your theme’s js folder and enqueue it, also create an init…
Read MoreMake videos responsive in WordPress with Fitvids
…Viddler and others, here’s how to get it going in WordPress for responsive video goodness. Download the Fitvids zip and grab the jquery.fitvids.js file, add this to your child theme’s…
Read MoreUsing MeanMenu Mobile with Genesis Theme
This guide goes through using the lightweight jquery mobile menu meanmenu in a Genesis Theme based on the Sample Theme. Menu Contracted Menu Expanded Get the Assets Download…
Read More