• 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

Adding Post titles as overlay text over featured images (Minimum 2.0)

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 › Adding Post titles as overlay text over featured images (Minimum 2.0)

This topic is: not resolved

Tagged: text overlay

  • This topic has 5 replies, 3 voices, and was last updated 12 years ago by Brad Dalton.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • March 27, 2013 at 9:13 am #31528
    BengtSather
    Member

    Hi

    First: I know some CSS. But I can not code in PHP - sorry ...

    This is what I am trying to achieve: I want to position the post titles over the featured images on my blog page.

    I work on a local installation. Therefore, I have no live site to show you. But here's an example of what my goal is: http://wplift.com/

    I've tried to create my own code based on this guide: How to lay text over an image

    My code ended up looking like this:

    function minimum_featured_image() {

    if ( is_home() ) {
    echo '<div id="featured-image"><img src="'. get_stylesheet_directory_uri() . '/images/sample.jpg" class="underlay" />'; // add underlay class
    add_action( 'genesis_post_title', 'minimum_do_post_title' 'before' => '<div class="overlay">', ); //replace widget ID if needed
    echo '</div></div>';
    }

    This code did not work, of course (as I said - I can't code).

    From what I can understand, the snippet should tell Genesis to get the image first and then the title. And if I'm not mistaken I will decide the final positioning of each of the elements in CSS, right?

    Are there existing snippets I can use? Or could someone be so kind and help me in the right direction? (I can take care of the CSS part myself.)

    Thanks in advance 🙂

    Bengt

    P.S. Please excuse my English - I'm Norwegian...

    March 27, 2013 at 12:40 pm #31581
    Brad Dalton
    Participant

    Did you ask Olly at wplift? He'll probably tell you how he did it.

    Otherwise this forum is excellent for CSS tricks.

    Here's another solution. http://jsfiddle.net/EgLKV/3/


    Tutorials for StudioPress Themes.

    March 28, 2013 at 12:14 am #31679
    BengtSather
    Member

    Hi Brad

    Thanks for your helpful reply :).

    Yes, the owner of wplift actually did a post explaining how to create overlay text effects. But it demonstrated how to do it with other themes than Genesis. My problem is that I don't know how to use actions and functions to connect the dots...

    But I'm on my way, thanks to the resources you mention and by studying the Decor child theme.

    March 28, 2013 at 1:40 am #31686
    Brad Dalton
    Participant

    Just change them to the genesis hooks using the visual hook guide if needed.


    Tutorials for StudioPress Themes.

    May 18, 2013 at 9:33 pm #41572
    Brenners
    Member

    BengtSather,

    Did you ever get this figured out? I am using the Minimum theme and would like to make the post title and post info overlay the featured image as well. Google's not helping me out much on this one.

     

    May 20, 2013 at 12:36 am #41779
    Brad Dalton
    Participant

    Try this http://www.carriedils.com/text-overlay-image/


    Tutorials for StudioPress Themes.

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