Reply To: Remove blog from home page

Homepage Community Forums Ambition Remove blog from home page Reply To: Remove blog from home page

#18184
Wes
Moderator

    No you’re right the code I first posted was originally from the Epik theme. I just grabbed the code from it since I’m currently working on an update for it. I edited the comment right after so it wouldn’t seem confusing, but then I realized you’re using the Ambition theme 馃檪

    Eventually that code above will be added in the Ambition theme so that users will have the option to turn the blog on and off with one click.

    For now, with the version you’re using you can edit your front-page.php file by first changing this –

    //* Force full width content layout
    add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_content_sidebar' );

    To this –

    //* Force full width content layout
    add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );

    Then add this right under the code above –

    //* Remove the default Genesis loop
    remove_action( 'genesis_loop', 'genesis_do_loop' );

    Finally, change the margin-top in your CSS to 0. It may be around line 655 in your CSS depending on whether you’ve made adjustments to it or not.

    .front-page .site-container .site-inner {
    	margin-top: 0;
    	overflow: hidden;
    }

    Let me know if that helps.