Beautiful Pro post list customization

Community Forums Forums Design Tips and Tricks Beautiful Pro post list customization

This topic is: not resolved

This topic contains 4 replies, has 2 voices, and was last updated by  epoc 11 months, 2 weeks ago.

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

    epoc
    Member
    Post count: 7

    Hi guys,
    I’d like to get the same structure of this blog on mine:

    http://pinchofyum.com/

    My blog url is this:

    http://cosefatteincasa.it/

    It’s build on Genesis with the Beautiful Pro theme.

    My goal is to have the first article in evidence, with a big picture, and other posts with thumbnails.

    How can I do it?

    Thanks for help!

    #80744

    genwrock
    Member
    Post count: 937

    Is your home page widgetize? There have some widgets like home top, home bottom at Dashboard -> Appearance ->Widgets Section?


    See My PRO Genesis Child Themes | Need Genesis Developer? | Follow Me on Twitter

    #80745

    epoc
    Member
    Post count: 7

    This is the Beautiful Pro theme widgets structure:

    • This reply was modified 12 months ago by  epoc.
    • This reply was modified 12 months ago by  epoc.
    #80747

    genwrock
    Member
    Post count: 937

    Ok. Add this code in home.php file. Please keep a backup first.

    remove_action( 'genesis_entry_content', 'genesis_do_post_image', 8 );
    remove_action( 'genesis_post_content', 'genesis_do_post_image' );
    
    add_action( 'genesis_entry_content', 'genesis_do_custom_post_image', 8 );
    add_action( 'genesis_post_content', 'genesis_do_custom_post_image' );
    
    function genesis_do_custom_post_image(){
        global $wp_query;
         if ( ! is_singular() && genesis_get_option( 'content_archive_thumbnail' ) ) {
              if($wp_query->current_post <=0){
    		$img = genesis_get_image( array(
    			'format'  => 'html',
    			'size'    => genesis_get_option( 'image_size' ),
    			'context' => 'archive',
    			'attr'    => genesis_parse_attr( 'entry-image' ),
    		) );
               }else{
                   $img = genesis_get_image( array(
    			'format'  => 'html',
    			'size'    => 'thumbnail',
    			'context' => 'archive',
    			'attr'    => genesis_parse_attr( 'entry-image' ),
    		) );
              }
    
    		if ( ! empty( $img ) )
    			printf( '<a href="%s" title="%s">%s</a>', get_permalink(), the_title_attribute( 'echo=0' ), $img );
    	}
    }

    See My PRO Genesis Child Themes | Need Genesis Developer? | Follow Me on Twitter

    #83342

    epoc
    Member
    Post count: 7

    Mmmm.. I don’t have a home.php file.

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

You must be logged in to reply to this topic.