Do you want to add a Google Calendar in your WordPress site?
Google Calendar is a useful app to use for your website, since it makes it easy to share your in-person and virtual events for all your visitors to see.
In this article, we will show you how to add a Google Calendar in WordPress, step by step.
Why Add Google Calendar to WordPress
Google Calendar is one of the most widely used free Google Tools. By adding Google Calendar to WordPress, you can easily display upcoming events to your visitors.
Plus, when you make changes to your Google Calendar, your website calendar will update automatically with no added work on your end.
That being said, let’s show you how to add a Google Calendar to your WordPress site.
Adding Google Calendar in WordPress Using a Plugin
Upon activation, you need to go to Calendars » Settings to setup the plugin.
Then, click the ‘Google Developers Console’ link.
This will bring you to the Google Cloud Platform, where you can connect the plugin to your Google Calendar. This requires giving the plugin access to your calendar data with a Google API key.
To do this, click the ‘Create Project’ button.
This brings you to a screen where you need to provide a name for your project and choose the ‘Organization’ and ‘Location’.
The name can be anything you want, but we recommend using something that helps you identify the project. For the other two fields, you can simply enter the URL for your website.
Then, click the ‘Create’ button.
After that, you’ll be redirected to your project dashboard.
Here, you need to click the ‘Enable APIs and Services’ option.
This brings you to a page that shows all of Google’s APIs.
You need to select the ‘Google Calendar API’ in the ‘Google Workspace’ section to continue.
Next, click the ‘Enable’ button.
This activates the API so that you can generate an API code.
On the next screen, click the ‘Create Credentials’ button.
Then, select ‘API key’ from the drop down list.
This will bring up a popup that contains your API key.
You need to copy this and paste it into your favorite text editor.
After that, head back to the plugin settings screen in your WordPress dashboard and enter your API key.
Then, click the ‘Save Changes’ button.
Now you have successfully connected your WordPress website with Google Calendar, and are ready to add your calendar to your website.
Making Your Google Calendar Public
If you want to share a Google Calendar, then first you’ll need to change the calendar settings to make it public.
To do that, first you need to open up the Google Calendar you want to add to your WordPress site.
Then, click the ‘Gear’ icon and select ‘Settings’ from the drop down list.
After that, click on the name of the calendar you want to share in the ‘Settings for my calendars’ section.
This will open up the individual calendar settings on a new page.
Next, check the ‘Make available to public’ box in the ‘Access permissions for events’ section.
Then, click ‘Okay’ in the popup box.
Once you’ve done that, scroll down to the ‘Integrate calendar’ section.
Here you’ll need to copy the ‘Calendar ID’ and paste it into your preferred text editor, so you can have it handy for a later step.
Adding Your Google Calendar to WordPress
Next, you need to use the Simple Calendar plugin to create a new calendar that you will embed into your site.
From your WordPress dashboard, simply go to Calendars » Add New to bring up the calendar editor.
First, enter a title for your calendar. You will notice that the plugin has already added some shortcodes and text in the text area. You can leave that as it is and scroll down to the ‘Calendar Settings’ box below the text editor.
Then, click on the ‘Google Calendar’ tab and paste the Calendar ID you copied into your text editor earlier.
You can also click on other tabs in the calendar settings box to customize how the calendar will display on your WordPress site.
When you’re done, simply click the ‘Publish’ button to save your calendar.
Display Google Calendar on Your WordPress Site
The calendar you just created isn’t visible on your WordPress blog yet. You still need to add the calendar to a WordPress post or page.
To add your calendar to a page, simply go to Pages » Add New, and give your page a name.
Then, click the ‘Plus’ icon to bring up the blocks menu and select the ‘Shortcode’ option.
After that, you need to enter the shortcode for your new calendar.
You can find this by going to Calendars » All Calendars and finding the associated shortcode.
Once you’re done making changes to your calendar page, simply click the ‘Publish’ button.
You can add this shortcode to any area of your website, including widgets, to simply display your new calendar.
Your new calendar will now be live on your WordPress site. It will automatically update as you add new events.
When your users mouse over an event it will display the event details.
If you want to let users book appointments through Google Calendar, then see our guide on how to add Google Calendar events from your WordPress contact form.
We hope this article helped you learn how to add Google Calendar in WordPress. You may also want to see our comparison of the difference between a domain name and web hosting and our expert picks of the best HR payroll software for your small business.