• 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

Breakthrough Pro: How to remove the hero title while keeping hero 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 › General Discussion › Breakthrough Pro: How to remove the hero title while keeping hero image

This topic is: not resolved

Tagged: Breakthrough Pro, Front Page Image 1, hero title

  • This topic has 7 replies, 3 voices, and was last updated 5 years, 11 months ago by Genesis Developer.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • July 18, 2019 at 12:41 am #492410
    yoongming
    Member

    Hi,

    This is my first time posting - very pleased to meet you all. I just started a blog and I am totally new to website design and blogging.

    I would like to remove the hero section's title i.e. work, play, live, thrive

    Under Appearance > Customize, then going to the hero section settings tab, I left the Hero Title section as <blank>. While this removes the hero title from the site, it also inadvertently removes the hero section image. I would like to keep the image, I just would like to remove the title. Does anyone have a solution / recommendation?

    Thank you in advance.

    Thank you,
    YM

    https://urbanitewarrior.com/
    July 18, 2019 at 12:53 am #492411
    Brad Dalton
    Participant

    Link to the page/post in question please where you want to remove the title.


    Tutorials for StudioPress Themes.

    July 18, 2019 at 2:16 am #492413
    yoongming
    Member

    Hi Brad,

    Thank you in advance. The page in question is my front page. urbanitewarrior.com

    Best regards,
    YM

    July 18, 2019 at 2:38 am #492414
    Brad Dalton
    Participant

    Which image does it remove?

    When i remove the Hero Title, the Front Page Image 1 remains.


    Tutorials for StudioPress Themes.

    July 18, 2019 at 3:04 am #492417
    yoongming
    Member

    It removes the hero image - front page image 1. the one with the Petronas Twin Towers.

    The image is there on the live editor, but when I hit publish, it disappears. I've tried it now, if you navigate to my site now you will see what I mean.

    July 18, 2019 at 3:37 am #492418
    Brad Dalton
    Participant

    Yes, you are right. You will need to modify the code in the lib > templates > hero.php file so the section still displays when the title is removed.


    Tutorials for StudioPress Themes.

    July 18, 2019 at 4:01 am #492419
    yoongming
    Member

    Thanks. I am guessing it's this part of the code right?

    
    // Sets up hero section content.
    $title       = get_theme_mod( 'breakthrough_hero_title_text', breakthrough_get_default_hero_title_text() );
    $button_text = get_theme_mod( 'breakthrough_hero_button_text', breakthrough_get_default_hero_button_text() );
    $button_url  = get_theme_mod( 'breakthrough_hero_button_url', '#' );
    $hero_image  = get_theme_mod( 'breakthrough_front_page_image_1', breakthrough_get_default_front_page_image_1() );
    $hero        = get_theme_mod( 'breakthrough_show_hero_section', true );
    
    if ( $hero ) {
    
    	if ( $title || is_active_sidebar( 'hero-section' ) ) {
    
    		// Opens the hero-section markup.
    		genesis_markup(
    			array(
    				'open'    => '<div %s><div class="wrap">',
    				'context' => 'hero-section',
    			)
    		);
    
    		if ( $title ) {
    				echo '<h2 class="hero-title">' . $title . '</h2>';
    		}
    
    		if ( $button_text ) {
    				echo '<a href="' . $button_url . '" class="button button-hero">' . $button_text . '</a>';
    		}
    
    		$front_page_image_1 = get_theme_mod( 'breakthrough_front_page_image_1', breakthrough_get_default_front_page_image_1() );
    
    		if ( $front_page_image_1 ) {
    			$image_id  = attachment_url_to_postid( $front_page_image_1 );
    			$image_alt = get_post_meta( $image_id, '_wp_attachment_image_alt', true );
    			echo '<div class="full-width-image"><img src="' . $front_page_image_1 . '" alt="' . $image_alt . '" /></div>';
    

    How do edit it? Any idea?

    July 22, 2019 at 11:10 pm #492493
    Genesis Developer
    Member

    Replace this line

    if ( $title || is_active_sidebar( 'hero-section' ) ) {

    with

    if ( is_active_sidebar( 'hero-section' ) ) {

    Next go to
    1. Appearance->Widgets page
    2. Drag&drop the text/or HTML widget at Hero section sidebar
    3. Save the widget without any content

    Hope that it will work.


    Download Genesis Featured Posts Combo Widget | Simple Grid Layouts Plugin for Posts, CPTs and terms
    You can request new tips/help.

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)
  • The forum ‘General Discussion’ 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