Remove author name from post metadata in index view

  • Unknown's avatar

    I wonder if there is a wordpress or CSS guru who could help me figure out if it’s possible to make a change to one of my WordPress sites?

    We have a humble literary journal where people send us stories and we post the ones we like or think deserve a wider distribution. These are stories written by people who are not me, but the WordPress theme we use adds my name to the post metadata. I want to suppress my name (so that the only “by” attribution is to the legitimate author), but I am not having much success getting this done.

    Someone helped us customise the CSS a few years ago, so we already have the ability to customize the CSS for the theme. It’s hosted on the WordPress site. I’m so terrible at CSS/WordPress, I can’t figure it out, so I’m asking for help again.

    So if you look at the top post right now in the main page index (or any index view), this is sorta what the meta would look like:

    Take Heart
    
    Posted in Junk 15: Winter 2015, Mari Casey with tags addiction, be brave sweet
    normie be brave, Mari Casey, on normal men and addict fear, relationships and
    love on February 14, 2015 by Tim Elhajj
    
    by Mari Casey

    by Tim Elhajj <– This is the part that I want to go away!

    Seems like it ought to be easy fix, but “seems like” and “actually fixed” are such different beasts!

    The blog I need help with is: (visible only to logged in users)

  • I am by no means a guru but let’s try this CSS:

    .type-post .entry p:first-of-type {
        display: none;
    }
  • Unknown's avatar

    A friend of mine suggested this code which does pretty much what I want it to do:

    #content div.type-post.post.format-standard small {
    visibility: hidden;
    font-size: 0;
    }

    #content div.type-post.post.format-standard small a {
    visibility: visible;
    line-height: 1.5em;
    font-size: 11px;
    padding-right: 10px;
    }

  • Unknown's avatar

    Thank you chaitanyamsv! I appreciate your effort on my behalf.

  • Sorry. I got your requirement totally wrong. I have mistakenly assumed that you wanted to hide “by Mari Casey” part.

    I can see what is your friend’s CSS doing and yes, that is the one you need :-)

  • The topic ‘Remove author name from post metadata in index view’ is closed to new replies.