• 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 Featured Video to Minimum Homepage

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 › Adding Featured Video to Minimum Homepage

This topic is: not resolved

Tagged: featured image, homepage video, Minimum theme

  • This topic has 1 reply, 2 voices, and was last updated 10 years, 8 months ago by Jen Baumann.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • January 6, 2013 at 7:00 pm #10000
    micwoods
    Member

    Does anyone have a code snippet to share that I could add a video area on the homepage of the Minimum 2.0 theme in place of the Featured Image? I want to have a video that is the same 1600x600 size of that image. Would even be nice if it was a widget. Not sure.

    Thanks!

    January 6, 2013 at 10:02 pm #10037
    Jen Baumann
    Participant

    You can pretty much follow Brian's add a widget tutorial here to register the widget: http://www.briangardner.com/welcome-text-widget/

    You'll have to do something like this to change the function in functions.php to include it:

    /** Add the featured image section */
    add_action( 'genesis_after_header', 'minimum_featured_image' );
    function minimum_featured_image() {
    	if ( is_home() ) {
    		   genesis_widget_area( 'welcome-text', array(
                           'before' => '<div class="welcome-text widget-area">',
                        ) );
    	}
    	elseif ( is_singular( array( 'post', 'page' ) ) && has_post_thumbnail() ){
    		echo '<div id="featured-image">';
    		echo get_the_post_thumbnail($thumbnail->ID, 'header');
    		echo '</div>';
    	}
    }

    Plus whatever css you need.

    Note that code didn't paste well so pay attention to the function already in your file.

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

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