• 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

Changes to post-info and post-meta in focus theme

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 › Changes to post-info and post-meta in focus theme

This topic is: not resolved

Tagged: .post-info, functions, post meta

  • This topic has 2 replies, 3 voices, and was last updated 10 years, 2 months ago by Nile Flores.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • May 19, 2013 at 12:12 pm #41634
    lbogaerts
    Member

    Hi,

    I'm working on a design for a client of mine, based on the old focus theme, since that came closest to what he wanted for his site. I'm running into a few issues though. The test site I'm working on for this can be located here: http://design.ladywp.com/

    1. The post_info should appear on different places depending whether you see it on the homepage/archive page or on the post. On the homepage it should show below the content excerpt, on the single post it should show below the title and above the post content. I tried doing a conditional statement but taht didn't work. This is the one I tried, but didn't work:

    `
    // Customize the post info function
    if( is_home () ){
    remove_action( 'genesis_before_post_content', 'genesis_post_info' );
    add_filter( 'genesis_post_info', 'post_info_filter' );
    add_action ( 'genesis_after_post_content', 'genesis_post_info' );
    function post_info_filter($post_info) {
    $post_info = 'An article by [post_author_posts_link] [post_comments] [post_edit]';
    return $post_info;
    } } elseif ( is_single () ){
    add_filter( 'genesis_post_info', 'post_info_filter' );
    function post_info_filter($post_info) {
    $post_info = 'An article by [post_author_posts_link] [post_comments] [post_edit]';
    return $post_info;
    }}`

    2. The date should be stripped from the post-info and shown as a little "flag" next to the post as you can see on this site: http://www.tckpublishing.com/ (not restricted to where you see the post)

    3. I moved the post_meta function to above the title, because that's where the category should show up (following the requirements of my client), that worked okay, however, the tags should still show up below the content on the single post and nowhere on the homepage or archive pages. How can I best split this up to make this happen?

    Thanks for any help you can give me.

    Leslie

    http://design.ladywp.com/
    July 24, 2013 at 4:33 pm #52360
    amomandherblog
    Member

    I am trying to do something similar. Did you ever find a solution?

    July 24, 2013 at 8:46 pm #52396
    Nile Flores
    Member

    You will want to use the hook for after post title--> genesis_after_post_title

    Try doing them as separate. One for just is_home and other for is_single


    I help people rock out their sites! – Blondish.net

  • 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