• 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

How to add margin between featured image and post title?

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 › How to add margin between featured image and post title?

This topic is: not resolved
  • This topic has 2 replies, 2 voices, and was last updated 10 years, 3 months ago by gcarswell.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • March 16, 2015 at 10:20 am #144629
    gcarswell
    Member

    I'm using Magazine pro and used the following snippet in functions .php to add a featured image above the post title on blog posts:

    /* Code to Display Featured Image on top of the post */
    add_action( 'genesis_before_entry', 'featured_post_image', 8 );
    function featured_post_image() {
    if ( ! is_singular( 'post' ) ) return;
    the_post_thumbnail('post-image');
    }

    That worked fine, but it's a bit cramped, I'd like to add some margin between the bottom of the image and the post title:

    http://cl.ly/aEfr

    Anyone have some CSS for this? I can't seem to find it.

    March 16, 2015 at 11:06 am #144639
    Victor Font
    Moderator

    Can't help you with a screen shot. Please post a link to the site so we can see the source code.


    Regards,

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

    March 16, 2015 at 11:13 am #144644
    gcarswell
    Member

    Thanks Victor, I wish I could, but it's a beta site that I'm not allowed to post publicly. Outside of the addition of the featured image, our theme hasn't been customized any more than the standard demo of Magazine pro:

    http://my.studiopress.com/themes/magazine/#demo-full

    I was hoping there was some basic CSS that applies to the bottom of a standard featured image in a post.

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

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