Community Forums › Forums › Archived Forums › Design Tips and Tricks › Lifestyle Pro comment links
Tagged: comment links, comments, number of comments
- This topic has 4 replies, 2 voices, and was last updated 9 years, 10 months ago by tashworth19191.
-
AuthorPosts
-
May 6, 2014 at 10:50 am #103856May 6, 2014 at 11:24 am #103859Lauren @ OnceCoupledMember
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 #103866tashworth19191MemberHi 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 #103867Lauren @ OnceCoupledMemberIt'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 #103872tashworth19191MemberLauren, Thank you so much for being so helpful. Hopefully I can return the favor some day..
Regards, Tom...
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.