Community Forums › Forums › Archived Forums › General Discussion › Eliminating Featured Post on Homepage of Education Theme
Tagged: blog post, education theme, homepage
- This topic has 17 replies, 5 voices, and was last updated 10 years, 5 months ago by
Mak-Donuts.
-
AuthorPosts
-
March 5, 2013 at 11:10 am #24326
imhelpline
MemberHi,
I am currently working on a new website prototype on http://www.petrydemo10.com using the Education theme. How can I eliminate the featured post titled "SwedishAmerican and Rosecrance Health Network partner to improve mental health continum in region" on the homepage.
The client does not want anything featured in that area, and simply wants the Why Aspen text area to be right on top of the footer widgets.
Thanks for your help!
John
March 5, 2013 at 1:06 pm #24352weslinda
MemberI don't know if this is perfectly what you wanted, but we did this. We added the following code to our functions.php file.
/** Remove News Items & Sidebar on Home Page **/
add_action( 'get_header', 'home_edit' );
function home_edit() {
if ( is_home() ) {
remove_action( 'genesis_loop', 'genesis_do_loop' );
remove_action( 'genesis_sidebar', 'genesis_do_sidebar' );
}
}
Loving the Genesis Life!
March 5, 2013 at 1:27 pm #24359imhelpline
MemberHey Wes,
I appreciate the help! However, I added that code to the functions file and the post is still showing on the homepage.
Please let me know what else we could try.
Thanks,
John
March 5, 2013 at 2:16 pm #24379weslinda
MemberSorry about that. Give this a try. I'm going to compare my home.php file to the original one and get back to you on that as well.
/** Remove News Items & Sidebar on Home Page **/
add_action( ‘genesis_setup’, ‘home_edit’ );
function home_edit() {
if ( is_front_page() ) {
remove_action( ‘genesis_loop’, ‘genesis_do_loop’ );
remove_action( ‘genesis_sidebar’, ‘genesis_do_sidebar’ );
}
}
Loving the Genesis Life!
March 5, 2013 at 2:19 pm #24381imhelpline
MemberHey Wes,
I appreciate your assistance with this question....
I tried the new code, and that post is still showing. We can get rid of both the post and that sidebar showing on petrydemo10.com.
I will standby.
Thanks!
John
March 5, 2013 at 2:51 pm #24392weslinda
MemberOkay, so I have no idea why it isn't working. It should work, but isn't, but there is a CSS hack that can be done as an interim. It'll at least hide the information for your visitors.
.home #content, .home #sidebar {display:none;}
Loving the Genesis Life!
March 5, 2013 at 3:12 pm #24399imhelpline
MemberThat worked!! Thank you very much!!
John
March 5, 2013 at 3:45 pm #24413weslinda
MemberTechnically, the content is still on the page, all we're doing is hiding it. But it reaches your current goal. Glad it worked.
Loving the Genesis Life!
March 5, 2013 at 3:53 pm #24417imhelpline
Membergotcha! Thanks!
As long as they don't see it lol
March 6, 2013 at 4:46 pm #24641Sumu
MemberHi weslinda,
maybe you can answer a similar question here?
I wonder how to remove the posts on the homepage #content bottom and display a page content of my choice..
Thanks
Su
March 14, 2013 at 12:34 pm #26259Baba
MemberWeslinda, I'm trying to accomplish something similar. I understand that I have to have a post or a page set up with an image attached for the Slider to work. But I don't want the image to show up at the bottom of the Home page along with the post/page content. I'd really just like to have the slider do nothing but show images and have the content area above the footer show posts/pages of my choice. Is this possible or should I go hunting for another theme?
Thanks!!
March 14, 2013 at 1:03 pm #26290weslinda
MemberHey Sumu, apologies. I somehow missed your note. You would need to have someone redo the homepage template. They can swap out the list of articles for your content. Pretty straight forward. Any developer should be able to do it.
Loving the Genesis Life!
March 14, 2013 at 1:05 pm #26294weslinda
MemberBaba, the easiest way to achieve this is by using a different slider plugin, one that will allow you to show just images that you've chosen. The best I've found for that is Soliloquy. There is a lite version in the WordPress repository (http://wordpress.org/extend/plugins/soliloquy-lite/), the full fledged versions offers some great additional features (http://www.soliloquywp.com).
Loving the Genesis Life!
March 14, 2013 at 1:12 pm #26304Baba
MemberWeslinda, so what would happen to the content area above the Footer after I install Soliloquy? Would I need to have the homepage template redone as you suggested to Sumu in order to insert pages/posts of my choice?
Thanks for the quick response!
March 14, 2013 at 2:56 pm #26552weslinda
MemberBaba, soliloquy is a widget you can drop into a slider area. Won't affect the rest of the homepage at all. Apologies that I missed the part of your post about the content. If you want something other than the default list of content, then some editing of the home page template would be required to get the output you'd like.
Not specific to the education theme, but here is a tutorial on custom homepages for Genesis. There are a number of good tutorials out on the subject as well if you search Google.
http://studiopress.tv/custom-home-pages/
Finally, if it's over your head, there are a number of genesis devs out there that can assist with your specific needs.
Loving the Genesis Life!
March 14, 2013 at 3:02 pm #26561Baba
MemberWeslinda, Thanks for being patient, professional and a good source of support! I'll give all of this a try. Wish me luck.
April 1, 2013 at 2:41 pm #32509Mak-Donuts
ParticipantInstead of eliminating the blog post, how would I just display 1 (the latest) on the homepage only?
You might suggest I go to settings and change the number but that is a universal change. How can I just have one blog post appear on the homepage?
Any insights would be appreciated.
MD
April 1, 2013 at 2:42 pm #32510Mak-Donuts
ParticipantHi All,
How can I just have one blog post appear on the homepage? You might suggest to go to settings and change the number but that's a universal change?
I would like to keep my archive listings to 5 but I just want my homepage to display the latest ONE.
Any insights would be appreciated.
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.