Lifestyle Pro comment links

Community Forums Forums Design Tips and Tricks Lifestyle Pro comment links

This topic is: not resolved

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

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

    tashworth19191
    Participant
    Post count: 16

    I have a client that wants his whole recent blog post (5) to display on the front page (see link). I modified the Lifestyle Pro theme to do this fine.

    Now he wants the a link to comments on the bottom of each post (and show the current number of comments) after each post on his front page. I read through the Genesis hooks and could not figure out how to do this.

    Any help greatly appreciated.

    Regards, Tom Ashworth

    http://boiseblog.com
    #103859

    Lauren @ OnceCoupled
    Member
    Post count: 643

    Use the entry meta in the footer to do this. http://my.studiopress.com/snippets/entry-footer/#customize

    The shortcode you want is the same that’s being hidden from your entry meta in the header: [post_comments]. You can customize what this outputs, too: http://my.studiopress.com/docs/shortcode-reference/

    Best,
    Lauren


    I do custom WordPress work! http://oncecoupled.com
    Contact me directly: lauren@oncecoupled.com

    #103866

    tashworth19191
    Participant
    Post count: 16

    Hi Lauren, I put it in functions.php on lifestyle pro them that did not work so I put in on the front-page template. Here is what is on the front page template right now. Still cannot figure out how to get it to display.

    function lifestyle_home_genesis_meta() {
    	if ( is_active_sidebar( 'home-top' ) || is_active_sidebar( 'home-middle' ) || is_active_sidebar( 'home-bottom-left' ) || is_active_sidebar( 'home-bottom-right' ) ) {
    		// Force content-sidebar layout setting
    		add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_content_sidebar' );
    		// Add lifestyle-pro-home body class
    		add_filter( 'body_class', 'lifestyle_body_class' );
    		// Remove the default Genesis loop
    		remove_action( 'genesis_loop', 'genesis_do_loop' );
    		add_filter( 'genesis_post_meta', 'sp_post_meta_filter' );
    		// Add homepage widgets
    		add_action( 'genesis_loop', 'lifestyle_homepage_widgets' );
    	}
    }
    
    function sp_post_meta_filter($post_meta) {
    	$post_meta = '[post_categories] [post_tags]';
    	return $post_meta;
    }
    
    function lifestyle_body_class( $classes ) {
    	$classes[] = 'lifestyle-pro-home';
    	return $classes;
    }
    
    function lifestyle_homepage_widgets() {
    	genesis_widget_area( 'home-top', array(
    		'before' => '<div class="home-top widget-area">',
    		'after'  => '</div>',
    	) );
    	genesis_widget_area( 'home-middle', array(
    		'before' => '<div class="home-middle widget-area">',
    		'after'  => '</div>',
    	) );
    	if ( is_active_sidebar( 'home-bottom-left' ) || is_active_sidebar( 'home-bottom-right' ) ) {
    		echo '<div class="home-bottom">';
    		genesis_widget_area( 'home-bottom-left', array(
    			'before' => '<div class="home-bottom-left widget-area">',
    			'after'  => '</div>',
    		) );
    		genesis_widget_area( 'home-bottom-right', array(
    			'before' => '<div class="home-bottom-right widget-area">',
    			'after'  => '</div>',
    		) );
    		echo '</div>';
    	}
    }
    
    genesis();
    #103867

    Lauren @ OnceCoupled
    Member
    Post count: 643

    It’s there, but your CSS is hiding it.

    .entry-meta {
         visibility: hidden !important;
    }

    You’ll need to make some other adjustments to style it, too.

    Best,
    Lauren


    I do custom WordPress work! http://oncecoupled.com
    Contact me directly: lauren@oncecoupled.com

    #103872

    tashworth19191
    Participant
    Post count: 16

    Lauren, Thank you so much for being so helpful. Hopefully I can return the favor some day..

    Regards, Tom…

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

You must be logged in to reply to this topic.