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

13 replies
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:
#edit #post #posted by #remove #wordpress
  • Profile picture of the author bhuthecoder
    which theme you using?
    {{ DiscussionBoard.errors[8882945].message }}
    • Profile picture of the author phoenixflyhigh
      Originally Posted by bhuthecoder View Post

      which theme you using?
      I am using "consult" template and it's not working
      Signature

      Sorcery of stirring the emotions is here

      {{ DiscussionBoard.errors[8883361].message }}
      • Profile picture of the author NRE
        Add this at the end of your your editor:

        Code:
        .meta-author
        {
        display: none;
        }
        
        #author-info
        {
        display: none;
        }
        WordPress 3.6.1.
        {{ DiscussionBoard.errors[8883462].message }}
  • Profile picture of the author sktthemes
    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
    {{ DiscussionBoard.errors[8883310].message }}
  • Profile picture of the author MikeLugar
    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
    {{ DiscussionBoard.errors[8883469].message }}
  • Profile picture of the author Mr Bill
    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(); */ ?>
    {{ DiscussionBoard.errors[8883627].message }}
    • Profile picture of the author phoenixflyhigh
      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.

      Originally Posted by Mr Bill View Post

      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(); */ ?>
      Signature

      Sorcery of stirring the emotions is here

      {{ DiscussionBoard.errors[8883963].message }}
    • Profile picture of the author Karen Blundell
      Originally Posted by Mr Bill View Post

      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(); */ ?>
      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 -
      Signature
      ---------------
      {{ DiscussionBoard.errors[8890426].message }}
  • Profile picture of the author Mr Bill
    Excellent, glad I could help.
    {{ DiscussionBoard.errors[8885430].message }}
  • Profile picture of the author sham2
    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.
    {{ DiscussionBoard.errors[8885770].message }}
    • Profile picture of the author Mr Bill
      Originally Posted by sham2 View Post

      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.
      Lol...did you even read this thread before posting that? Scroll up.
      {{ DiscussionBoard.errors[8885781].message }}
  • Profile picture of the author john5171
    Add in style.css

    .author { display: none; }
    {{ DiscussionBoard.errors[8888439].message }}
  • Profile picture of the author RobinInTexas
    Just create a child theme, and copy the relevant php files to the child theme folder.
    Signature

    Robin



    ...Even if you're on the right track, you'll get run over if you just set there.
    {{ DiscussionBoard.errors[8895669].message }}

Trending Topics