• Resolved nickja

    (@nickja)


    Hi everyone,
    I know that it’s possible to remove the text under a post title that reads “posted by on September 6th, 2017” by editing additional CSS with:

    .posted-info {
        display: none;
    }

    But I just want to remove the “Posted by” and keep the date. I have been unable to find any information on this issue. I am currently using the Dyad theme and using the Show Hide Author plugin to hide my Author name. Any help or information would be greatly appreciated.

    Thanks!

    • This topic was modified 7 years, 2 months ago by nickja.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi there,

    Please try adding the CSS below to the customizer in Appearance > Customize > Additional CSS:

    .is-singular .posted-info {
        font-size: 0;
    }
    
    .is-singular .posted-on {
        font-size: 1.5rem;
    }

    If the CSS doesn’t have the desired effect, please let me know ??

    Thread Starter nickja

    (@nickja)

    Awesome!
    That did it, thanks so much. For future reference, how would I go about finding out the different type of CSS variables that exist? I knew about “.posted-info” but had no clue about “posted-on” where did you find this?

    You’re welcome ??

    I use Chrome DevTools to inspect HTML and CSS.

    WP.com has a helpful guide with video tutorials at:

    https://en.support.wordpress.com/custom-design/how-to-find-your-themes-css/

    Most of the practical info in that guide applies to self-hosted sites, not just sites hosted at WordPress.com.

    I hope that helps ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Need help removing “Posted by” but keeping date’ is closed to new replies.