Show only free shipping option on WooCommerce cart and checkout pages
…$rate_id => $rate ) { if ( ‘free_shipping’ === $rate->method_id ) { $free[ $rate_id ] = $rate; break; } } return ! empty( $free ) ? $free : $rates; }…
Read MoreInstalling & Configuring Apache on macOS using Homebrew and use Sites folder
…AllowOverride All Find: User _www Group _www Change: User shortusername Group staff Find: #ServerName www.example.com:8080 Change: ServerName localhost Find and uncomment: LoadModule rewrite_module lib/httpd/modules/mod_rewrite.so Now the webroot is /Users/shortusername/Sites/ just…
Read MoreAdd Search Toggle Icon at End of Menu in WordPress
…the Search Form https://gist.github.com/neilgee/4a9fccd79bf5c2307508b1dfa4adb004#file-search-css Style the search form to your hearts content. Modify the Search Form’s Content You may want to modify the search forms content such as the placeholder…
Read MoreAdd a Submit Button to the Search Input Field in Genesis Search Widget
…to remove or edit the existing CSS under the Search Form heading or just add some CSS to your style.css file: .search-form { overflow:auto; } .search-form input[type=“search“] { width: 64%;…
Read MoreGet an Array of Values from an ACF Repeater Choice SubField
…a have_rows loop… <?php if( have_rows(‘repeater_field’) ): ?> <?php while( have_rows(‘repeater_field’) ): the_row(); ?> <?php // vars $select = get_sub_field_object(‘sap_colors’); $value = get_sub_field(‘sap_colors’); $sa_colors = $select[‘choices’]; ?> <?php endwhile; ?>…
Read MoreSetting up a WordPress VVV2 Vagrant Workflow
…is made create a new site called test.test you could add under the sites section… testsite: repo: https://github.com/Varying-Vagrant-Vagrants/custom-site-template hosts: – testsite.test This is creating a site but with a custom…
Read MoreSet Up Valet on macOS for Local WordPress Development
…can run a command in the terminal: xcode-select –install Install Composer Install composer with Homebrew brew install composer Get PHP set up Install PHP brew install php This will install…
Read MoreWooCommerce Only Show Free Shipping Rates
…=> $rate ) { if ( ‘free_shipping’ === $rate->method_id ) { $free[ $rate_id ] = $rate; break; } } return ! empty( $free ) ? $free : $rates; } Ref…
Read MoreCustomize WooCommerce Product Search Field
…own custom search field including using an icon. The Original Markup https://gist.github.com/neilgee/e59780dea680caddaa13672ebfaedcde#file-search-original.php This will just reproduce the form in it’s original format. The New Markup https://gist.github.com/neilgee/e59780dea680caddaa13672ebfaedcde#file-search-new.php Here a fontawesome magnifying…
Read MoreInstall Apache, MySQL, PHP on macOS 11 Big Sur and earlier macOS
…for commands that have their applications protected in specific folders – when using sudo you will need to confirm with your admin password or iCloud password if set up that…
Read More