Minimum Theme Blog Portion Removal

Community Forums Forums General Discussion Minimum Theme Blog Portion Removal

This topic is: resolved

Tagged: ,

This topic contains 4 replies, has 2 voices, and was last updated by  mimi44 1 year ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #64971

    mimi44
    Participant
    Post count: 5

    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!
    Camille

    http://wabable.com
    #65025

    Tom
    Participant
    Post count: 942

    You 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.
    Updates via GenesisThemes.ca | Twitter | Google+ | Tumblr

    #65155

    mimi44
    Participant
    Post count: 5

    Hi 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

    #65172

    Tom
    Participant
    Post count: 942

    Hi 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.
    Updates via GenesisThemes.ca | Twitter | Google+ | Tumblr

    • This reply was modified 1 year ago by  Tom.
    • This reply was modified 1 year ago by  Tom.
    #65257

    mimi44
    Participant
    Post count: 5

    Tom…you are amazing! It worked, thank you soooo much!

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Minimum Theme Blog Portion Removal’ is closed to new replies.