Community Forums › Forums › Archived Forums › General Discussion › Minimum Theme Blog Portion Removal
- This topic has 4 replies, 2 voices, and was last updated 10 years, 6 months ago by mimi44.
-
AuthorPosts
-
October 1, 2013 at 12:20 pm #64971mimi44Member
Good day!
Can i get some help on removing a part of my homepage? The blog part under my minimum homepage http://www.wabable.com has a "read more" button that doesn't work. So i wanted to remove this blog portion and instead be able to put one of the pages. Is this possible?
What kind of code would i have to change?
Thank you!
http://wabable.com
CamilleOctober 1, 2013 at 7:05 pm #65025TomParticipantYou appear to have one blog post, #275, by author 'wabable', in 'uncategorized' (http://wabable.com/author/wabable). This seems to have been published at one time as "http://wabable.com/howitworks". It is possible you need to re-save your permalink structure.
To clean it up, you could just transfer the content of this post to a page. Then just remove whatever is in the Blog Widget area.
No code required :).
Choose your next site design from over 350 Genesis themes.
[ Follow me: Twitter ] [ Follow Themes: Twitter ] [ My Favourite Webhost ]October 2, 2013 at 6:59 pm #65155mimi44MemberHi Tom!
Thanks for your response. I resaved the permalink structure and it worked. However the post part on the bottom of the homepage is not a blog widget. Its part of the structure and im unable to remove it from the widget area.
Can i ask for advice on how to edit the homepage code to remove it and change it to pages instead of posts?Thanks so much!
CAmille
October 2, 2013 at 10:21 pm #65172TomParticipantHi Camille (or CAmille - are you from CAnada?),
Sorry about that - I saw your Minimum-themed site but "Modern Portfolio" registered in my head!
You can make this whole section not display with one CSS statement at the bottom of the file style.css:
.minimum #inner { display: none; }
An additional step to do this properly is to remove the actual loop process that is running to create the blog section:
To remove the blog section from the front page of the Minimum theme, open up home.php. At the bottom of the file, find the section with the following code and either comment it out or delete it;
add_action( 'genesis_loop', 'minimum_grid_loop_helper' ); function minimum_grid_loop_helper() { if ( function_exists( 'genesis_grid_loop' ) ) { genesis_grid_loop( array( 'features' => 0, 'feature_image_size' => 'featured', 'feature_image_class' => 'post-image', 'feature_content_limit' => 0, 'grid_image_size' => 0, 'grid_image_class' => 'alignnone', 'grid_content_limit' => 250, 'more' => __( '[Read more]', 'minimum' ), ) ); } else { genesis_standard_loop(); } }
Be sure not to touch the last line in the file:
genesis();
Just doing this alone would allow the #inner div to continue to display, leaving a white band with top border under the 'home-feature' circle sections. That CSS change we did makes sure that this does not display.
Have fun with your video site!
Choose your next site design from over 350 Genesis themes.
[ Follow me: Twitter ] [ Follow Themes: Twitter ] [ My Favourite Webhost ]October 3, 2013 at 3:22 pm #65257mimi44MemberTom...you are amazing! It worked, thank you soooo much!
-
AuthorPosts
- The topic ‘Minimum Theme Blog Portion Removal’ is closed to new replies.