Removing membership features from the Ghost 4.0 theme Attila

Removing membership features from the Ghost 4.0 theme Attila

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.

  1. Download a release from GitHub
  2. Decompress it to a folder
  3. Navigate to attila/partials
  4. Open navigation-meta.hbs in an editor of your choice
  5. Comment lines 24 - 40 (see the example below)
  6. Compress the whole attila folder back into a .zip
  7. 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>
attila/partials/navigation-meta.hbs
Show Comments