• 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

Combining Date, Post Title, and comments link into one line

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 › Combining Date, Post Title, and comments link into one line

This topic is: not resolved

Tagged: Beautiful, post title, post-date

  • This topic has 3 replies, 2 voices, and was last updated 12 years, 5 months ago by [email protected].
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • January 27, 2014 at 7:16 pm #87352
    [email protected]
    Member

    Hi folks,

    In the BEAUTIFUL child theme, I'm struggling with combining the .entry-time .entry-title and .entry-comment-link divs all onto one line, similar to this site (but with comment link floating right). Any help? The "genesis_before_post_title" hook seems like it would work perfectly, but there doesn't seem to be an HTML5 equivalent?

    thank you!

    Matt

    January 27, 2014 at 7:31 pm #87357
    MarketLeaner
    Member

    "genesis_entry_header" replaced "genesis_before_post_title"

    since it also replaced other things, if you have trouble putting it where you need, use priority numbers ie.

    function ( hook location, name of function, 5)

    http://my.studiopress.com/docs/genesis-loop-hooks-comparison/

    January 27, 2014 at 7:41 pm #87360
    [email protected]
    Member

    Ah, OK I've never messed with priority numbers before. How do I tell it to do [post-date] first, then the post title, then the [post_comments]?

    Something like this? Or am I making it way too complicated?

    
    remove_action('genesis_entry_header', 'genesis_do_post_title');
    add_action( 'genesis_entry_header', 'custom_entry_header' );
    function custom_entry_header() {
     
    	if ( ! is_page() ) {
    		echo '<div class="entry-time">';
    		echo do_shortcode( '[post_date' );
    		echo '</div><!-- end .entry-time -->';
                    add_action( 'genesis_entry_header', 'do_genesis_post_title' );
                    echo '<div class="entry-comments-link">';
    		echo do_shortcode( '[post_comments' );
    		echo '</div><!-- end .entry-comments-link -->';
    	}
     
    }
    
    January 29, 2014 at 1:34 pm #87716
    [email protected]
    Member

    OK got this figured out! here's what I did:

    in Functons.php:

    add_action( 'genesis_entry_header', 'custom_entry_header', 5);
    function custom_entry_header() {
     
    	if ( ! is_page() ) {
    		echo '<div class="entry-time">';
    		echo do_shortcode( '[post_date]' );
    		echo '</div><!-- end .entry-time -->';
                 
    	}
     
    }

    then just messing with FLOAT in the stylesheet for .entry-time .entry-comments-link

    thanks for your help MarketLearner!

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

© 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