• 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

How to move Entry Meta for archive display

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 › How to move Entry Meta for archive display

This topic is: resolved

Tagged: Agency, meta

  • This topic has 11 replies, 2 voices, and was last updated 9 years, 11 months ago by jeffwaters.
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • December 20, 2015 at 7:36 am #174389
    jeffwaters
    Member

    I'd like to shift the Entry Meta (date+comments) to just above (and to the right of the featured image thumbnail) for just my archive listings. I'd prefer to leave the Page/Post Meta just as they are.

    Is this possible? How would I go about it?

    Example here:
    Meta shift

    http://lifeupfront.com/
    December 20, 2015 at 11:07 am #174399
    Tom
    Participant

    Hi Jeff,

    Add this code (carefully) to functions.php:

    function themeprefix_archive_post_info() {
    if ( !is_archive() )
    
    	return; //bail if not archive
    
    	//* Reposition the entry meta
    	remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
    	add_action( 'genesis_entry_content', 'genesis_post_info', 8 );
    
    }
    add_action('pre_get_posts','themeprefix_archive_post_info');

    Refs:

    Entry Header


    https://codex.wordpress.org/Function_Reference/is_archive


    Choose your next site design from over 350 Genesis themes.
    [ Follow me: Twitter ] [ Follow Themes: Twitter ] [ My Favourite Webhost ]

    December 21, 2015 at 8:30 am #174460
    jeffwaters
    Member

    Thanks, Tom! I have the Genesis Simple Hooks plugin installed. Would it be possible to use that instead of directly modifying the functions.php file?

    December 21, 2015 at 8:58 am #174461
    Tom
    Participant

    No.


    Choose your next site design from over 350 Genesis themes.
    [ Follow me: Twitter ] [ Follow Themes: Twitter ] [ My Favourite Webhost ]

    December 21, 2015 at 9:00 am #174462
    jeffwaters
    Member

    Here you can see the result of this change:

    Metadata relocation

    How would I go about reducing the padding (or line spacing maybe?) after the Date/Comment line just for Archive views? Is that some sort of conditional CSS thing?

    December 21, 2015 at 9:04 am #174465
    Tom
    Participant

    Adjust the value as desired; this is placed in the child theme stylesheet before the media queries.

    .archive .entry-meta {
    	margin-bottom: 5px;
    }

    Choose your next site design from over 350 Genesis themes.
    [ Follow me: Twitter ] [ Follow Themes: Twitter ] [ My Favourite Webhost ]

    December 21, 2015 at 9:33 am #174469
    jeffwaters
    Member

    Very cool, thanks!

    I am using a Child theme-- but, curious if I ever have to worry about losing these CSS customizations if there is an update to the Agency Pro theme?

    Finally, how might I remove the divider line and move the post-info (Filed Under...) up under the excerpt? Again, I'd only do this for the Archive view and leave the Post view as-is.

    Finished archive view

    December 21, 2015 at 9:56 am #174472
    Tom
    Participant

    Remove line: in stylesheet

    .archive .entry-footer .entry-meta {
        border-top: none;	
    }

    Reposition: in functions.php

    function themeprefix_archive_post_meta() {
    if ( !is_archive() )
    
    	return; //bail if not archive
    
    	//* Reposition the entry meta
    	remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
    	add_action( 'genesis_entry_content', 'genesis_post_meta' );
    
    }
    add_action('pre_get_posts','themeprefix_archive_post_meta');

    Choose your next site design from over 350 Genesis themes.
    [ Follow me: Twitter ] [ Follow Themes: Twitter ] [ My Favourite Webhost ]

    December 21, 2015 at 10:18 am #174474
    jeffwaters
    Member

    1) thank you... you are amazing.

    2) I ended up combining these above into a single bit of code:

    //* Move Date metadata to the right of featured image in archive listings and shift the footer meta up
    function themeprefix_archive_post_info() {
    if ( !is_archive() )
    
    	return; //bail if not archive
    
    	//* Reposition the entry meta
    	remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
    	add_action( 'genesis_entry_content', 'genesis_post_info', 8 );
    
    	//* Reposition the footer entry meta
    	remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
    	add_action( 'genesis_entry_content', 'genesis_post_meta' );
    
    }
    add_action('pre_get_posts','themeprefix_archive_post_info');

    3), here's the finished product if anyone else wants to follow these directions:
    finished

    December 21, 2015 at 10:27 am #174477
    jeffwaters
    Member

    One final bit:

    I really like this concise archive view with the info to the right of the 150x150 thumbnail. Looks great in every view except in portrait mode on a smartphone. In that orientation, the text to the right of the image only has room for about 3 words per line and ends up spilling over below the image:

    portrait

    How could I have all post entry, excerpt and footer entry info show up below the thumbnail image in this scenario?

    Ideally, the thumbnail would be resized larger size responsively fill the width... or, if that's not possible, center aligned.

    December 22, 2015 at 11:37 am #174567
    Tom
    Participant
    @media only screen and (max-width: 480px) {
    	
    	.archive .entry-meta {
    		clear: left;
    	}
    	
    	.archive .entry-content img {
    		width: 100%;
    	}
    	
    }

    Choose your next site design from over 350 Genesis themes.
    [ Follow me: Twitter ] [ Follow Themes: Twitter ] [ My Favourite Webhost ]

    December 22, 2015 at 11:54 am #174569
    jeffwaters
    Member

    THANK YOU!

    Wow, that was simple and works great!

  • Author
    Posts
Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘How to move Entry Meta for archive display’ is closed to new 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