• 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

Navigation Pro: 100% wide Featured images with AMP

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 › Navigation Pro: 100% wide Featured images with AMP

This topic is: not resolved

Tagged: Amp, Navigation Pro, object-fit

  • This topic has 5 replies, 2 voices, and was last updated 3 years, 3 months ago by iamwill.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • March 7, 2020 at 7:59 am #497205
    iamwill
    Participant

    Hi
    I'm trying to set up the Navigation Pro theme but can't get the featured images to show at 100% width when the AMP plugin is active. Has anyone got this working? I've gone through the theme manual and submitted a support ticket but still havn't got this working. Any advice would be massively appreciated.

    Thanks loads

    Will

    March 7, 2020 at 9:47 pm #497210
    Brad Dalton
    Participant

    Please link to the page in question.


    Tutorials for StudioPress Themes & WooCommerce.

    March 8, 2020 at 3:20 am #497212
    iamwill
    Participant

    Here's an example post - https://eyerevolution.net/blog/old-sessions-house-virtual-tour/

    March 8, 2020 at 4:45 am #497213
    Brad Dalton
    Participant

    Try this

    amp-img.amp-wp-enforced-sizes[layout="intrinsic"] > img {
    object-fit: fill!important;
    }

    Your image width is 1700px.


    Tutorials for StudioPress Themes & WooCommerce.

    March 8, 2020 at 5:24 am #497215
    iamwill
    Participant

    Thats really close, thanks Brad! It's now 100% wide but the height isn't in proporton. See here - https://eyerevolution.net/blog/jaguar-xe-360-interactive/

    March 8, 2020 at 10:51 am #497217
    iamwill
    Participant

    I changed fill to cover and it's working a treat 🙂

    Thanks for the help!

    amp-img.amp-wp-enforced-sizes[layout="intrinsic"] > img {
    object-fit: cover!important;
    }

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 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

© 2023 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