Thursday, September 28, 2023

Add Google Business Hours to Joomla

I was wondering how to do this and never got it working till today. I wanted this in the footer of Joomla site running Gantry 5 template. Regular Labs Sourcer plugin was already installed. This will allow me to add some PHP in a Custom HTML module, and put the code in the footer position. Here was the code that was needed.

<?php
    $curlURL = 'https://www.google.com/maps/search/?api=1&query=Google&query_place_id=ENTER_PLACE_ID_HERE';
    $curl = curl_init($curlURL);
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1 );
    $response=curl_exec( $curl );
    for($i=0;$i<7;$i++){
        $day = jddayofweek($i,1);
        $start=stripos($response,'[\"'.$day.'\",')+strlen($day)+9;
        echo($day.": ".substr($response,$start,stripos($response,'\"]',$start)-$start)."<br />");
    }
?>

I got this from the following link:

https://webmasters.stackexchange.com/questions/103058/is-it-possible-to-show-the-hours-from-google-maps-on-a-website-so-that-the-webs

To get our Company business ID we used the following link.

https://developers.google.com/places/web-service/place-id

I typed in our business name, found our listing, and when I clicked on the red location arrow I got our business listing ID. Everything worked but the hours weren’t quite right. As I messed with it to get it right I suddenly started getting a different error.

302 Moved
The document has moved here.
Wednesday: http-equiv="content-type" content="text/html;charset=utf-8"> 

This error happens now due to too many requests. Going to give it some time to see if I can get it worked out from a different IP or wait a day or two.

After a couple of days I ended up putting a PHP file with the code above in the templates/hydrogen/html folder and using Sourcer plugin to “include” the code into a custom HTML module. This worked perfectly.

I hope this helps someone else out there…

SEO – URL Character Count Limit

I would assume that it is not unlimited, but I haven’t actually set a standard for myself for this piece like I have for the Title and Description. I realized today there absolutely a limit and the number is “70” characters. This includeswww“, “the domain name“, possibly a “category“, and then the page URL with the file extension such as “.html”.

On a page I had lengthy URL, but it got worse when the category and domain name was included. Here is an example of what I had.

www.domain.com/services/all-the-services-we-perform-in-one-super-long-line.html

Google has this url indexed as….

www.domain.com/services/all-the-services-we-perform-in-one-super-lo…

If I wanted the word “line” to be important it was being cut off. When considering your page url or slug make sure to include the full path.

I hope this helps someone else out there…

Getting Customers To Leave A Google Review

Listing a business with Google is a no-brainer. Google is such a one-stop-shop for looking something up. Of course you always want your business listing a close to the top a possible, so making sure you have your Google listing as complete as possible is to get some reviews.

I have some customers that are low-tech, but want to use tech to get more business. I wanted to make it as easy as possible for a customer to be able to solicit their customers to leave a review. The customer did more landscape work; however, the business listing was under “construction”. Searching for a landscaper in his area wasn’t yeilding results. This is relevant in case he wanted to tell the customer to look him up and review him.

I found this great article about creating a tinyURL that will link the customer right to the screen they will need to review that business.

How To Ask Your Clients For Google My Business Reviews

The basics are as follows:

  1. Log into Google
  2. Bring up that business listing.
  3. Click on the “Write a review” button.
  4. Now copy the URL and paste it into a URL shrinker like “TinyURL”

That’s it. Your client can send this TinyURL for the customer to quickly leave a review.

I hope this helps someone else out there…

 

 

Firefox Turn Off Google Tag Manager Preview

I recently added Google Tag Manager for a customer and in experimenting I added to my company website. Now in FireFox I am getting a preview pane at the bottom of the page. In Chrome this can be turned off, but I couldn’t find how to do in Firefox till I found the following article.

https://www.shoutmeloud.com/disable-google-tag-manager-preview-pane.html

The basics for this are:

  • Log in to Google Tag Manager.
  • Go to your site dashboard (Workspace < Overview).
  • Click on the option that says Leave Preview Mode.

I hope this helps someone else out there.

Google Tag Manager In Gantry 5 Hydrogen

Was asked by a customers marketing company to add Google’s Tag Manager to their clients website. I wasn’t currently using Google’s Tag Manager, so I decided to look into and apply to my site running a Gantry 5 Hydrogen theme.

I tried just adding it in the “Settings” section of my template. The “before body” portion worked; however, the code for the head section was showing up on the page and not hidden.

A quick Google search lead me to this page where someone built an Atom to handle this.

https://translate.google.com/translate?hl=en&sl=fr&u=https://www.en-toutes-lettres.fr/services-web/joomla-news/358-google-tag-manager-sur-gantry5&prev=search

This Atom was awesome. I had to use it both the home and default. They suggest just putting in the base outline, but that didn’t work for me.

I hope this helps someone else out there….

 

Using Google Fonts And Font Awesome In Photoshop

With a recent project I needed to design a mock-up for the customer in Photoshop. I was planning on using Font Awesome and Google Font Orbitron. I used this tutorial to show me how to download and install a Google Font on my machine so I can use it in Photoshop.

https://www.google.com/search?q=use+google+fonts+in+photoshop&ie=utf-8&oe=utf-8&client=firefox-b-1#kpvalbx=1

For adding Font Awesome I followed the instructions presented by OSTraining

https://www.ostraining.com/blog/webdesign/fontawesome-psd/

I hope this helps someone else out there…

 

The site ahead contains malware Security error – how to fix

Clients site got the following message when users got to the site.

My journey started with the host which was wrong. It was all google this time. Here are the steps to get google to review your site and take it off the blacklist.

  1. Go to https://support.google.com/chrome/answer/99020?hl=en
  2. Go down to “My site…” and click on “request a review”
  3. On this page is a video to walk you through process.
  4. Next I logged into Google Webmastertools. Clicked on Messages. Clicked on the property with the malware message. And hit “Request a review”.

  5. Lastly click “I have fixed these issues.”
  6. A window will open for you to tell Google what you did to clean the site.

  7. You will get a message “Your request was submitted successfully. Please check back later.”

I hope this helps someone else out there…