We often use <a href=”javascript:void(0)”> in buttons to avoid the buttons from navigating to another page or do some action. However, Google Chrome recently updated their browser and doesn’t support this function anymore. To solve this, we can use <a onclick=”return false;”> instead.
Google Maps + Tabs
Tabs has been very commonly used over the years for usability and to save space. However, if you add Google Maps to tabs, or add a ‘display: none’ to your map, there will be an issue loading your map when you want to show it again. It will show you a gray screen. with just…
Add a newsletter popup form without using plugin (WordPress + Gravity form)
When working with WordPress sites, I always try to use as less plugins as possible, especially those that have their own styles and Javascript code, because they can be too heavy and may slow down sites. Their designs also may not match well with the overall design and colour scheme of your website. Here’s the…
Autoptimise and Flatsome theme
Today I had an issue with Autoptimize and Flatsome theme on a multisite. The images on the website stopped showing when I deactivate Autoptimize. Then I found out that it was a Javascript issue. So, I added these 2 lines to my header.php to fix the issue: <script src=”http://code.jquery.com/jquery-latest.min.js” type=”text/javascript”></script> <script src=”//cdn.jsdelivr.net/jquery.color-animation/1/mainfile”></script> Hope I can…