• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
rahmanzeb.com

rahmanzeb.com

Rahman Zeb's Portfolio & Blog

  • Home
  • About
  • Tutorials
    • Google Sites Tutorials
    • WordPress Tutorials
    • CSS Tutorials
  • Templates
    • Google Sites Templates
  • Portfolio
  • Hire me!
  • Contacts

How to add click to Call button in google sites

22/03/2021 By Rahman Zeb 5 Comments

View the Demo

In this tutorial I’ll show you how to add click to Call Us button to google sites which is normally not possible. You have to add a valid link like https://google.com etc or select the inner pages only that you created for your google site. It does not accept something like tel:+9223456789112 so you can’t add a beautiful looking icon or button and even if you add a link or button via the embed it will not look good or won’t be responsive. So we have found a way of adding a click to call button to the new google sites that is not only beautiful but also responsive.

add click to call button to new google sites
adding click to call us button to google sites the normal way won’t work

Just add two of your favorite icons and we’ll show you how to add the click to call us button or icon using the embed feature, just click on the embed and then click on the Embed code and then add the following code to the Embed code.

<style type="text/css">
* {
max-width: 100vw;
max-height: 100vh;
}
img {
display: block;
margin-top: -8px;
margin-left: -8px;
width: 100vh;
height: auto;
}
</style>
<a href="tel:+923451234567"><img src="https://www.pngkit.com/png/full/82-829739_phone-icon.png"></a>

What we have done here is we have added an image tag with an image link “https://www.pngkit.com/png/full/82-829739_phone-icon.png” (You can change it to the link of your icon or image) and have linked that to tel:+923451234567. Then we made img element block by applying display: block and then gave it a negative margin -8px to the top and negative margin of -8px to the left to move it to a position where it match the position of the other icons. Finally we made the width equal to 100vh which mean we made 100% the height of the viewport and set the width to auto And that’s how you add a click to call us button to your google site. To see a demo of the click to call button kindly click on the button below.

Click to Call Us button Demo

Adding Callable button without image

There are some disadvantages in adding an image button like you cannot have those beautiful hover effects and the image url. First you have to find an external source like imgur and then you have to upload your images/images there and then copy the link and then putting the url in the embed section. You might be thinking why not upload an image to a Google Sites page and then copy the link and use it in the embed section but you’ll be disappointed to know that Google Sites keeps updating the url from time to time and thus making it difficult or impossible for people to link it from outside sources. And hence we’ll embedding it inside Google sites but the problem is an embed is actually an iframe and it’s on a completely different server for security & safety reasons and thus the url won’t update itself automatically and hence it’s of no use to us.

<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.4/css/all.css" integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm" crossorigin="anonymous">

<style>
* {
max-width: 100vw; 
max-height: 100vh; 
}
body { 
margin: unset !important; 
}
a { 
font-size: 24px; 
color: #fff; 
background: #333;
width: 100vw; 
height: 100vh;
display: flex; 
justify-content: center;
align-items: center; 
text-decoration: none;
border-radius: 100%;
}
a:hover { background: #000; }
</style>

<a href="tel:+923011234567"><i class="fas fa-phone-alt"></i></a>

First Go to fontawesome and create an account there, then copy the CDN link from there. Paste it at the top of the embed section. Afterwards add some styling using CSS. Finally add your a tag and inside your link tag put the font-awesome code <i class=”fas fa-phone-atl”></i>. As you can see we never used an image and used font-awesome instead and our button look neat and clean and now we add some nice hover effect if want.

Click to Call button demo without image Demo

Share this:

  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on X (Opens in new window) X
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on LinkedIn (Opens in new window) LinkedIn

Filed Under: Google Sites Tutorials Tagged With: google sites

About Rahman Zeb

Rahman Zeb is a passionate freelance web designer and developer and loves creating awesome and interactive websites. Beside Web design and development he loves to play cricket and badminton with his friends.

Reader Interactions

Comments

  1. james says

    01/12/2023 at 10:56 am

    Is there a way to just embed the code behind a simple “call now” button?

    Reply
  2. Milton says

    01/06/2022 at 5:42 am

    Supper Sir This was so helpful. Thank you. I really needed a call button on my website to make it mobile friendly.

    Reply
    • Rahman Zeb says

      05/06/2022 at 12:30 am

      Just use the callable button without an image and use pure html and css and it will be responsive and if you know media queries in CSS3 then you can easily target the button on specific viewpoints and make it small or big.

      Reply
  3. Jadah says

    18/02/2022 at 3:26 am

    This was so helpful. Thank you. I really needed a call button on my website to make it mobile friendly.

    Reply
    • Rahman Zeb says

      21/02/2022 at 2:57 pm

      You are welcome and glad to know my article helped someone.

      Reply

Leave a ReplyCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Hire Me

zebkhan
Fiverr
Seller
I'm web designer and developer and an expert in languages like html, css, javascript, php & mysql. I also know Joomla & Wordpress and have designed and developed dozens of sites. Most of the sites I have designed were responsive.

Follow Me

  • Facebook
  • X
  • Google
  • LinkedIn
  • Pinterest

Top Posts & Pages

  • How to add click to Call button in google sites
    How to add click to Call button in google sites
  • Google Sites Templates
    Google Sites Templates
  • Make an image scroll from top to bottom on hover
    Make an image scroll from top to bottom on hover
  • How to add typing text effect in Google Sites
    How to add typing text effect in Google Sites

Main Menu

  • Home
  • About
  • Tutorials
    • Google Sites Tutorials
    • WordPress Tutorials
    • CSS Tutorials
  • Templates
    • Google Sites Templates
  • Portfolio
  • Hire me!
  • Contacts

Footer

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 239 other subscribers

Recent Posts

  • How to add typing text effect in Google Sites
  • Top 3 Custom Forms you can use in Google sites instead of google forms for free
  • Add click to chat on WhatsApp & facebook buttons or links in google sites
  • How to add video background in Google Sites
  • Make an image scroll from top to bottom on hover

Best Web Hosting

BlueHost SiteGround iPage Godaddy

Created with Genesis Framework on Wordpress and hosted by BlueHost

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Cookie settingsACCEPT
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT