• Scott

    (@scottspinola)


    I’m running a Lovecraft child theme and I want to remove the display of the author name on my blog posts without removing the author from the post editor. I couldn’t find a setting for that anywhere so I guess I need to edit a theme file.

    What file and do I need to edit (after copying to the child theme folder) and what do I need to look for in the file?

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • AddWeb Solution

    (@addweb-solution-pvt-ltd)

    Hello scottspinola,

    => Put below css code into Additional CSS textarea (Dashboard >> Apperance >> Customize) then click on Save & Publish button.
    => If there is no Additional CSS option then put below css code into your current theme’s style.css file located at wp-content/themes/your_current_active_theme/ folder.


    .post-meta p.post-author {
    display:none;
    }

    .post-meta p.post-date:before{
    display:none;
    }

    Note : All Changes you done in style.css or other file are gone when you update theme. So prefer Child Theme

    Hope this will helps you.

    Thread Starter Scott

    (@scottspinola)

    Thanks. So what do I do if I’m already using a child theme? For past modifications I’ve been told to make a copy of the necessary file into the child directory and edit the file.

    shawtux

    (@shawtux)

    in my case it was like this:

    .post .byline {
    display:none;
    }
    
    .post .byline:before{
    display:none;
    }
    Thread Starter Scott

    (@scottspinola)

    Thanks @shawtux! That worked for me.

    Just to be clear, I’m running a child theme. I went to the setting Appearance > Customize > Additional CSS and added the code there. Will that get overridden when I update the theme or WordPress?

    shawtux

    (@shawtux)

    From what I understand that’s the best way and it should not be overridden. I currently don’t use a child theme (but I should for best practices).

    Also where you put the code send good. I did the same.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How do I remove the author from a post?’ is closed to new replies.