Possible to remove "filed under, etc… from small view?

Community Forums Forums Design Tips and Tricks Possible to remove "filed under, etc… from small view?

This topic is: not resolved

This topic contains 2 replies, has 2 voices, and was last updated by  gmb 1 year, 7 months ago.

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

    gmb
    Participant
    Post count: 40

    I would like to remove Filed Under, The Date, My Name, and Leave A Comment from the small post view in the grid lay out BUT keep all that info in place when the post has been clicked on and the actual post is being viewed.

     

    I used this code and placed it in the PHP function folder:

     

    /** Remove Post Info and Meta */
    remove_action(‘genesis_before_post_content’,’genesis_post_info’);
    /** or */
    remove_action(‘genesis_after_post_content’,’genesis_post_meta’);

     

    It worked but the problem is that it also removed all that info from the main post as well.

     

    Any Ideas?

    #41645

    AC
    Blocked
    Post count: 7712

    What do you mean by “small post view”? Do you mean on mobile devices – on smaller screens?

    #41944

    gmb
    Participant
    Post count: 40

    I meant my posts that are scrolled thru in grid view like this:

    http://www.gregorybeylerian.com/all-works/

    I was able to remove all the extra info with this code:

    // remove post meta post info – basicWP.com

    remove_action(‘genesis_after_post_content’, ‘genesis_post_meta’);

    remove_action(‘genesis_before_post_content’, ‘genesis_post_info’);

    add_action(‘template_redirect’, ‘child_conditional_actions’);
    function child_conditional_actions() {
    if( is_single() ) {
    add_action(‘genesis_after_post_content’, ‘genesis_post_meta’);
    add_action(‘genesis_after_post_content’, ‘genesis_post_info’);
    }}

    • This reply was modified 1 year, 7 months ago by  gmb.
    • This reply was modified 1 year, 7 months ago by  gmb.
Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.