Community Forums › Forums › Archived Forums › General Discussion › Education Pro – how to eliminate blog on home page
- This topic has 8 replies, 4 voices, and was last updated 9 years, 9 months ago by sticki.
-
AuthorPosts
-
January 28, 2015 at 11:32 am #138858rburgettMember
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 #138994rburgettMemberCan 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 #139128CarloMemberHi 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.
February 2, 2015 at 7:51 pm #139466rburgettMemberCarlo,
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 #139580rburgettMemberCan anyone tell me how to remove the blog feed from the bottom of the home page?
February 3, 2015 at 9:46 pm #139593TomParticipant@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 #139598rburgettMember@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 #139611TomParticipantThe Education Pro file you are looking for is
front-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 #141064stickiMemberI 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();
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.