• 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

Featured Image on Sample Theme Getting blurred

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 › Design Tips and Tricks › Featured Image on Sample Theme Getting blurred

This topic is: not resolved

Tagged: full width image, genesis_after_header, hero image, Sample Theme

  • This topic has 3 replies, 2 voices, and was last updated 2 years, 2 months ago by Amol.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • November 27, 2020 at 7:24 am #502096
    Amol
    Participant

    Hello Everyone,

    I have been working on my new website based on the genesis sample theme with AMP standard view. I have created a full width featured image for the page & post by using the following code.

    add_post_type_support( 'post', 'genesis-singular-images' );
    add_post_type_support( 'page', 'genesis-singular-images' );
    remove_action( 'genesis_entry_content', 'genesis_do_singular_image', 8 );
    add_action( 'genesis_after_header', 'genesis_do_singular_image' );

    by default, the featured image size in genesis customizer is 702 X 526 which creates a lot of white space on both the left & right side ( css rule was object-fit: contain;) so I add a CSS rule

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

    The problem I am facing the hero image keeps getting blurred. Kindly help me fix the image blur issue.

    Link to website page

    Customizer image dimensions

    image dimesion as per the inspect element


    What’s Beneath the Webface

    https://wordpress-220811-1615918.cloudwaysapps.com/about-us/
    November 27, 2020 at 3:08 pm #502098
    Anita
    Keymaster

    It's because your image is too small. You need to create a new image larger image size.


    Love coffee, chocolate and my Bella!

    November 27, 2020 at 7:53 pm #502101
    Amol
    Participant

    Dear Anita,

    The image dimension are minimum 1920 x 1080 px.

    By default the image gets cropped to 702 x 526 pixel. This is featured image dimension set in customizer.

    I did use simple image plugin to reset the image as per the container size & different images. Even after that the image keeps getting blur.

    Please advice.

    Thank you.


    What’s Beneath the Webface

    November 27, 2020 at 11:08 pm #502102
    Amol
    Participant

    Fixed the issue by changing the featured image size in function.php from 702 to 1263.

    Thank you so much for your support.


    What’s Beneath the Webface

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Design Tips and Tricks’ 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