I have now upgraded/migrated the trades persons business listings directory to Drupal 9. I have used very few contributed modules and actually achieved most of the functionality with Drupal core. The only contributed modules I used was to add functionality that is not essential but do add more usability options like users being able to login using Facebook and the Address, geolocation and geocoder modules which make it easier for users to add their business to the map.
Drupal 9 was officially launched 2 days ago (3rd June 2020) so I thought what better way to check it out than to do an actual real life Drupal 9 upgrade. My company website (My Local Trades) was running Drupal 8.8.x and 21 enabled contributed modules.
How to add the Electrical Safety First Socket Overload Calculator to your website and keep it mobile friendly
The Electrical Safety First Socket Overload calculator is a fantastic tool and I would highly recommend adding it to your own website. You can display the socket calculator by going to the Electrical safety First webpage HERE to grab the embed code. There is just one catch!
As a Drupal developer, I use composer which is a dependency manager for PHP. A big part of developing Drupal 8 and above is to be able to use composer to install Drupal core, modules, themes and all dependencies without having to manually install everything individually. It is now recommended to install a Drupal module using composer to download it's dependencies.
I see all the time, either on Facebook groups, online forums and social media posts, people discussing their business listings in Google. I see many that give bad advice, some good advice and some that are completely wrong and likely get your business listing suspended.
Local search is not always about which business is more local. Here is a quote from Google:
This is some styling that I use with the Drupal 8 Contact Block module to make the contact form in a block:
I find this particularly useful to theme different content type nodes using the same field types. https://www.drupal.org/project/field_formatter_class
Below is the command line code for changing the default PHP version in Plesk. If you are using Plesk as I do on a number of VPS servers, even though you can change the php version inside the Plesk domain control panel, this does not change it at the command line.
I use Putty to connect to the command line. To connect your domain name in Plesk to the command line, you go to "Web hosting access" in the domain subscription type.
Here you will find the two important things.
1) A field with your "username" already filled in.
2) The IP address for the domain name
Recently I have seen an increase in spam form submissions even with using Google reCAPTCHA . Being that most of the Drupal sites I develop are for small to medium sized local businesses, I tend to add a telephone number field to their website contact forms.