Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
Copa WPB
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Cómo añadir un calendario de Google en WordPress (paso a paso)

Nota editorial: Ganamos una comisión de los enlaces de socios en WPBeginner. Las comisiones no afectan a las opiniones o evaluaciones de nuestros editores. Más información sobre Proceso editorial.

¿Quieres añadir un calendario de Google a tu sitio WordPress?

Si utilizas Google Calendar para gestionar los eventos públicos y la agenda de tu empresa, es posible que quieras incrustarlo en tu sitio web. De esta forma, no tendrás que crear un nuevo calendario desde cero y cada evento que añadas se mostrará automáticamente.

En este artículo, te mostraremos cómo añadir un calendario de Google en WordPress, paso a paso.

How to add a Google Calendar in WordPress (Step by step)

¿Por qué añadir Google Calendar a WordPress?

Si utilizas Google Calendar para programar tus eventos públicos, es posible que quieras mostrarlo directamente en tu sitio web para que lo vean tus visitantes. Cada vez que añadas un nuevo evento, el calendario se actualizará y mostrará inmediatamente el nuevo evento a tus usuarios.

He aquí un ejemplo de cuándo puede ser útil añadir un calendario de Google. Si gestionas el sitio web de un gimnasio, puedes añadir al calendario todas tus clases de fitness, periodos de prueba gratuitos, sesiones de entrenamiento y otros eventos relacionados con el fitness.

An example of an events calendar

Al crear un evento, puedes añadir toda la información que los visitantes necesitan saber.

Puede incluir cualquier cosa que los asistentes deban llevar al acto, si se ofrecen refrescos, el precio y las indicaciones para llegar al lugar.

An example of a Google Calendar events

Esto ayudará a los visitantes a decidir si el evento es adecuado para ellos sin tener que hacer un montón de preguntas a través del formulario de contacto de su sitio.

También puede utilizar Google Calendar para programar eventos virtuales como seminarios web y sermones en línea. En la descripción del evento, puede añadir un enlace a la conferencia telefónica (si el evento es gratuito), lo que permitirá a los visitantes asistir fácilmente al evento.

Dicho esto, vamos a ver cómo añadir un calendario de Google a tu sitio web WordPress. Puede utilizar los enlaces rápidos a continuación para navegar a través de este artículo:

Paso 1: Instala un plugin de Google Calendar

La mejor forma de añadir un calendario a tu sitio web WordPress es utilizando el plugin Pretty Google Calendar. Es uno de los mejores plugins de calendario de WordPress y le permite mostrar los eventos de un calendario público en una estructura / disposición / diseño / plantilla adaptable al móvil.

Esto significa que el calendario se verá igual de bien en smartphones y tabletas que en dispositivos de sobremesa.

Embedding a Google Calendar in a WordPress website

Lo primero que tienes que hacer es instalar y activar el plugin Pretty Google Calendar. Para más detalles, consulte nuestra guía paso a paso sobre cómo instalar un plugin de WordPress.

Una vez activado, ve a Ajustes ” Ajustes de Pretty Google Calendar.

The Pretty Google Calendar WordPress plugin

Aquí tendrás que introducir una clave de API de Google, lo que harás en el siguiente paso.

Paso 2: Crear una clave API de Google

Para crear la clave de API de Google, dirígete a la consola de Google Cloud. Si es la primera vez que visitas la consola, deberás aceptar los términos y condiciones y elegir si deseas recibir actualizaciones por correo electrónico.

Una vez hecho esto, haga clic en “Aceptar y continuar”.

The Google Cloud Console

Accederá a la consola de Google Cloud.

Vamos a crear un nuevo proyecto para nuestra API de Google Calendar, así que haz clic en “Seleccionar un proyecto”.

Creating a new project in the Google Cloud Console

En el mensaje / ventana emergente que aparece, seleccione “Nuevo proyecto”.

Ahora puede escribir un nombre para el proyecto. Esto es sólo para su referencia, por lo que puede utilizar cualquier cosa que desee.

