When using Bedrock in a WordPress multisite setup, media URLs point to the main site’s domain (eg. example.com/app/uploads/sites/2/2022/10/image.jpg). You can change the media domain to the subsite’s domain (eg. subsite.example.com/app/uploads/sites/2/2022/10/image.jpg) by updating config/application.php. Replace by
Remove paragraph (<p></p>) tags from widget shortcode
If you add a shortcode in a widget (using the block editor), WordPress will automatically wrap the shortcode in <p></p> tags. This results in an empty space on top of the output of your shortcode. You can remove the paragraph tags using this filter:
WooCommerce: Hide other shipping methods when “Free Shipping” is available except for “Local Pickup”
With the snippet found on https://docs.woocommerce.com/document/hide-other-shipping-methods-when-free-shipping-is-available/, you can hide other shipping methods when “Free Shipping” is available. The problem with this snippet is that is will also hide the “Local Pickup” shipping method. If you want to keep the “Local Pickup” shipping method, try this snippet instead:
Add Font Awesome icons to your WordPress nav menu items
In this guide I will be describing a simple way to add Font Awesome icons to your WordPress navigation menus. For example, if you want to add a user icon to your “my-account” link, you will be able to just add fas-user as a class to your menu-item. Prerequisites You need to have some experience …
Verder lezen “Add Font Awesome icons to your WordPress nav menu items”
Export WooCommerce Bookings by booking date using Advanced Order Export For WooCommerce
Let’s say you are renting out multiple rooms, and want to export all the the rooms which are rented out on a specific date. You will need an export plugin (Advanced Order Export For WooCommerce). This plugin will let you export orders for a given date range, but we want to filter by booking date, …