Deploying a WordPress site via Git Hooks on a ServerPilot Server
This guide looks at setting up a git deployment using hooks to push local commits from a local development to a remote development branch which then published those changes live, stored on a staging domain using a ServerPilot set up. First up is to set up a ServerPilot app, add your system user and create…
Read MoreOptimise wp_postmeta table and remove custom fields meta keys
Overtime a wp_postmeta WordPress database table may become bloated and use redundant custom field meta_keys. The table may have thousands of rows worth of dead data such as old custom fields. You can remove these keys quite quickly in the MySQL database once you know the key format, I recently took over a site that previously…
Read MoreRemove Unused Image Media Sizes In Your WordPress Theme
Keeping your WordPress image media library under control can mean a big difference to your site loading faster as well as your hard disk size footprint with the ability to easily back up or migrate your site. You basically need to remove any unused image sizes and images themselves not used, optimise existing image sizes and ensure future…
Read MoreAdd WordPress Admin Account to Database wp_users Table
Here is a guide on how you can add in a newWordPress admin account username and password to the database. What you do need to do this have access to the WordPress database by having the database name and password. Also instead of adding an extra admin account you can just change the admin password…
Read MoreHiding a WordPress Development Site from Googles Search Engine Index
Hiding a WordPress development website from the Google search engine index is something you need to do and can be done in a couple of ways. Why you need to do it is that once your pages are indexed they’ll take a while to get rid of and since you are in development stage you’ll…
Read MoreChange the Keyboard Shortcut Keys in Beaver Builder 2 Plugin
You can modify the Beaver Builder keyboard shortcut keys in the new version 2 of the plugin by using a filter – fl_builder_keyboard_shortcuts that you add to your themes functions.php file, example below add_filter( ‘fl_builder_keyboard_shortcuts’, ‘get_keyboard_shortcuts_mine’ ); /** * Modify the Beaver Builder 2 Keyboard shortcuts */ function get_keyboard_shortcuts_mine( $data ) { $data[‘showModules’][‘keyCode’] = ‘m’;…
Read MoreOverride the Beaver Builder Global Settings Including Media Query Breakpoints
Beaver Builder Global Settings can be overridden including the Media Query breakpoints via the Tools > Global Settings in the Beaver Builder interface. If you have a starter theme you can permanently override these settings by using the fl_builder_register_settings_form filter which will allow you to set the modified global settings permanently so you don’t…
Read MoreDisplaying Featured Products in WooCommerce
WooCommerce has products called Featured Products which are products what become featured when they are starred in the WP Admin dashboard. Here is how you can display them. Featured Products Shortcode Display WooCommerce Featured Products via shortcode like so: Other parameters you can use in the shortcode are ‘orderby‘ and ‘order‘. Featured Products Custom…
Read MoreAdd WooCommerce Product Category Dropdown to Shop & Archive Pages
WooCommerce has a Product Category dropdown list of available product categories which filter and refresh the page based on product selection. It is assigned via a Widget and easy enough to put in the sidebar. But what about adding it to the top of the main shop and archive pages.? Here is a way…
Read MoreAdjusting WooCommerce Price Description with ACF Custom Field
Using a simple ACF field you can adjust the WooCommerce pricing type per item with a dropdown selection that will display after the price in the product, shop, cart and checkout page. Create a select dropdown in ACF. This example the field is named product_price_type and has 3 values/choices (use as many as you like)…
Read More