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.
I know the answer to this one! Copy all of this to your code injection and it’ll be more better gooder!
<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>
3 Likes
If you are ok with changing theme files, I would suggest to download the theme and do the following changes
-
post.hbs
- remove the code between and including {{#unless @member}}
and {{/unless}}
.
-
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.
2 Likes
This is exactly what I needed. THANK YOU!
1 Like
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 or the 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
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.
What about the two “buttons” in the header?
With @shodandad tip I’ve successfully removed the two below my avatar…
Code injection
<style>
a.gh-head-link.gh-portal-close,
a.gh-head-btn.gh-btn.gh-primary-btn.gh-portal-close {
display: none;
}
</style>
1 Like
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!
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!
Thank you Cathy!
I’ve overlooked the Portal settings page … not it’s all ok

1 Like