# Hide author name for specific author site wide

**URL:** <https://forum.ghost.org/t/hide-author-name-for-specific-author-site-wide/17269>\
**Category:** Developer help\
**Created:** [September 23, 2020, 10:15pm UTC](https://forum.ghost.org/t/hide-author-name-for-specific-author-site-wide/17269 "2020-09-23T22:15:44Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abvex](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/abvex/32/9245_2.png) [@Abvex](https://forum.ghost.org/u/Abvex)\
**Post date:** [September 23, 2020, 10:15pm UTC](https://forum.ghost.org/t/hide-author-name-for-specific-author-site-wide/17269/1 "2020-09-23T22:15:44Z")

</div>

Hello, I have a blog with multiple authors, the first author account created is sharing the same name as the website brand, it is used to post generic information that the other authors do not want to post.

We want ghost to automatically hide the author name block from any post made by this “brand” account. It is a bit redundant content wise and we like to set-up a hbs template to prevent this. (Using casper).

We want it remove this across the site, on post pages, partials on home and tag pages, etc. Any suggestions on how to do this? I looked through the documentation and I am not sure how to do this type of filter.

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [September 24, 2020, 2:03am UTC](https://forum.ghost.org/t/hide-author-name-for-specific-author-site-wide/17269/2 "2020-09-24T02:03:11Z")

</div>

You can check who the author is with the `{{#has}}` helper :)

> **[Ghost Handlebars Theme Helpers: has](https://ghost.org/docs/themes/helpers/has/)**
>
> \#has allows theme developers to ask questions about the current context and provides more flexibility ⚡️ Read more about custom Ghost themes!

e.g.

```plaintext
{{^has author="John Doe"}}
  {{!-- NOT John Doe--}}
{{/has}}

```

---

<div class="post-metadata">

**Author:** ![Abvex](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/abvex/32/9245_2.png) [@Abvex](https://forum.ghost.org/u/Abvex)\
**Post date:** [September 24, 2020, 6:02am UTC](https://forum.ghost.org/t/hide-author-name-for-specific-author-site-wide/17269/3 "2020-09-24T06:02:49Z")

</div>

@vikaspotluri123

Thank you for pointing that out, I see its quite powerful, I am able to do it via this method, thanks!

---

<div class="post-metadata">

**Author:** ![shodandad](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@shodandad](https://forum.ghost.org/u/shodandad)\
**Post date:** [January 28, 2021, 4:12pm UTC](https://forum.ghost.org/t/hide-author-name-for-specific-author-site-wide/17269/4 "2021-01-28T16:12:20Z")

</div>

I found this post, but need more input…

Can you help point me to where I need to paste this code?

---

<div class="post-metadata">

**Author:** ![iero](https://avatars.discourse-cdn.com/v4/letter/i/41988e/32.png) [@iero](https://forum.ghost.org/u/iero)\
**Post date:** [January 28, 2021, 5:40pm UTC](https://forum.ghost.org/t/hide-author-name-for-specific-author-site-wide/17269/5 "2021-01-28T17:40:49Z")

</div>

If you want to hide the author in the post, just edit the post.hbr in your theme. You will find a part like that:

```
{{#foreach authors}}
    <li class="author-list-item">
    (...)
    </li>
{{/foreach}}

```

You need to add the code like that:

```
{{#foreach authors}}
    {{^has author="John Doe"}}
        <li class="author-list-item">
        (...)
        </li>
    {{/has}}
{{/foreach}}

```

Same thing in index.hbs, post-card.hbs and wherever you want to hide the author.

---

<div class="post-metadata">

**Author:** ![shodandad](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@shodandad](https://forum.ghost.org/u/shodandad)\
**Post date:** [January 28, 2021, 9:47pm UTC](https://forum.ghost.org/t/hide-author-name-for-specific-author-site-wide/17269/6 "2021-01-28T21:47:24Z")

</div>

Sorry… this isn’t working for me.

---

<div class="post-metadata">

**Author:** ![shodandad](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@shodandad](https://forum.ghost.org/u/shodandad)\
**Post date:** [January 28, 2021, 10:33pm UTC](https://forum.ghost.org/t/hide-author-name-for-specific-author-site-wide/17269/7 "2021-01-28T22:33:06Z")

</div>

Someone else figured out how to do this with code injection. This worked for me:

> [@Remove author links](https://forum.ghost.org/t/remove-author-links/14592/11):
>
> Thanks for figuring this out!!!

---

<div class="post-metadata">

**Author:** ![Kenyon](https://avatars.discourse-cdn.com/v4/letter/k/c37758/32.png) [@Kenyon](https://forum.ghost.org/u/Kenyon)\
**Post date:** [August 20, 2024, 7:16am UTC](https://forum.ghost.org/t/hide-author-name-for-specific-author-site-wide/17269/8 "2024-08-20T07:16:59Z")

</div>

I have the same issue. Shodandad’s solution (the code injection) is no longer necessary because it’s just in the Ghost admin, but I don’t want to remove all authors - like the OP, I want to remove one specific author from the Author page (basically a staff account for announcements vs normal authors). I’m using the ^has author code suggested in this thread, with and without an else statement, and it isn’t working. Anyone have any suggestions?

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [August 20, 2024, 12:35pm UTC](https://forum.ghost.org/t/hide-author-name-for-specific-author-site-wide/17269/9 "2024-08-20T12:35:50Z")

</div>

Sounds like you’re using a theme that has a page that lists all authors. That’s a custom page within your theme, and it (or whatever partial it is calling) is what you need to edit. To find it in the theme, look for custom-whatever-the-template-name-is-for-that-page. (It will start with custom!) Then using the ^has helper should let you not show that author. It’s hard to give further advice without being able to see the site, knowing which theme it is, knowing what isn’t working (unwanted author appears vs no authors appear), or having access to the code.

It may be also possible to do this with code injection if you need to, but I’d have to see the site.

---

<div class="post-metadata">

**Author:** ![Kenyon](https://avatars.discourse-cdn.com/v4/letter/k/c37758/32.png) [@Kenyon](https://forum.ghost.org/u/Kenyon)\
**Post date:** [August 20, 2024, 1:08pm UTC](https://forum.ghost.org/t/hide-author-name-for-specific-author-site-wide/17269/10 "2024-08-20T13:08:10Z")

</div>

Hi Cathy! I am indeed using a theme that has a page that lists all authors, and I was indeed editing the custom template! I’m a bit hesitant to post the code publicly because it’s a paid theme. I’ve reached out to you!

---

<div class="post-metadata">

**Author:** ![Kenyon](https://avatars.discourse-cdn.com/v4/letter/k/c37758/32.png) [@Kenyon](https://forum.ghost.org/u/Kenyon)\
**Post date:** [August 21, 2024, 9:02am UTC](https://forum.ghost.org/t/hide-author-name-for-specific-author-site-wide/17269/11 "2024-08-21T09:02:25Z")

</div>

@Cathy_Sarisky did an amazing job helping me! If you’re trying to find the solution too: “has” is for posts. “Match” is for the author page: [Ghost Handlebars Theme Helpers: match](https://ghost.org/docs/themes/helpers/match/)

So just replace ‘has’ with ‘match’!
