



https://www.google.com/calendar/embed?src=u3o22apdee61g5k1qised1d56k%40group.calendar.google.com&ctz=Europe/London
This is where your iFrame points to, and is the location of the base document for your calendar. Go to the URL and view the source, using your browser or any preferred tool. Create a new page on your site with the markup retrieved from the URL source, there are only two lines in the code that need updating:
<link type="text/css" rel="stylesheet" href="969ff39784188d8d017a0c60c8f2558aembedcompiled_fastui.css">
<script type="text/javascript" src="969ff39784188d8d017a0c60c8f2558aembedcompiled__en_gb.js"></script>
As you can see, both tags contain relative URLs, they need prefixing with “https://www.google.com/calendar/” so they look like this:
https://www.google.com/calendar/969ff39784188d8d017a0c60c8f2558aembedcompiled_fastui.css
https://www.google.com/calendar/969ff39784188d8d017a0c60c8f2558aembedcompiled__en_gb.js
This points your iFrame to the new page on your domain and not Google’s, meaning it is (effectively) hosted by you. The next step is to add custom CSS declarations to the new document to override elements in the Google calendar.
You'll need to create 2 new PHP files, the first: custom_calendar.php is the actual calendar file, and custom_calendar.css, a CSS file to style the calendar. The first file is the main one that makes this possible; the second file allows you to change any of the CSS properties. With a little CSS magic, you should be able to customize it further to fit your site perfectly!
Custom Calendar Code
CSS
Now you've got your Calendar all set up you'll want to change the CSS to match your site's needs and, most probably, color scheme. The classes you will want to be looking at are below. Firstly, to fit your color scheme you may wish to edit the overall border/background color of the Calendar. To do this add.view-cap
, .view-container-border
to the CSS and change the background to your chosen color.
.mv-daynameThis is the class that controls the names of the days at the top of the Calendar. Simply add
.mv-dayname
to your custom_calendar.css and add some variables to get started.
There is also a .mv-daynames-table
which controls the cell that each name of each day sits in. Remember to also change the color of the borders as well as the background itself.
.st-bgThis is the class that controls the background of each of the cells. There is also
.st-bg-today
and .st-bg-next
which control the display of the current day and tomorrow allowing you to distinguish between them.
.st-dtitleThis class controls the dates of the days in the Calendar. Also, helpfully, Google have included
.st-dtitle-today
and .st-dtitle-next
which are the classes that control the display of the dates of the current day and the next day respectively. These classes are useful for highlighting today and tomorrow.
Also, within the .st-dtitle
class there is .st-dtitle-nonmonth
which is the class that controls the display of the text for dates in a new month that are not present in the current month.
Another important class to remember when editing .st-bg
and using .st-dtitle
is .st-dtitle-down
this is applied to the cell below todays; when default this has a border at the top which matches the border surrounding the current day.
By changing .st-bg
, .st-bg-today
, .st-dtitle
and .st-dtitle-today
the following example was created.

.st-bg { background:black; } .st-bg-today { background:yellow; border-left:1px solid yellow; border-right:1px solid yellow; } .st-dtitle { background:white; }With
.view-cap
, .view-container-border
set to black and .mv-dayname-table
set to white the following result is created.

.view-cap, .view-container-border { background-color:black; } .mv-daynames-table { color:white; background:black; } .mv-event-container { border-top:1px solid black; }The borders on the cells can be removed by editing the border-left, border-right and border-top classes within the CSS of each of the classes, as the example below shows.

.st-bg { border-left:none; } .st-dtitle { border:none; background:white; }By using these CSS classes you will be able to customize your Google Calendar and integrate it fully with the rest of your site.
Read Next
3 Essential Design Trends, December 2023
While we love the holidays, too much of a seasonal theme can get overwhelming. Thankfully, these design trends strike a…
10 Easy Ways to Make Money as a Web Designer
When you’re a web designer, the logical way to make money is designing websites; you can apply for a job at an agency,…
By Louise North
The 10 Most Hated Fonts of All Time
Remember when Comic Sans wasn’t the butt of the jokes? Long for the days when we actually enjoyed using the Impact…
15 Best New Fonts, November 2023
2023 is almost over, and the new fonts are still coming thick and fast. This month, we’ve found some awesome variable…
By Ben Moss
Old School Web Techniques Best Forgotten
When the web first entered the public consciousness back in the 90s, it was primarily text-based with minimal design…
By Simon Sterne
20 Best New Websites, November 2023
As the nights draw in for the Northern hemisphere, what better way to brighten your day than by soaking up some design…
30 Amazing Chrome Extensions for Designers and Developers
Searching for a tool to make cross-platform design a breeze? Desperate for an extension that helps you figure out the…
By Robert Reeve
Exciting New Tools for Designers, November 2023
We’ve got a mix of handy image helpers, useful design assets, and clever productivity tools, amongst other treats. Some…
The Dangers of Doomscrolling for Designers and How to Break Free
As a creative professional, navigating the digital realm is second nature to you. It’s normal to follow an endless…
By Louise North
From Image Adjustments to AI: Photoshop Through the Years
Remember when Merriam-Webster added Photoshop to the dictionary back in 2008? Want to learn how AI is changing design…
By Max Walton
3 Essential Design Trends, November 2023
In the season of giving thanks, we often think of comfort and tradition. These are common themes with each of our three…
30 Obsolete Technologies that will Perplex Post-2000s Kids
Remember the screech of dial-up internet? Hold fond memories of arcade machines? In this list, we’re condensing down 30…