• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Lifestyle Pro comment links

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Lifestyle Pro comment links

This topic is: not resolved

Tagged: comment links, comments, number of comments

  • This topic has 4 replies, 2 voices, and was last updated 11 years, 6 months ago by tashworth19191.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • May 6, 2014 at 10:50 am #103856
    tashworth19191
    Member

    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
    May 6, 2014 at 11:24 am #103859
    Lauren @ OnceCoupled
    Member

    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


    We create mobile-first, PageSpeed-optimized, pixel-perfect custom themes! https://www.oncecoupled.com

    May 6, 2014 at 11:48 am #103866
    tashworth19191
    Member

    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();
    May 6, 2014 at 11:55 am #103867
    Lauren @ OnceCoupled
    Member

    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


    We create mobile-first, PageSpeed-optimized, pixel-perfect custom themes! https://www.oncecoupled.com

    May 6, 2014 at 12:17 pm #103872
    tashworth19191
    Member

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

    Regards, Tom...

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble