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

Community Forums Forums Design Tips and Tricks Changes to post-info and post-meta in focus theme

This topic is: not resolved

This topic contains 2 replies, has 3 voices, and was last updated by  Nile Flores 1 year, 4 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #41634

    lbogaerts
    Participant
    Post count: 2

    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/
    #52360

    amomandherblog
    Participant
    Post count: 5

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

    #52396

    Nile Flores
    Participant
    Post count: 29

    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

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.