• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Issues Making Embedded Google Calendar Responsive

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Issues Making Embedded Google Calendar Responsive

This topic is: not resolved

Tagged: Google Calendar

  • This topic has 6 replies, 3 voices, and was last updated 11 years, 11 months ago by David Chu.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • July 17, 2014 at 4:41 pm #114747
    Maryi
    Member

    Hi,

    I embedded Google calendar into a web page and used the code below to make it responsive. It views just fine on an Android phone but there are two issues on Mac devices. 1. The calendar width is cut off on an iPhone 2. The calendar continues to expand on the iPhone and iPad.

    Does anyone know a solution for these issues?

    I have a Coming Soon page up on the live website but could create a guest login if you need to view the calendar.

    Thanks.

    /* Responsive iFrame */

    .responsive-iframe-container {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px;
    height: 0;
    overflow: hidden;
    }

    .responsive-iframe-container iframe,
    .vresponsive-iframe-container object,
    .vresponsive-iframe-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    }

    <!-- Responsive iFrame -->
    <div class="responsive-iframe-container">

    <iframe src="https://www.google.com/calendar/embed?src=chadashcommunity%40gmail.com&ctz=America/Denver" style="border: 0" width="800" height="600" frameborder="0" scrolling="no"></iframe>

    </div>

    http://www.chadashcommunity.org/events/
    July 18, 2014 at 6:26 am #114784
    Robin
    Member

    I would try changing the width inside of your iframe code to be width="100%" instead of 800. The 800 is pixels and since it's inline, most browsers won't override it with your site's CSS. HTH


    I do the best I can with what I’ve got. (say hey on twitter)

    July 18, 2014 at 9:05 am #114801
    David Chu
    Participant

    Hi!
    Quick idea: last time I did a similar move with an iFrame I just removed all styling code from the iFrame. I also removed width and height from the iFrame. That should allow your CSS to "take over".

    Hope that helps,
    Dave


    Dave Chu · Custom WordPress Developer – likes collaborating with Designers

    July 18, 2014 at 10:38 am #114811
    Maryi
    Member

    Hi Robin and Dave,

    Thanks for your suggestions but unfortunately they didn't eliminate the issues.

    Robin, I left the width at 100% because I think that's better to use regardless of the issue. I used percentage on previous iterations but left it out on this one so thanks for the reminder.

    Mary

    July 18, 2014 at 3:33 pm #114837
    David Chu
    Participant

    One last idea - try adding this to the top CSS declaration above. Again, I'm assuming no width or height figures on the iFrame. The rest of your CSS looks good to me.

    max-width: 100%;

    Good luck!
    D


    Dave Chu · Custom WordPress Developer – likes collaborating with Designers

    July 18, 2014 at 5:27 pm #114856
    Maryi
    Member

    Still didn't work Dave.

    I posted the issue in the Google Calendar forum and will post the solution if I figure this out.

    Thanks for your help.

    July 18, 2014 at 7:15 pm #114866
    David Chu
    Participant

    You're welcome, Mary,
    Indeed, there may be something idiosyncratic about that particular calendar code, or the context.


    Dave Chu · Custom WordPress Developer – likes collaborating with Designers

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble