If you've recently upgraded from Ghost 3.x to 4.x you may find yourself with an unwanted Subscribe/ Signup button smack dab in the header of your favorite theme. Thankfully the structure of Ghost themes is fairly uniform. Let's go through removing these buttons from the popular blogging theme Attila written by @zutrinken.
- Download a release from GitHub
- Decompress it to a folder
- Navigate to
attila/partials
- Open
navigation-meta.hbs
in an editor of your choice - Comment lines
24
-40
(see the example below) - Compress the whole
attila
folder back into a.zip
- Upload it as a replacement for your existing theme at
https://<your-blog>/ghost/#/settings/theme
<ul class="nav-meta">
{{#if @site.twitter}}
<li class="nav-twitter">
<a aria-label="Twitter" href="{{twitter_url}}" title="{{@site.twitter}}" target="_blank">
<i class="icon icon-twitter" aria-hidden="true"></i>
<span>{{@site.twitter}}</span>
</a>
</li>
{{/if}}
{{#if @site.facebook}}
<li class="nav-facebook">
<a aria-label="Facebook" href="{{facebook_url}}" title="{{@site.facebook}}" target="_blank">
<i class="icon icon-facebook" aria-hidden="true"></i>
<span>{{@site.facebook}}</span>
</a>
</li>
{{/if}}
<li class="nav-search" style="display: none;">
<a title="{{t "Search"}}">
<i class="icon icon-search" aria-hidden="true"></i>
<span>{{t "Search"}}</span>
</a>
</li>
{{!-- {{#unless @member}}
<li class="nav-login">
<button class="members-login" data-portal="signin">{{t "Sign in"}}</button>
</li>
<li class="nav-subscribe">
<button class="members-subscribe cta" data-portal="signup">{{t "Sign up"}}</button>
</li>
{{else}}
<li class="nav-account">
<button class="members-account" data-portal="account">{{t "Account"}}</button>
</li>
{{#unless @member.paid}}
<li class="nav-upgrade">
<button class="members-upgrade cta" data-portal="account/plans">{{t "Upgrade"}}</button>
</li>
{{/unless}}
{{/unless}} --}}
</ul>