• 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

Removing blog posts on homepage with Genesis Extender

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 › Removing blog posts on homepage with Genesis Extender

This topic is: resolved

Tagged: Genesis Extender, homepage, minimum pro, remove blog posts

  • This topic has 9 replies, 2 voices, and was last updated 12 years ago by PrayersNApples.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • November 17, 2013 at 1:10 pm #73644
    PrayersNApples
    Member

    I'm using Minimum Pro and want to remove all blog posts (and any negative white space that leaves) from my homepage. I found the answer here: http://www.studiopress.community/topic/how-to-remove-blog-posts-from-minimum-pro-homepage/ , but don't know a lot about code and was wondering if I could use Genesis Extender to accomplish the same thing? (I also posted on the previous thread, but thought I should start a new post in case any one else has experience with or questions about Genesis Extender.)

    If anyone could walk me through it, I'd greatly appreciate it!!

    http://www.prayersandapples.com
    November 17, 2013 at 1:40 pm #73702
    nutsandbolts
    Member

    Don't be afraid of editing your files - as long as you have access to your theme's folder via CPanel or FTP, you can fix anything that may get broken (though nothing should get broken). Unfortunately Genesis Extender won't allow you to remove functions; it will only allow you to add new ones, so this is a situation where you'll have to edit to make the changes you want.

    That being said, here's what you need to do. Go to Appearance > Editor in your dashboard and look for front-page.php on the right. Click on it and the file will open in the editor box. Select everything in the box and remove it, then paste in the following (make sure you get it all):

    <?php
    
    //* Enqueue scripts
    add_action( 'wp_enqueue_scripts', 'minimum_front_page_enqueue_scripts' );
    function minimum_front_page_enqueue_scripts() {
    	
    	//* Load scripts only if custom background is being used
    	if ( ! get_background_image() )
    		return;
    
    	//* Enqueue Backstretch scripts
    	wp_enqueue_script( 'minimum-backstretch', get_bloginfo( 'stylesheet_directory' ) . '/js/backstretch.js', array( 'jquery' ), '1.0.0' );
    	wp_enqueue_script( 'minimum-backstretch-set', get_bloginfo('stylesheet_directory').'/js/backstretch-set.js' , array( 'jquery', 'minimum-backstretch' ), '1.0.0' );
    	wp_localize_script( 'minimum-backstretch-set', 'BackStretchImg', array( 'src' => get_background_image() ) );
    	
    	//* Add custom body class
    	add_filter( 'body_class', 'minimum_add_body_class' );
    
    }
    
    //* Minimum custom body class
    function minimum_add_body_class( $classes ) {
    	$classes[] = 'minimum';
    		return $classes;
    }
    
    //* Add widget support for homepage if widgets are being used
    add_action( 'genesis_meta', 'minimum_front_page_genesis_meta' );
    function minimum_front_page_genesis_meta() {
    
    	if ( is_home() ) {
    
    		//* Remove entry meta in entry footer and Genesis loop
    		remove_action( 'genesis_loop', 'genesis_do_loop' );
    		
    		//* Remove entry footer functions
    		remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_open', 5 );
    		remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
    		remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_close', 15 );
    		
    		//* Force full width content layout
    		add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
    
    	}
    
    	if ( is_active_sidebar( 'home-featured-1' ) || is_active_sidebar( 'home-featured-2' ) || is_active_sidebar( 'home-featured-3' ) || is_active_sidebar( 'home-featured-4' ) ) {
    
    		//* Add Home featured Widget areas
    		add_action( 'genesis_before_content_sidebar_wrap', 'minimum_home_featured', 15 );
    
    	}
    }
    
    //* Add markup for homepage widgets
    function minimum_home_featured() {
    
    	printf( '<div %s>', genesis_attr( 'home-featured' ) );
    	genesis_structural_wrap( 'home-featured' );
    
    		genesis_widget_area( 'home-featured-1', array(
    			'before' => '<div class="home-featured-1 widget-area">',
    			'after'	 => '</div>',
    		) );
    
    		genesis_widget_area( 'home-featured-2', array(
    			'before' => '<div class="home-featured-2 widget-area">',
    			'after'	 => '</div>',
    		) );
    
    		genesis_widget_area( 'home-featured-3', array(
    			'before' => '<div class="home-featured-3 widget-area">',
    			'after'	 => '</div>',
    		) );
    
    		genesis_widget_area( 'home-featured-4', array(
    			'before' => '<div class="home-featured-4 widget-area">',
    			'after'	 => '</div>',
    		) );
    
    	genesis_structural_wrap( 'home-featured', 'close' );
    	echo '</div>'; //* end .home-featured
    
    }
    
    genesis();

    What I've done is remove the grid loop function from front-page.php, as well as the function to display the grid at the bottom of the page.

    Once you've done that, add this to your custom CSS through Genesis Extender:

    .home .site-inner {
            display: none;
    }

    That will hide the white space at the bottom of the homepage.

    If any part of this doesn't make sense, let me know and I'll try to explain better. 🙂


    Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
    I provide development and training services for designers • Find me on Twitter and Google+

    November 17, 2013 at 2:10 pm #73759
    PrayersNApples
    Member

    Thank you so much for taking the time to answer! 🙂 I host with synthesis, so I don't have the "editor" function.. I have to do everything using CyberDuck to get to my files - which file should I look for on there? And thanks for the encouragement - I did something in a .php file before once and lost my entire site! (Eventually the tech ppl helped me get it back!) But it was sooo scary! Is there anything with this particular process I need to be extra careful NOT to do to make sure that doesn't happen? Thanks!!

    November 17, 2013 at 2:11 pm #73763
    nutsandbolts
    Member

    Okay, that's even better! Synthesis drives me crazy but it's a good safety measure.

    You'll want to navigate to /wp-content/themes/minimum/ to look for front-page.php (or it may be /wp-content/themes/minimum-pro/

    As long as you replace the contents of the file with exactly what I gave you above, you shouldn't have any issues. But if something goes wrong and you see an error on the site after editing, don't worry - I have a clean copy of front-page.php I can give you if needed.


    Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
    I provide development and training services for designers • Find me on Twitter and Google+

    November 17, 2013 at 2:35 pm #73796
    PrayersNApples
    Member

    Ok so that def got me super close to what I want! The only problem is, it deleted all the home feature items too (where the four circles are in the middle of my page) - it made the footer and site tagline (the purple strip) connect. Anyway to keep that middle info (I have four "Home Feature" places on my dashboard that I dragged widgets into to get it to look like how it does now) and just delete the blog posts (right now there's just two showing): http://www.prayersandapples.com.

    November 17, 2013 at 2:39 pm #73798
    nutsandbolts
    Member

    Try just the front-page.php part without adding the CSS to Extender. Leave it up and let me know so I can look at it - it's impossible to tell if everything is back the way it was.


    Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
    I provide development and training services for designers • Find me on Twitter and Google+

    November 17, 2013 at 2:46 pm #73803
    PrayersNApples
    Member

    THAT WORKED!! 🙂 You.are.amazing!! 🙂 There's just a tiny bit of white space, but I think it makes it look even better! Thank you so, so much!

    November 17, 2013 at 2:47 pm #73804
    PrayersNApples
    Member
    This reply has been marked as private.
    November 17, 2013 at 2:47 pm #73805
    nutsandbolts
    Member

    Awesome! So glad I was able to help. I don't know if your private reply was for me, but I'm not able to see it since I'm just a volunteer and not part of StudioPress. 🙂


    Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
    I provide development and training services for designers • Find me on Twitter and Google+

    November 17, 2013 at 2:49 pm #73806
    PrayersNApples
    Member

    It was lol 🙂 I was saying that I'm about to post a new thread real quick with another question and was hoping you might be able to take a look - if not, no worries!! thanks again!! 🙂

  • Author
    Posts
Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Removing blog posts on homepage with Genesis Extender’ is closed to new 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