0

On the post archive page here

And individual post pages, like this

I'd like to hide the author, which currently says "by coadmin", but no plug-ins i've tried work, and I can't find any CSS lines referring to the author specifically. I can hide all the info by targeting .post-info {display: none} but I only want the author hidden.

If I target the specific div of the author name I can hide it, like:

#rd_tebhz4xe9fvnw90a41ec > div:nth-child(1) > div > div.post-info > a:nth-child(1) {
display: none;}

But that leaves "by" still there.

Does anyone have any suggestions? The Wordpress theme is called "The Fox".

  • Please show the code for your theme on this page. Can't tell based on this information. – mediaguru Jan 12 '17 at 17:54
  • Thanks for the reply, I'm not positive how to show it to you though? – AndrewCoCo Jan 12 '17 at 18:29
  • Most suitable approach would be to create a child theme and remove the author information for these two pages. – M-R Jan 12 '17 at 20:20
-1

I'd use Firebug in Firefox to see the CSS class used for the author name, then disable display.

So, assuming that the css class was called 'author_name', I would put this in the styles.css of the child theme that I was using, or in the 'extra CSS' area of the theme settings (if available);

.author_name {display:none !important;}

That will hide the author name.

  • Thanks, I've tried that in Google Chrome Inspect (is it the same as firebug?) but the only CSS class I can find is ".post-info", which if I disable, hides all the info, when I only want the author hidden. – AndrewCoCo Jan 12 '17 at 18:42
  • In that case, it appears that your theme does not specify a CSS class for the author (byline). So, assuming you want to keep the theme, you would create a Child Theme (because you don't want to modify theme code) and use a modified version of the theme's page.php file that removes the code for the byline. (as mentioned by "M-R" in a comment on your question. Themes can handle the byline info differently, so your ultimate solution is really theme-dependent. – Rick Hellewell Jan 13 '17 at 2:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.