En esta pantalla, también puedes añadir una organización opcional a la clave de API y cambiar la ubicación en la que Google Cloud Console creará tu proyecto.

Creating a Google Calendar API key for WordPress

Cuando esté satisfecho con la información que ha introducido, haga clic en “Crear”.

A continuación, seleccione “API y servicios activados” en el menú de la izquierda y haga clic en “Activar API y servicios”.

Enabling the Google Calendar API

Esta pantalla muestra todas las API que puede activar. Por ejemplo, si quieres mostrar los últimos vídeos de tu canal de YouTube, tendrás que activar la API de datos de YouTube.

Como queremos añadir un calendario de Google en WordPress, desplázate hasta la sección “Espacio de trabajo de Google” y haz clic en “API de Google Calendar”.

Enabling the Google Calendar API

Esto te lleva a una pantalla donde puedes activar la clave para gestionar y cambiar eventos en el Calendario de Google.

Para ello, basta con hacer clic en el botón “Activar”.

Activating the Google Calendar API

Una vez hecho esto, ya puedes crear una clave API de Google Calendar.

En el menú de la izquierda, haz clic en “Credenciales” y, a continuación, selecciona “Crear credenciales”. En el menú desplegable que aparece, debe hacer clic en la opción “Clave API”.

Creating credentials in the Google Cloud Console

Al cabo de unos instantes, verás un mensaje / ventana emergente con la clave API creada. Tendrás que añadir esta información al plugin, así que anótala.

Por defecto, la clave API de Google Calendar no tiene restricciones. Para evitar que otras personas utilicen la clave de API, es recomendable restringirla al hacer clic en el enlace “Editar clave de API” dentro de la ventana emergente.

Creating a Google Calendar API key for your WordPress website

Se abrirá una pantalla con todas tus claves de API de Google. Simplemente busca la clave que acabas de crear y dale un clic.

Si ha cerrado el mensaje / ventana emergente por accidente, no se preocupe. Solo tienes que seleccionar “Credenciales” en el menú de la izquierda y seleccionar la clave de API que creaste en el paso anterior.

Restricting access to the Google Calendar API key

Ahora, desplácese hasta “Restricciones de la aplicación” y, a continuación, haga clic en “Sitios web”.

En “Restricciones del sitio web”, haga clic en “Añadir”.

Restricting access to the Google Maps API key

En el campo “Añadir sitio web”, escriba la dirección de su sitio web.

A continuación, haga clic en “Listo”.

Restricting a Google Maps API key

En “Restricciones de la API”, seleccione el botón siguiente a “Restringir clave”.

Una vez hecho esto, basta con hacer clic en el menú desplegable “Seleccionar API”.

Restricting access to a Google API key

En el menú desplegable, marca la casilla siguiente a “API de Google Calendar”.

A continuación, basta con hacer clic en “Aceptar”.

Google Calendar API

Una vez hecho esto, haz clic en “Guardar” para almacenar tus ajustes.

Ya puedes añadir la clave API de Google Calendar a tu sitio web de WordPress. Vuelve al escritorio de WordPress y añade la clave API al campo “API de Google”.

Adding a Google API key to your WordPress website

Una vez hecho esto, haga clic en “Guardar cambios” para guardar la clave API.

Paso 3: Haz público tu calendario de Google

Antes de añadir un calendario de Google en WordPress, deberás cambiar los ajustes del calendario para hacerlo público. También necesitas obtener el ID del calendario.

Para ello, abre el calendario de Google que quieras añadir a tu sitio web de WordPress. A continuación, haz clic en el icono “Engranaje” y selecciona “Ajustes” en el menú desplegable.

The Google Calendar settings

En el menú de la izquierda, busca la sección “Ajustes para mis calendarios”.

Aquí, haga clic en el nombre del calendario que desea compartir. Esto abrirá los ajustes para ese calendario específico.

Changing the calendar settings in Google Drive

Ahora, necesitas encontrar los ‘Permisos de acceso para eventos’.

Bajo este encabezado, simplemente marque la casilla siguiente a “Poner a disposición del público”.

