Welcome to WP Beaches

WordPress Websites design specialists, based in the Northern Beaches, Sydney
Design, Develop, Host

RECENT POSTS

Adding Bootstraps Collapse to a Beaver Builder button and module

Bootstrap Collapse Beaver Builder

If you have the Beaver Theme here is how you can add Bootstraps Collapse effect to a Beaver Builder row or module can be achieved using the Bootstrap data-toggle attribute. Let’s say you have a button which when clicked reveals a module below it and another click hides the module again. As below… Example Pellentesque…

Categorized: ,

Updating WordPress Plugins Versions with wp-cli

Wordpress Wp Cli Plugin Updates

With wp-cli installed on your webhosting  you can upgrade your WordPress plugins to specific versions of the plugin, all plugins, all but certain plugins and minor or patch releases. Also you can test the update with a dry run option just to make sure installs go without error. Update Specific WordPress Plugin Version Lets say…

Categorized:

Adding jQuery Slide Toggle to a Beaver Builder button and module

Jquery Slide Toggle Beaver Builder

Adding a jQuery Slide Toggle effect to a Beaver Builder row or module can be achieved with some Javascript and CSS. Let’s say you have a button which when clicked reveals a module below it and another click hides the module again, give the button a class of .trigger-button and the module an ID of…

Categorized: ,

WooCommerce Only Show Free Shipping Rates

Free Shipping Woocommerce

You can force WooCommerce to only show free shipping rates if the carts contents qualify and hide the other shipping rates with this code snippet below, which uses the woocommerce_package_rates filter, it goes in your themes functions.php file add_filter( ‘woocommerce_package_rates’, ‘prefix_hide_shipping_when_free_is_available’, 100 ); /** * Hide shipping rates when free shipping is available. * Updated…

Categorized:

Rename Home name and link in WooCommerce Breadcrumbs

Change Woocommerce Breadcrumb

You can change the Home name and home url link in WooCommerce breadcrumbs with 2 filters,  woocommerce_breadcrumb_defaults and woocommerce_breadcrumb_home_url Change WooCommerce Home Text in Breadcrumb add_filter( ‘woocommerce_breadcrumb_defaults’, ‘prefix_change_breadcrumb_home_text’ ); /** * Rename “home” in WooCommerce breadcrumb */ function prefix_change_breadcrumb_home_text( $defaults ) { // Change the breadcrumb home text from ‘Home’ to ‘Shop’ $defaults[‘home’] = ‘Shop’;…

Categorized:

Search for multiple IP addresses in webserver log

Search Ip Address Log File

To search for an IP address in a server log, grep is a tool to do it. To search for a single IP address, you need to know where the log file is then either navigate to it or use an absolute path, if you are already in the correct directory use grep like so……

Categorized:

Ouput Custom Taxonomy Terms in a Post

Output Custom Taxonomy Terms

If you have created a custom taxonomy and linked it to a custom post type and want to output any terms used for that post in the single post view you can use the_terms the_terms <?php the_terms( int $post_id, string $taxonomy, string $before = ”, string $sep = ‘, ‘, string $after = ” );…

Categorized:

Remove Product Tags from Products Post Type in WooCommerce

Remove Product Tag

Here is a great snippet I came across to remove all product tags for the Product Custom Post Type in WooCommerce, it has 4 action/filters to remove the product tag metabox from the products posts, remove the tag column in the dashboard as well as removals in the dashboard menu and quick edit options. View…

Categorized:

Equal Heights after Search & FIlter Pro Ajax Refresh

Equal Heights Ajax Refresh Search Filter Pro

Using Search & Filter Pro with a grid of items that have equal heights set may loose their equal heights after a S&F filter on the same page Ajax refresh. You can pass in some jQuey to Search & Filter Pro callback sf:ajaxfinish (function($){ $(function() { // Document Ready // detects the end of an…

Categorized: