Modern Portfolio [non-HTML5] Remove Filed Under

Community Forums Forums Design Tips and Tricks Modern Portfolio [non-HTML5] Remove Filed Under

This topic is: resolved

This topic contains 10 replies, has 2 voices, and was last updated by  Ozzy 11 months, 2 weeks ago.

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #80219

    AC
    Blocked
    Post count: 7712

    Using the Modern Portfolio (original, non-html5 version) – how can I remove the words “Filed Under:” from showing up on the home page? I need the Category to show up – name only without Filed Under – just on the home page. This function would probably be helpful for all themes.

    • This topic was modified 11 months, 2 weeks ago by  AC.
    • This topic was modified 1 month, 4 weeks ago by  Jen Baumann.
    • This topic was modified 11 months, 2 weeks ago by  AC.
    • This topic was modified 1 month, 4 weeks ago by  Jen Baumann.
    #80236

    Ozzy
    Participant
    Post count: 214

    something like this in the functions file should work:

    add_filter( ‘genesis_post_meta’, ‘anitac_post_meta_filter’ );
    function anitcac_post_meta_filter($post_meta) {
    if ( is_home() ) {
    $post_meta = ‘[post_categories before=""]‘;
    return $post_meta;
    }
    }


    #80238

    AC
    Blocked
    Post count: 7712

    Yikes, it blew the site. I made sure the (‘) were correct. But still got the white screen/black line of code.

    #80239

    AC
    Blocked
    Post count: 7712

    Was missing a (‘) and not working. But thank you for trying Ozzy.

    #80240

    AC
    Blocked
    Post count: 7712

    This is what I have in there now:

    add_filter( 'genesis_post_meta', 'anitac_post_meta_filter' );
    function anitcac_post_meta_filter($post_meta) {
    if ( is_home() ) {
    $post_meta = '[post_categories before=""]';
    return $post_meta;
    }
    }
    #80241

    Ozzy
    Participant
    Post count: 214
    #80243

    AC
    Blocked
    Post count: 7712

    Check out the site here. It leaves the Filed Under on the home page.

    #80245

    AC
    Blocked
    Post count: 7712

    I deactivated Genesis Simple Edits and Genesis Simple Hooks and still nothing. I am baffled.

    #80246

    Ozzy
    Participant
    Post count: 214

    oh, you’re using the featured posts widget. it’s not a function you change, but a setting in the widget.

    under Show Post Info, change what you have to [post_categories before=""]

    that should do the trick.


    #80247

    AC
    Blocked
    Post count: 7712

    Duhhhhhhhhh! Thanks Ozzy. I never tried to edit the short code there. I learn something new every day!!! Appreciate the help.

    #80248

    Ozzy
    Participant
    Post count: 214

    Glad to be of assistance!


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

The topic ‘Modern Portfolio [non-HTML5] Remove Filed Under’ is closed to new replies.