• 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

nici-

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
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • January 16, 2018 at 1:51 pm in reply to: Featured Posts Widget: Edit Comment Count #215454
    nici-
    Member

    I resolved it by editing the [post_comment] output format directly in the widget options to [post_comments zero="0" one="1" more="%"] and styling everything via css.

    January 16, 2018 at 12:01 pm in reply to: Editing Featured Posts widget on homepage #215451
    nici-
    Member

    Ok, I found out I can define

    zero="0" one="1" more="%"

    right in the widget settings! Great!

    January 16, 2018 at 11:45 am in reply to: Editing Featured Posts widget on homepage #215450
    nici-
    Member

    Second problem: When editing the output of featured post widget here

    genesis > lib > widgets > featured-post-widget.php

    than these changes will be overwritten by updating genesis, right?

    I'd like to add some more content to the output like star rating etc. I guess there must be a hook to add things _into the content output_ of the widget?

    Best regards
    nici-

    January 16, 2018 at 11:37 am in reply to: Editing Featured Posts widget on homepage #215449
    nici-
    Member

    Hi there,

    I tried editing the post_info part in featured post widget. I want to change the output format of the post_comments to something like:

    [post_comments zero="0" one="1" more="%"]

    Thus I added this format details into the featured post widget on line 54:

    'post_info' => '[post_date] ' . __( 'By', 'genesis' ) . ' [post_author_posts_link] [post_comments zero="0" one="1" more="%"]',

    Only unfortunately the widget still outputs the default format including the word "Comments" etc.

    Any hint on how I can change the output format of post_comment in featured post widget?

    Best regards and thank you,

    nici-

    January 15, 2018 at 5:12 pm in reply to: Featured Posts Widget: Edit Comment Count #215436
    nici-
    Member

    Sorry, I forgot the code.

    I modified the featured image in blog page and single post this way:

    // Display featured image on top of single post and add comment count

    add_action( 'genesis_before_entry', 'featured_post_image', 8 );
    function featured_post_image() {
    // if ( !is_singular( 'post' ) ) return;
    print "<div class=\"featured-image\">";
    the_post_thumbnail('post-image');
    print "<div class=\"comment-icon\"><span class=\"dashicons dashicons-format-chat\"></span> ";
    print comments_number( '0', '1', '%');
    print "</div></div>";
    }

    [yes I might clean this up a bit, I am it's still testing around]

    And now I'd like to have the [blog_info] output in featured post widget on the start page similar with only the comment numbers as above (and icon, but I can add this via CSS so nevermind).

    January 15, 2018 at 3:00 pm in reply to: Exclude Blog Page when Adding an Action / Remove Action from Blog Page (NewsPro) #215430
    nici-
    Member

    Great, thanks a lot!

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

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