Making a Google Calendar public

Una ventana emergente te advertirá de que estos eventos serán visibles para otras personas e incluso pueden aparecer en los resultados de búsqueda de Google.

Si está de acuerdo, haga clic en “Aceptar”.

How to make a Google Calendar public

Una vez hecho esto, desplázate hasta la sección “Integrar calendario” y busca el “ID de calendario”.

Tendrá que utilizar este valor en su shortcode, así que anótelo o deje esta pantalla abierta en una pestaña aparte.

Getting a Google Calendar ID

Paso 4: Mostrar el calendario de Google en su sitio de WordPress

Una vez hecho esto, ya puedes añadir Google Calendar a tu blog o sitio web de WordPress mediante un shortcode.

Método 1: Añadir Google Calendar a una página o entrada

Sólo tiene que ir a la página o entrada en la que desea mostrar el calendario y, a continuación, hacer clic en el botón “+ Añadir bloque”.

En la ventana emergente, escriba “Shortcode” y haga clic en el bloque de la derecha cuando aparezca.

Adding a Google Calendar to WordPress using shortcode

Dentro del bloque shortcode, añade el siguiente shortcode:

[pretty_google_calendar gcal= "calendario-id"]

Tendrás que sustituir “calendar-id” por el ID que obtuviste en la sección anterior.

Una vez hecho esto, puede añadir cualquier otro contenido a la página, como imágenes, texto y categorías y etiquetas. Cuando esté listo para publicar el calendario, haga clic en el botón “Publicar” o “Actualizar”.

Ahora, si visitas tu sitio web, verás Google Calendar en acción. Este es el aspecto del nuestro:

Example of what the Pretty Google Calendar looks like

Método 2: Añade tu calendario de Google a una barra lateral

En ocasiones, puede que desee promocionar sus eventos en todas las páginas de su sitio web WordPress. Para ello, basta con añadir el shortcode a cualquier área preparada para widgets.

Esto permite a los visitantes ver el calendario y conocer acerca de sus eventos desde cualquier página de su sitio web WordPress.

A Google Calendar, embedded in a WordPress sidebar

Para añadir Google Calendar a una barra lateral o a una sección similar, ve a Apariencia Widgets en el menú de la izquierda.

Ahora puede hacer clic en el icono azul “+”.

Adding a calendar to your WordPress website

En el campo de búsqueda que aparece, escriba ‘Shortcode’.

Cuando aparezca el bloque de la derecha, basta con hacer clic para añadirlo a la barra lateral.

Adding a shortblock block to the WordPress sidebar

También puede arrastrar el bloque Shortcode a la zona donde desee mostrar el calendario.

Después de eso, pegue el shortcode de Pretty Google Calendar y el ID del calendario en el bloque. Puede obtener esta información siguiendo el mismo proceso descrito anteriormente.

Por último, sigue adelante y haz clic en el botón “Actualizar”. Cuando visites tu sitio web de WordPress, verás el calendario de Google activo.

Si utilizas uno de los temas más recientes activados / activos por bloques, tendrás que añadir el widget utilizando el editor del sitio completo.

Para empezar, diríjase a Apariencia ” Editor en el escritorio de WordPress.

Opening the WordPress full-site editor (FSE)

En el menú de la izquierda, seleccione la plantilla o parte de plantilla que desea editar.

Por ejemplo, puede añadir el calendario a la barra lateral de su sitio o a una sección similar.

Editing a WordPress full-site editor template

Después de elegir una plantilla o parte de plantilla, puede añadir un bloque shortcode siguiendo el mismo proceso descrito anteriormente.

Una vez hecho esto, añade el shortcode y el ID del calendario que quieras mostrar.

Adding a Google Calendar to WordPress using the full-site editor

Por último, haga clic en el botón “Guardar” para activar el calendario.

Consejo extra: Añadir un formulario de reserva de eventos o citas

Ahora que has añadido un calendario de Google a WordPress, deberías plantearte permitir que los visitantes reserven un evento directamente desde tu sitio web.

