add featured top to eleven40 theme

Community Forums Forums General Discussion add featured top to eleven40 theme

This topic is: resolved

This topic contains 4 replies, has 3 voices, and was last updated by  scottz 2 years, 8 months ago.

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


    I just installed the eleven40 theme and want to add a ‘featured top’ widget like I use in so many of the other G themes I’ve built with. Basically I want to re-create this site, but the eleven40 has an ‘after post’ widget which doesn’t seem to do much. I’d like to use a ‘homepage’ widget to add my slider and other widgets so I can customize my homepage.

    What am I doing wrong here? I’ve tried the register widget area thing, but I’m not that adept at the php stuff.




    Try this:

    Susan @ Graphically Designing I offer theme customizations I tweet!
    I’ve taken up the challenge! – help me answer some of the unanswered posts



    That’s great, worked like a charm. Easy. However, how do I now get rid of the main blog feed that comes after my ‘home-featured’ widget?



    Chris Cree

    If you don’t want the grid loop below the widget area you added to the home page, just delete it from your home.php file. So instead of adding the code from Brian’s post you end up replacing the loop that’s there with Brian’s code.

    If you remove this it should do it:

    add_action( ‘genesis_loop’, ‘eleven40_grid_loop_helper’ );
    /** Add support for Genesis Grid Loop */
    function eleven40_grid_loop_helper() {
    	if ( function_exists( ‘genesis_grid_loop’ ) ) {
    		genesis_grid_loop( array(
    			‘features’ => 1,
    			‘feature_image_size’ => 0,
    			‘feature_image_class’ => ‘alignleft post-image’,
    			‘feature_content_limit’ => 0,
    			‘grid_image_size’		=> ‘grid-thumbnail’,
    			‘grid_image_class’		=> ‘alignnone’,
    			‘grid_content_limit’ => 250,
    			‘more’ => __( ‘[Continue reading]’, ‘genesis’ ),
    			‘posts_per_page’ => 5,
    		) );
    	} else {

    Keep in mind you’ll still want to keep this line of code in your home.php file:

    remove_action( ‘genesis_loop’, ‘genesis_do_loop’ );



    Thanks Chris….editing php always makes me nervous. It worked. I guess I learn a little but each time.

    You guys are great!

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

The topic ‘add featured top to eleven40 theme’ is closed to new replies.