Hi there! Recently I started reading a book “PHP & MySQL Novice to Ninja” and it encouraged me to set up a VirtualBox and Vagrant with Homestead Improved image, which is a fork of Laravel Homestead. There are good articles on why and how you should do it.
However, as soon as I started this virtual machine and pointed my Google Chrome to it, it said, “Security Risk” and simply refused to open a page, and there wasn’t any “proceed anyway” or “add exception” options in advanced section.
Google search gave me some advice on how to fix it, but none of them actually worked. All I was able to get is to visit a site with a red warning in the browsers address bar and “Not Secure” message. Continue reading “How to generate a valid self signed ssl certificate for Vagrant Homestead Improved”
Some time ago I came across with a problem. After I installed Polylang WordPress plugin I have noticed that font has been changed in second language and that change looked unpleasant.
It turned out that this was not a Polylang plugin issue, but rather an incompatible font. To put it short: because of default font incompatibility with the specific language the fallback font was used. In some cases there may be more weird results. For example you may find mixed fonts in single word when fallback font was used only for specific characters that were not present in the default font. Continue reading “Polylang plugin changes website font”
Here I will describe how to change fonts for “Twenty Sixteen” child theme in WordPress. This may be needed because of the default fonts incompatibility with the language that your website is using. Also this may solve issue when fonts have changed after installing Polylang plugin.
How “Twenty Sixteen” theme handles fonts
Theme font handling begins with loading the functions.php file in the function named twentysixteen_fonts_url() which returns valid Google fonts URL. This function is called along with other main CSS files and scripts when they are enqueued in twentysixteen_scripts() function and fired at “wp_enqueue_scripts” action hook. Then fonts are freely declared in the main CSS file. Continue reading “How to change fonts for “Twenty Sixteen” child theme”