# Dawn theme - remove login/subscribe?

**URL:** <https://forum.ghost.org/t/dawn-theme-remove-login-subscribe/24452>\
**Category:** Themes\
**Created:** [July 25, 2021, 5:40pm UTC](https://forum.ghost.org/t/dawn-theme-remove-login-subscribe/24452 "2021-07-25T17:40:43Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vivian\_Lee](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vivian_lee/32/14288_2.png) [@Vivian\_Lee](https://forum.ghost.org/u/Vivian_Lee)\
**Post date:** [July 25, 2021, 5:40pm UTC](https://forum.ghost.org/t/dawn-theme-remove-login-subscribe/24452/1 "2021-07-25T17:40:43Z")

</div>

Please bear with me. I am a complete newbie with Ghost. I haven’t touched custom CSS for a blog since Wordpress in 2010. I feel ancient.

I just set up a blog with the Dawn theme. I am not interested in subscription features. Is there a way to remove the “Log In” and “Subscribe” links on BOTH the home page (the buttons) AND the upper right navigation? Can this be done with a code inject or do I need to edit specific files? Which ones? What should I remove?

EDIT: I should specify that I know how to turn memberships off. I want to know how to remove the links from showing up on my design.

---

<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:** [July 25, 2021, 6:13pm UTC](https://forum.ghost.org/t/dawn-theme-remove-login-subscribe/24452/2 "2021-07-25T18:13:11Z")

</div>

I know the answer to this one! Copy all of this to your code injection and it’ll be more better gooder!

```auto
<style>
.cover-cta, .copyright, .menu-item-cta, .single-footer, .sticky, .header-right, .members-login {
    display: none;
    }

.social {
    display: flex;
    margin-bottom: 0rem;
    }

.logo-text {
    color: var(--brand-color); 
}
    
.cover-icon-image {
    width:40px;
}
</style>
```

---

<div class="post-metadata">

**Author:** ![pratnala](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/pratnala/32/8293_2.png) [@pratnala](https://forum.ghost.org/u/pratnala)\
**Post date:** [July 25, 2021, 6:41pm UTC](https://forum.ghost.org/t/dawn-theme-remove-login-subscribe/24452/3 "2021-07-25T18:41:57Z")

</div>

If you are ok with changing theme files, I would suggest to download the theme and do the following changes

1. `post.hbs` - remove the code between and including `{{#unless @member}}` and `{{/unless}}`.
2. `index.hbs` - same here. remove the `unless @member` block.

This should get rid of all mentions of members and subscribing. Don’t forget to zip and upload.

---

<div class="post-metadata">

**Author:** ![Vivian\_Lee](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vivian_lee/32/14288_2.png) [@Vivian\_Lee](https://forum.ghost.org/u/Vivian_Lee)\
**Post date:** [July 26, 2021, 3:12am UTC](https://forum.ghost.org/t/dawn-theme-remove-login-subscribe/24452/4 "2021-07-26T03:12:40Z")

</div>

This is exactly what I needed. THANK YOU!

---

<div class="post-metadata">

**Author:** ![diliprk](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/diliprk/32/20442_2.png) [@diliprk](https://forum.ghost.org/u/diliprk)\
**Post date:** [December 3, 2022, 3:08pm UTC](https://forum.ghost.org/t/dawn-theme-remove-login-subscribe/24452/5 "2022-12-03T15:08:52Z")

</div>

Hi @pratnala - the new version of `dawn` theme in their Git Repo, does not seem to have this `{{#unless @member}}` code in either the [post.hbs](https://github.com/TryGhost/Dawn/blob/main/post.hbs) or the [index.hbs](https://github.com/TryGhost/Dawn/blob/main/index.hbs) files ?

So Where can I go to edit the code base to remove them? would appreciate if you could kindly shed some light on this issue

Best

---

<div class="post-metadata">

**Author:** ![pratnala](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/pratnala/32/8293_2.png) [@pratnala](https://forum.ghost.org/u/pratnala)\
**Post date:** [October 17, 2023, 1:05am UTC](https://forum.ghost.org/t/dawn-theme-remove-login-subscribe/24452/6 "2023-10-17T01:05:45Z")

</div>

It might be they updated to Ghost v5 and I haven’t explored v5 yet. I previously modified Casper in Ghost v4 and my reply was based on that.

---

<div class="post-metadata">

**Author:** ![kOoLiNuS](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/koolinus/32/27304_2.png) [@kOoLiNuS](https://forum.ghost.org/u/kOoLiNuS)\
**Post date:** [November 13, 2023, 11:33am UTC](https://forum.ghost.org/t/dawn-theme-remove-login-subscribe/24452/7 "2023-11-13T11:33:36Z")

</div>

What about the two “buttons” in the header?

With @[shodandad](https://forum.ghost.org/u/shodandad) tip I’ve successfully removed the two below my avatar…

---

<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:** [November 13, 2023, 5:18pm UTC](https://forum.ghost.org/t/dawn-theme-remove-login-subscribe/24452/8 "2023-11-13T17:18:15Z")

</div>

Code injection

```auto
<style>
a.gh-head-link.gh-portal-close,
a.gh-head-btn.gh-btn.gh-primary-btn.gh-portal-close {
    display: none;
}

</style>

```

---

<div class="post-metadata">

**Author:** ![kOoLiNuS](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/koolinus/32/27304_2.png) [@kOoLiNuS](https://forum.ghost.org/u/kOoLiNuS)\
**Post date:** [November 14, 2023, 10:00am UTC](https://forum.ghost.org/t/dawn-theme-remove-login-subscribe/24452/9 "2023-11-14T10:00:53Z")

</div>

Thanks … now we have to delete also the button on the bottom.

What I find “strange” is that I’ve disabled the subscription feature of my test installation, so I’d expect those button to simlply vanish … but probably I’m too new on this platform!

---

<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:** [November 14, 2023, 5:44pm UTC](https://forum.ghost.org/t/dawn-theme-remove-login-subscribe/24452/10 "2023-11-14T17:44:13Z")

</div>

The button at the bottom is the portal button. You control it with settings \> membership \> portal \> customize.

I’m surprised that the portal button is showing up if membership is off. You may want to confirm that it’s really off!

---

<div class="post-metadata">

**Author:** ![kOoLiNuS](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/koolinus/32/27304_2.png) [@kOoLiNuS](https://forum.ghost.org/u/kOoLiNuS)\
**Post date:** [November 15, 2023, 2:05pm UTC](https://forum.ghost.org/t/dawn-theme-remove-login-subscribe/24452/11 "2023-11-15T14:05:20Z")

</div>

Thank you Cathy!  
I’ve overlooked the Portal settings page … not it’s all ok

💚
