• 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

Education Pro – how to eliminate blog on home page

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 › Education Pro – how to eliminate blog on home page

This topic is: not resolved

Tagged: blog, education, home

  • This topic has 8 replies, 4 voices, and was last updated 8 years, 3 months ago by sticki.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • January 28, 2015 at 11:32 am #138858
    rburgett
    Member

    I am using the education Pro theme and want to get rid of the blog posts at the bottom of the page and have no clue what to do.
    I'm also using the Userpro plugin to have a separate set of pages for members only, including a member's only homepage, on which I would like to keep the blog posts as they are on the current home page. This way the bog is for members only.
    I am not programmer so if anyone can help, I would really appreciate it.

    January 29, 2015 at 4:21 pm #138994
    rburgett
    Member

    Can anyone point me in the right direction?
    I'm not a coder and this is my first WordPress site.

    January 31, 2015 at 4:25 am #139128
    Carlo
    Member

    Hi there. A simple way to remove the blog posts is to go into the file front-page.php, and add the below code directly above the line genesis();

    if ( !is_user_logged_in() )
    	remove_all_actions( 'genesis_loop' );

    Note that this just removes the blog posts from the front page. If anyone has the permalink to any of your blog posts, they'll be able to view it, regardless of whether they're a registered member.


    Comprehensive, easy to follow Genesis documentation

    February 2, 2015 at 7:51 pm #139466
    rburgett
    Member

    Carlo,

    Thank you for responding. When I add that code, it breaks the page and nothing displays but an error.
    To be clear, the fron-page.php that I edited is located in /public_html/wp-content/themes/education-pro. Is that correct?
    I copied and pasted your code above the genesis(); line, which was the last line in the file.

    February 3, 2015 at 7:50 pm #139580
    rburgett
    Member

    Can anyone tell me how to remove the blog feed from the bottom of the home page?

    February 3, 2015 at 9:46 pm #139593
    Tom
    Participant

    @rburgett - Please follow the first part of this tutorial. Do not add the code genesis() thst is included in the snippet from the tutorial.
    http://marketingpress.com/removing-blog-post-from-home-page-in-genesis/

    This leaves the front/home page with a blank section called "site-inner". You can hide this by adding the following CSS Code to the bottom of your child theme stylesheet.

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


    Choose your next site design from over 350 Genesis themes.
    [ Follow me: Twitter ] [ Follow Themes: Twitter ] [ My Favourite Webhost ]

    February 3, 2015 at 10:04 pm #139598
    rburgett
    Member

    @Tom - Thank you for responding. I read the page that you linked and then did a search on the server for home.php and unfortunately, I can't find it anywhere.
    Now what do I do?

    February 4, 2015 at 12:28 am #139611
    Tom
    Participant

    The Education Pro file you are looking for isfront-page.php.

    This is in the child theme root folder:
    wp-content/themes/education-pro/

    style.css will also be found in this folder.


    Choose your next site design from over 350 Genesis themes.
    [ Follow me: Twitter ] [ Follow Themes: Twitter ] [ My Favourite Webhost ]

    February 16, 2015 at 8:47 pm #141064
    sticki
    Member

    I was looking for the same thing. Tom this code worked like a charm above the last line genesis(); in the front-page.php

    /** Removing Blog Post From Home Page */
    remove_action( 'genesis_loop', 'genesis_do_loop' );add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );

    genesis();

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