Wordpress Post Edit - How to remove "posted by"?

by 13 replies
17
I am trying to remove "posted by" from posts on my website (wordpres). I tried adding
Code:
.entry-author-link { display: none; }
.entry-permalink { display: none; }
.entry-date { display: none; }
to CSS but it's not working. Any ideas?:confused:
#programming #edit #post #posted by #remove #wordpress
  • which theme you using?
    • [1] reply
    • I am using "consult" template and it's not working
      • [1] reply
  • Try adding !important to the css you have added. Or else search for the code posted by within the theme and comment it out or remove it completely
    • [ 1 ] Thanks
  • It depends what class/ids the theme dev used in CSS to show the author details. Use the Element Inspector in Firefox/Chrome to see what CSS elements you need to hide
  • I usually just comment it out of the post page itself.

    Appearance --> Editor

    Find the page that controls what a post looks like, look for a page like single.php (depends on your theme) and look for the section that carries that code. It'll be something like...

    Code:
    Posted by <?php the_author(); ?>
    ...and either remove it or comment it out (I think) like this...

    Code:
     Posted by  <?  php the_author();  ?>
    • [ 1 ] Thanks
    • [2] replies
    • Thank you Bill. It worked. Many thanks
      It has been troubling me for quite some time but I was able to fix it by your help.

      • [ 1 ] Thanks
    • yup, that's how I would do it too

      the only problem with the above is if your theme gets updated - you would lose the customization - but it was never a big deal for me -
      • [ 1 ] Thanks
  • Excellent, glad I could help.
    • [ 1 ] Thanks
  • I think you need to do some php code in your single page. Open your page and comments or remove this line <?php the_author(); ?> , where is the_author() function is used remove or comments it. It will be work.
    • [ 1 ] Thanks
    • [1] reply
    • Lol...did you even read this thread before posting that? Scroll up.
  • Add in style.css

    .author { display: none; }
  • Just create a child theme, and copy the relevant php files to the child theme folder.

Next Topics on Trending Feed