Testing payments on WordPress + WooCommerce sometimes requires your website to be publicly accessible. To make your local website publicly accessible, you can use ngrok. 1. Install and activate relative-url 2. Update your config/application.php file Replace With 3. Add your subdomain to your site’s config file Replace your-subdomain with … your sudomain. Open ~/.config/valet/Nginx/{sitename} and …
Bedrock Multisite WP_CONTENT_URL
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
Sage 10 & Bootstrap
At the moment of this writing, Bootstrap has been removed from Sage 10 in favor of Tailwind CSS. 1. Manually You could remove Tailwind CSS with yarn remove, remove Tailwind CSS from webpack.mix.js, delete Tailwind CSS configuration file (tailwind.config.js), remove all css & mixins from the SCSS files. 2. Easier An easier way would be …
Bedrock: Updating WP Core and plugins from WordPress admin
If you deliver a Bedrock website to a client, and you want the client to maintain the installation (perform core & plugin updates), you need to allow file mods: add Config::define(‘DISALLOW_FILE_MODS’, false); to /config/environments/production.php. The main problem with this approach is that it allows users not only to update WP core & plugins, but it …
Verder lezen “Bedrock: Updating WP Core and plugins from WordPress admin”
Improving Sage 9 + Bootstrap 4 load time
If you choose Bootstrap during the Sage 9 installation process, Sage will include the complete Bootstrap 4 library in your project by default. Chances are you won’t be needing all of Bootstrap’s components. Excluding unused code will increase the overall performance of your website significantly. Example As you can see, we reduced the size of …
Deploying Bedrock WordPress website to Combell using AutoGit
Bedrock creates a project structure which is way more maintainable than a normal WordPress install. It is easy to check in to version control and we can manage our dependencies with Composer. In this post, I will be describing how to automatically deploy your Bedrock installation from your local development environment to Combell using AutoGit. …
Verder lezen “Deploying Bedrock WordPress website to Combell using AutoGit”