If your browser is set to prefer dark color schemes you almost certainly noticed that our site looks a bit different over the past couple weeks. What was once a sea of blues and bright whites is now a sea of blues and dark greys. By default the site will automatically enable the dark mode if your browser requests it. Otherwise, you can enable it anytime by clicking the icon in this site's header. If you are already in dark mode, you can switch to light mode by clicking the icon in this … [Read more...]
Category: Tutorials
Retrieving PHP Error Logs in WordPress
When submitting a support request for a WordPress plugin, one of the first things that will typically be asked for is the contents of your site's PHP error log. The error log provides a ton of useful information about plugin conflicts or PHP version issues which can help whoever is troubleshooting either rule out or narrow down the issue. WordPress makes retrieving and/or sharing your PHP error logs straight-forward and once you know how you'll probably start using it to troubleshoot on your … [Read more...]
Pointing a Domain to a Server Using Your Hosts File
The Purpose of a Hosts File In order for a domain to point to a server it must be mapped to a DNS resolver. For instance if you type onpointplugins.com in your browser, you are sent to IP address "108.62.123.43" and the website loads. Almost always, the DNS resolution happens through an exchange of DNS servers both within your computer, router and servers located in the cloud. A Hosts files allows you to override all other DNS resolvers in favor of file's contents for specified domains. … [Read more...]
How to Change Your Domain Name on WordPress
You've decided it is time to change the domain on your website. Maybe you are doing a rebrand or switching a testing site to the live domain. Whatever the reason, the process for changing the domain on a WordPress site is reasonably straightforward. This article will take you through the process. Setting Up Your New Domain The first step to changing your domain is to configure your new domain to point to the correct website. If you have not registered your domain. You will need … [Read more...]
Disabling WooCommerce Blocks
We are a big fan of the WooCommerce plugin for its stability and the ability to create our own custom templates. We are also a big fan of clean UX and performant enterprise level websites. One thing we have never been a fan of was WooCommerce Blocks. Don't get me wrong, the blocks are really cool. In a world of Full Site Editing it's reasonably necessary for WooCommerce to provide blocks for users to have the ability to build the site code free. Assuming you are working on a single site … [Read more...]
Gutenberg Block Editor – Translating TypeScript
WordPress versions 4.9 and below allowed you to translate text in your JavaScript by passing JSON objects via wp_localize_script. While this system works great it has some limitations. With the release of WordPress 5.0, support was introduced to allow developers to translate their theme or plugin directly within JavaScript. Translating in JavaScript has some nice benefits: The available tools work great if you are using plain JavaScript and no form of Continuous Delivery (CI/CD) in your … [Read more...]