• 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

Getting comment bubble to show on pages

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 › Getting comment bubble to show on pages

This topic is: not resolved

Tagged: comment bubble, genesis featured amplified widget

  • This topic has 2 replies, 2 voices, and was last updated 8 years, 2 months ago by nomad_jess.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • January 7, 2015 at 4:46 am #136267
    nomad_jess
    Member

    Hi there,

    I just made some changes to my site so that the number of comments on each post appear in a conversation bubble (using this tutorial: http://slickwp.com/genesis-comment-bubble/).

    That has worked fine, only I would also like to have these comment bubbles appearing on my homepage as well as other pages (currently they are only showing when you click through to a post). I am using the Genesis Featured Amplified Widget on the homepage and trying to work out how to display the number of comments in the bubble, rather than just the regular text as I have at the moment.

    Any assistance would be greatly appreciated.

    Thanks in advance,

    Jess

    http://notesofnomads.com
    January 7, 2015 at 6:40 am #136271
    Brad Dalton
    Participant

    I doubt it will work in the plugins widget however you could use it in the standard loop or a custom loop.

    Should work using the loop without the plugin if you remove the conditional tag and closing curly bracket.


    Tutorials for StudioPress Themes.

    January 7, 2015 at 7:14 am #136275
    nomad_jess
    Member

    Hi Brad,

    Thanks for getting back to me. So no go when using the amplified widget, hey? The only reason I'm using that widget is to have pagination so that readers can move to more recent posts from the homepage. Is there another way to do that without using this widget?

    And if I change back to the standard Genesis Featured Widget to display posts on my home page, will the bubbles display then anyway? I guess I can just go ahead and test that, but can you provide some more guidance about the conditional I should be removing?

    This is what I have in my functions.php file right now:

    add_filter( 'genesis_post_info', 'sp_post_info_filter' );

    function sp_post_info_filter( $post_info ) {
    $num_comments = get_comments_number();
    $comments_link = get_comments_link();
    $bubble = "<span class='bubble'>".$num_comments."</span>";
    $post_info = 'By [post_author_posts_link] on [post_date] '.$bubble.'';

    return $post_info;

    }

    Basically, I would like to style my homepage with comment bubbles to encourage more interaction. If there is another way to achieve this with my most recent posts on the homepage, I'd be happy to consider alternatives if you have any suggestions.

    Many thanks in advance,

    Jess

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 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

© 2023 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