• 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

yoongming

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
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • July 18, 2019 at 4:01 am in reply to: Breakthrough Pro: How to remove the hero title while keeping hero image #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 18, 2019 at 3:04 am in reply to: Breakthrough Pro: How to remove the hero title while keeping hero image #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 2:16 am in reply to: Breakthrough Pro: How to remove the hero title while keeping hero image #492413
    yoongming
    Member

    Hi Brad,

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

    Best regards,
    YM

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

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