La forma más fácil de hacerlo es con un plugin de formularios como WPForms. Este maquetador de formularios de WordPress facilita la creación de formularios de reserva sencillos y fáciles de usar, para que los usuarios no tengan ningún problema a la hora de completarlos.

WPForms

Lo bueno de WPForms es que tiene más de 1300 plantillas prediseñadas para elegir. Esto significa que puede crear un formulario de reserva para prácticamente cualquier tipo de sitio.

Para saber más acerca de WPForms, puede leer nuestra reseña / valoración en profundidad de WPForms. Además, vea WPForms en acción en estas guías:

Esperamos que este artículo te haya ayudado a aprender cómo añadir Google Calendar en WordPress. También puedes consultar nuestra selección de expertos sobre los mejores servicios de marketing por correo electrónico para pequeñas empresas o nuestra guía sobre cómo crear un formulario de contacto en WordPress.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Descargo: Nuestro contenido está apoyado por los lectores. Esto significa que si hace clic en algunos de nuestros enlaces, podemos ganar una comisión. Vea cómo se financia WPBeginner , por qué es importante, y cómo puede apoyarnos. Aquí está nuestro proceso editorial .

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

El último kit de herramientas de WordPress

Obtenga acceso GRATUITO a nuestro kit de herramientas - una colección de productos y recursos relacionados con WordPress que todo profesional debería tener!

Reader Interactions

