• 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

[Monochrome Pro] Featured Image with text not looking good as Header image

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 › [Monochrome Pro] Featured Image with text not looking good as Header image

This topic is: not resolved

Tagged: featured image, monochrome

  • This topic has 1 reply, 1 voice, and was last updated 4 years, 2 months ago by Luis Gonzaga.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • April 1, 2018 at 3:31 pm #218534
    Luis Gonzaga
    Member

    Hi,

    I'm using Monochrome Pro on my site http://www.fullfill.pt. Everything is getting fine except for some articles, when the featured image has text, it is shown "broken" on the header image of the article (you can see examples here: http://www.fullfill.pt/workshop-inteligencia-espiritual-lisboa/ or here http://www.fullfill.pt/formacao-inteligencia-espiritual-lisboa/).

    In the previous case, I use the featured imaged on the first page to announce the events, so I want to put text on the image to be easily seen. But as the featured image is used on the header, it does not look well.

    Is there a way I can setup a different image on the header than the feature image?

    Any help is greatly appreciated. Thank you.

    http://www.fullfill.pt/workshop-inteligencia-espiritual-lisboa/
    April 1, 2018 at 4:53 pm #218535
    Luis Gonzaga
    Member

    Hi.

    After a few searches on Internet, I solved my question:
    1) installed Advanced Custom Fields plugin;
    2) defined a background_image custom field;
    3) add the following code to the single.php and replaced line 55:

    if (! empty(get_field('background_image'))) {
    	$image = array( 'src' => get_field('background_image') );
    } else {
    	$image = array( 'src' => has_post_thumbnail() ? genesis_get_image( array( 'format' => 'url' ) ) : '' );
    }

    Thank you, Luis

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

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