• 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

Academy Pro: Single Featured Image Styling

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 › Academy Pro: Single Featured Image Styling

This topic is: resolved

Tagged: academy pro

  • This topic has 4 replies, 2 voices, and was last updated 3 years, 9 months ago by hello.sun.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • April 13, 2019 at 10:46 am #490637
    hello.sun
    Member

    How do I replicate this image styling found here, (Academy Pro Page), on other pages of the website?

    I've been trying to replicate that image styling for this page (link), but with no success.

    I've uploaded the image using 'images' in Gutenburg blocks, then added the 'single-featured-image' to the Additional CSS Class of the block. The 'single-featured-image' class is the same class I found on the Academy Pro link posted in the beginning.

    Adding the class helped add the colored border, but the image itself doesn't have a border-radius.

    What am I missing here?

    Thank you

    http://mammoth-test.flywheelsites.com
    April 13, 2019 at 12:24 pm #490638
    Victor Font
    Moderator

    You're missing the .post-image class that needs to be applied to the image itself. I don't know that you can do this with Gutenberg. Something you can try is adding the CSS like this to the style sheet:

    .single-featured-image img {
        border-radius: 10px;
        box-shadow: 0 19px 70px 0 rgba(0,0,0,0.12);
        transition: all 0.2s;
    }

    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    April 13, 2019 at 2:12 pm #490640
    hello.sun
    Member

    I did try adding the .post-image class to the additional css class section of the image, but it ended putting a border around a section about 1/2 inch above the image.

    Your code did work! Thank you Victor.

    What does the "img" selector in your code do? I haven't yet learned about css classes with an img selector.

    A side question for you, do you build websites using Gutenburg or the classic verision of WordPress?

    I've heard of mixed reviews from developers with Gutenburg.

    April 20, 2019 at 11:48 am #490766
    Victor Font
    Moderator

    img is an HTML selector. All images are displayed using an img element. By adding img as a modifier to the .single-featured-image class, it tells the browser to apply the CSS to any image contained within the element with the .single-featured-image class.

    As for building websites, it depends on what my client wants. I have many, many clients that still use the classic editor. I use Gutenberg for my websites and my development server, but I find that Gutenberg doesn't support a lot of the customizations I make so I end up using the custom HTML block a lot.

    BTW, there's free video training available on my site if your want to learn more about WordPress/Gutenberg.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    April 21, 2019 at 5:07 pm #490777
    hello.sun
    Member

    Yes, I ended up learning more about them in the CSS course on w3school.

    Thank you for mentioning your free videos.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Academy Pro: Single Featured Image Styling’ is closed to new 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