69 comentariosDeja una respuesta

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Simon Adams says

    *Please note – error in instructions*

    Hi All

    I hope I can save people the many hours I have spent trying to get this to work. In the instructions it talks about restricting the API to “Google Cloud APIs”. If you do that you don’t get any calendar entries coming through.

    The answer is obvious and I thought it strange at the time (but assumed the instructions were right! Instead you should restrict the API to “Google Calendar API”.

    • WPBeginner Support says

      Thank you for sharing this, we’ll look into instructions as well and update them as needed!

      Administrador

  3. Elizabeth says

    Instructions were clear and I was able to get my calendar into my website but no events are showing up on the website calendar that i enter into my google calendar. I’ve made the calendar public. any suggestions?

    • WPBeginner Support says

      If the events are not appearing we would recommend reaching out to the plugin’s support and they can look into and assist with those errors. You may also want to try disabling your other plugins to check if there is a conflict with one of your other plugins.

      Administrador

  4. Adriana says

    hi, thanks for giving this guide! i successfully added this to my website. my question, Is it possible to give people the option to sync our calendar to theirs?

    thank you!

    • WPBeginner Support says

      Unless we hear otherwise, not the entire calendar at the moment but if you check with the plugin’s support and they can look to add that feature :)

      Administrador

  5. Lindsay Braud says

    The plugin for Simple Calendar has not been updated in 9 months and has not been tested on the last three major WordPress updates. Are you sure this is still the best option? Would doing an embed be better?

  6. Vik says

    Can you disable the “See more details” for individual events?
    I tried deleting the short code [link newwindow=”yes”]See more details[/link] and saving the calendar but it doesn’t work.
    Do I need to recreate a new calendar, remove the above short code and publish it from scratch?

    • WPBeginner Support says

      If there are no changes then you would want to ensure your cache is not the root of the issue as well as check with the plugin’s support to see if how you are wanting to set it up is supported or if it would need custom code.

      Administrador

  7. April says

    For anyone who, like me, needed this article’s instructions but found Google has updated their Cloud Platform and this article isn’t updated to match, here’s how I got it to work (11/8/2021):

    Follow the article instructions through: “Here, you need to click the ‘Enable APIs and Services’ option.”

    Next: Scroll down until you see “Google Calendar API” under Google Workspace and enable it.

    – You should be on the overview page, and there will be a button on the right side that says “create credentials.” Click it.

    – Which API are you using? > Google Calendar API
    – What data will you be accessing? > Application data (if you, like me, are trying to make visible a public Google Calendar and aren’t collecting any user information)

    – Are you planning to use this API with Compute Engine, Kubernetes Engine, App Engine, or Cloud Functions? > Yes.

    – Click next (it’ll say you don’t need anything else), then done.

    – You’ll be on your credentials page and there will be a new API key. Name it whatever you want. Then click the pencil/edit icon on the far right of it (hover text: Edit API Key).

    – Application restrictions > None

    – API restrictions > Don’t restrict key

    – Submit and you’ll be sent back to your credentials page. Click the “copy API key” button to copy to clipboard.

    – Continue following the instructions on this page from: “You need to copy this and paste it into your favorite text editor.”

    Hope that helps save you the time it took me trying to figure it out!

  8. Joelene Mills says

    Would there be an updated tutorial for this widget/plugin? I tried following along but Google has changed SO much – I was unable to figure it out.

    • WPBeginner Support says

      We work on keeping our content as up to date as we can, we’ll be sure to look at updating this article as we are able :)

      Administrador

  9. Leonie says

    I can’t find the Simple Calender – Google calender plugin. Which plugin can be used to sync my google Calender with my WordPress site

    • WPBeginner Support says

      This is an older article but we link in the article itself where you can download the plugin where we mention the Simple Calendar plugin.

      Administrador

  10. Wanda Lancaster says

    My Google calendar no longer displays on my website. It displays on the back end but, not on the website. Is there Plugin other than, the Simple Calendar, that I can use to display my client’s Google calender?

    • WPBeginner Support says

      Unless I hear otherwise, we do not have a recommended alternative at the moment but we will keep an eye out for alternatives we would recommend.

      Administrador

  11. Annie Sloan says

    Is there a way to import multiple Google calendars for use on different pages? I am looking at this plugin to use for a school who has separate calendars that need to be displayed on different pages. Please let me know if that’s possible. Thanks!

  12. Kathleen Mathieu says

    I’ve added Simple Google calendar to my web site on the SideBar. All works okay except each item shows a bullet and then the item on the next line. Multiple events on the same day show a bullet, line break & description for each event. If I put it on the Footer widget, the bullets don’t appear. How can I get rid of the bullets to make it more compact?

    • WPBeginner Support says

      That sounds like there may be a styling issue either from your theme or the plugin itself. If you reach out to the plugin’s support they should be able to let you know how to remove those.

      Administrador

  13. carlos says

    hello

    I need a plugin that let’s the users (using a form) to choose a date to do a meeting in the availables dates in my calendar.

    Do you know something like that?

  14. Rachel says

    Is there a way to add a search function to the Simple Calendar on my WordPress site? I read something about a search query function, but did not see how I can add this function.

    • Marie says

      Did you ever get any feedback on this? I am also interested in learning how to add a search in wordpress for my google calendar.

  15. Fay says

    I am not able to navigate back to view previous months on the calendar. Is there a setting i can change to allow this?

  16. Youssef says

    Hi,

    Is there a way to add an event directly from the WordPress back office (with syncing with Google Calendar) or should I add all the events in Google Calendar? Thank you.

  17. Javier says

    It doesnt work. Any suggestion?

    Error calling GET https://www.googleapis.com/calendar/v3/calendars (...) (400) Bad Request

    Please ensure that both your Google Calendar ID and API Key are valid and that the Google Calendar you want to display is public.

    • Laura says

      I am not sure why it isn’t working. The instructions seem so easy. i WISH it was that easy… Frustrating!!!

  18. Kelly says

    I’ve got the calendar set up on my web page and it looks great. The only problem is that I can’t scroll to another month. When I click on the arrows, nothing happens. I’m assuming this is a simple button click in my settings that I’m missing?

    • Tina says

      I have everything set up for the google calendar and it shows on my website. When I add a new event on my google calendar it doesn’t update on the website. What am I missing?

  19. Julian Cleak says

    I have installed the Calendar with no problem but I am trying to attach a file from Google Drive. The calendar is public and the file.pdf is visible but when I click on it I am requested to sign into my google account. I am trying to make this file public and have set everything to share to public but it doesn’t seem to work. any advice would be appreciated.

  20. Richard Moore says

    I added the google calendar properly, tested it and looks good, i copied the short-code on the last step to a new page as instructed and it only says ” Calendar Placeholder”

  21. Fernando says

    Everything’s installed and working, except my bubbles don’t consistently work. If I toggle between list/grid view I can get them to work for in preview mode but not when I go to the web page.

  22. Lisa says

    I have implemented the Simple Calendar and it works great. However, I would like to pull from more than one calendar at a time. Is there a way to show calendar events from more than one calendar within the same page/widget?

  23. Lin Sakai says

    I have followed the set up instructions more than once, but the “Calendar ID” field does not appear after I click on “Google Calendar” in calendar settings . Help! Thanks!

  24. Nathalie says

    I have google’s simple calendar plug in working. How do I synchronize it w/ my Google Calendar, and also the appearance of the calendar in my wordpress site is way too small. How do I make it bigger?

  25. Lauren H says

    I have successfully added the google calendar to my wordpress website, wahoo! However, the font is really small on the actual calander… any way to make the font bigger or change the color?

  26. Jen says

    Seemed easy enough but I am getting this error.

    Error calling GET …

    I double checked that my calendar is public and created a new APi and I get the same thing.

    :( Any suggestions?

  27. Brooke Jackson says

    Very informative! However, I do not have a plug-in icon on my left tab when in my dashboard. In fact, I can’t find the Plug-in option anywhere under my admin log-in.

    Help?

  28. Barry Goldstein says

    I installed the app, and of course in the beginning it did not run. For the calendar’s id I had installed the URL – without the double quotes. But that’s wrong! I was being too technical when all it needed was the over all name – in our case

    The page, looks great – vastly superior to inserting the HTML code from Google’s calendar.

    This will give the client a great start. Later on I’m sure they’ll upgrade to the pro version. Many thanks

  29. Judy says

    Is there a way to eliminate the ‘created by’ field when printing the agenda view from an embedded Google Calendar?

  30. Maggie says

    I did all the steps and it worked perfeclty, but the events are shown uber tinny, almost ilegibles. Is there a way to change this? Thanks!

  31. Kami says

    I added the plugin and set up the Google calendar following these directions. I don’t think I’ve missed anything. Still the events added on the public Google calendar don’t show up on my web page. Any suggestions?

    • Paul Appleby says

      Kami, it’s probably a cache issue. Have a look at the “Why the event I just added on a Google Calendar doesn’t show up in Simple Calendar?” page at:

      So any events you add or edit will not show up in the Simple Calendar until the amount of time in the plugin’s cache setting has elapsed.

      Hope that helps.

  32. Samuel says

    helped a lot, thank you!

    btw if anyone can tell me how to change the calendar start day from Monday to Sunday that would be great!

    • Steven Sanchez says

      Not sure if you found the answer but I had the same problem. On your dashboard if you go to settings-general-scroll down to the bottom and you will see “week starts on” then you can change it to sunday or whatever you like. I thought it was in the plugin settings but it’s in the WP general settings.

  33. stephie says

    Your tutorial helps me but I just one step left to complete to share to my readers!
    Couldn’t get the “add calendar” button at the page :(

    • Same Problem says

      Just ran into the same problem. I found the fix though! On the main menu go to Calendars->Settings->’Calendars’ Tab -> Attach Calendars. Select ‘Pages’ and the button will magically appear as described in this tutorial.

      • Niki says

        Thank you so much for the work around! I was about to give up in despair after I got everything else to work! So glad I thought to check the comments!

  34. Carlos says

    I really wanted to use this app as I maintain a full Google calendar.
    But every time I try to activate it gives me a server error and I am no longer able to access my plugins pages in dashboard. If I go into cpanel and remove plugin it fixes things but I have no clue why this would do this…
    Thoughts?

Deja tu comentario

Gracias por elegir dejar un comentario. Tenga en cuenta que todos los comentarios son moderados de acuerdo con nuestros política de comentarios, y su dirección de correo electrónico NO será publicada. Por favor, NO utilice palabras clave en el campo de nombre. Tengamos una conversación personal y significativa.