Re-position Post Meta & Info in Featured Amplified plugin

Community Forums Forums Design Tips and Tricks Re-position Post Meta & Info in Featured Amplified plugin

This topic is: not resolved

This topic contains 2 replies, has 2 voices, and was last updated by  Davinder Singh Kainth 6 months ago.

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

    Davinder Singh Kainth
    Participant
    Post count: 1298

    I am using Featured Posts Amplified plugin to show posts in columns format.

    Current order:
    thumbnail image
    post title
    post info
    post excerpts
    post meta

    What I want:
    thumbnail image
    post meta
    post title
    post excerpts
    post info

    Basically, want to move post meta up and show below image. Also, move post info to bottom.

    Check this webpage – http://dev.iguiding.com/dev/?page_id=471


    Need website customization services or other Genesis / WordPress help ?
    Davinder @ Design Studio iGuiding Media | My Blog | Fresh Genesis Themes Collection

    #103335

    McGuive7
    Participant
    Post count: 37

    Hi Davinder,

    If you dig into widget.php within the plugin, you’ll see that all output within the widget is tied to various hooks – so the good news is you can move pretty much anything around in any order you desire.

    For example, right now the following hooks are used to add post info and meta:

    add_action( 'gfwa_before_post_content', 'gfwa_do_byline', 10, 1 );
    add_action( 'gfwa_after_post_content', 'gfwa_do_post_meta', 10, 1 );

    If you want to switch the two, you can just include a variation of the following code in your functions.php or a custom plugin file:

    // Remove the original action hooks 
    remove_action( 'gfwa_before_post_content', 'gfwa_do_byline' );
    remove_action( 'gfwa_after_post_content', 'gfwa_do_post_meta' );
    
    // Add your new hooks
    add_action( 'gfwa_before_post_content', 'gfwa_do_post_meta', 10, 1 );
    add_action( 'gfwa_after_post_content', 'gfwa_do_byline', 10, 1 );
    

    You may need to tweak things depending on exactly where your code lives, but that’s the gist. Let me know if you have any other questions, or if this isn’t working for you.

    • This reply was modified 6 months ago by  McGuive7.
    • This reply was modified 6 months ago by  McGuive7.
    #103339

    Davinder Singh Kainth
    Participant
    Post count: 1298

    Great, code works like charm. Many Thanks McGuive7 !

    Genesis Community Rocks!


    Need website customization services or other Genesis / WordPress help ?
    Davinder @ Design Studio iGuiding Media | My Blog | Fresh Genesis Themes Collection

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

You must be logged in to reply to this topic.