# Members only dowload link

**URL:** <https://forum.ghost.org/t/members-only-dowload-link/18318>\
**Category:** Developer help\
**Created:** [November 17, 2020, 11:37am UTC](https://forum.ghost.org/t/members-only-dowload-link/18318 "2020-11-17T11:37:48Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gaurav\_Gupta](https://avatars.discourse-cdn.com/v4/letter/g/e274bd/32.png) [@Gaurav\_Gupta](https://forum.ghost.org/u/Gaurav_Gupta)\
**Post date:** [November 17, 2020, 11:37am UTC](https://forum.ghost.org/t/members-only-dowload-link/18318/1 "2020-11-17T11:37:48Z")

</div>

Hi

Is there a way to show a download link on a post only to paid members.

I am being forced to lock entire articles where I actually just want to lock the download link.

thanks

This is the code I am using for a download button link. How can I make it visible to members only?

 ![code](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/7/755dbe77729d987a02f39e0a244749bdc10305e7.jpeg)

---

<div class="post-metadata">

**Author:** ![egg](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/egg/32/1691_2.png) [@egg](https://forum.ghost.org/u/egg)\
**Post date:** [November 17, 2020, 12:05pm UTC](https://forum.ghost.org/t/members-only-dowload-link/18318/2 "2020-11-17T12:05:46Z")

</div>

You could wrap it in an `if` handlebars helper, e.g.

```auto
{{#if @member}}
  ... download button ...
{{/if}}

```

Docs for the member properties are here [Setting up memberships & subscriptions](https://ghost.org/docs/members/member-data/#member-attributes)

---

<div class="post-metadata">

**Author:** ![Gaurav\_Gupta](https://avatars.discourse-cdn.com/v4/letter/g/e274bd/32.png) [@Gaurav\_Gupta](https://forum.ghost.org/u/Gaurav_Gupta)\
**Post date:** [November 17, 2020, 12:15pm UTC](https://forum.ghost.org/t/members-only-dowload-link/18318/3 "2020-11-17T12:15:30Z")

</div>

[quote=“fabien, post:2, topic:18318”]

```auto
{{/if}}

```

 ![image](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/f/f841825e415b271589d216e65f8b0e8d6586c65a.jpeg)

I tried the above, it is not working.

---

<div class="post-metadata">

**Author:** ![egg](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/egg/32/1691_2.png) [@egg](https://forum.ghost.org/u/egg)\
**Post date:** [November 17, 2020, 4:35pm UTC](https://forum.ghost.org/t/members-only-dowload-link/18318/4 "2020-11-17T16:35:42Z")

</div>

What is not working? What do you see, and what do you expect to see?

Where are you including this code? It looks like a screenshot of a notes application 🤔

Is this in your theme?

---

<div class="post-metadata">

**Author:** ![Gaurav\_Gupta](https://avatars.discourse-cdn.com/v4/letter/g/e274bd/32.png) [@Gaurav\_Gupta](https://forum.ghost.org/u/Gaurav_Gupta)\
**Post date:** [November 17, 2020, 6:50pm UTC](https://forum.ghost.org/t/members-only-dowload-link/18318/5 "2020-11-17T18:50:08Z")

</div>

I am adding this code to a html card on a post.

I want only members.paid to be able to see a download link I post. That way I will not have to lock the whole post.

"

 a.custom-button { background-color: #fff; border: 1px solid #6AB3C5; border-image: none 100% 1 0 stretch; border-radius: 5px; box-sizing: border-box; color: #6AB3C5; cursor: pointer; display: block; fill: #6AB3C5; font-size: 12px; font-weight: 800; height: 44px; letter-spacing: 2px; line-height: 44px; margin-bottom: 20px; overflow: hidden; padding: 0 10px; text-align: center; box-shadow: none; text-decoration: none; text-transform: uppercase; } {{if @member.paid}} Click to Download Powerpoint Version {{/if}} "

---

<div class="post-metadata">

**Author:** ![giacomosilli](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/giacomosilli/32/3403_2.png) [@giacomosilli](https://forum.ghost.org/u/giacomosilli)\
**Post date:** [November 17, 2020, 6:55pm UTC](https://forum.ghost.org/t/members-only-dowload-link/18318/6 "2020-11-17T18:55:50Z")

</div>

one of the problems is that you missed the **#** before the **if** statement

fabien code:

```
{{#if @member}}
  ... download button ...
{{/if}}

```

your code:

```
{{if @member}}
  ... download button ...
{{/if}}

```

try it:

```
{{#if @member.paid}}
 your code
{{/if}}
```

---

<div class="post-metadata">

**Author:** ![Gaurav\_Gupta](https://avatars.discourse-cdn.com/v4/letter/g/e274bd/32.png) [@Gaurav\_Gupta](https://forum.ghost.org/u/Gaurav_Gupta)\
**Post date:** [November 17, 2020, 7:02pm UTC](https://forum.ghost.org/t/members-only-dowload-link/18318/7 "2020-11-17T19:02:19Z")

</div>

> [@giacomosilli](#):
>
> `{{#if @member.paid}}`

Thanks. This will be between the body and /body tags right?

---

<div class="post-metadata">

**Author:** ![Gaurav\_Gupta](https://avatars.discourse-cdn.com/v4/letter/g/e274bd/32.png) [@Gaurav\_Gupta](https://forum.ghost.org/u/Gaurav_Gupta)\
**Post date:** [November 17, 2020, 7:07pm UTC](https://forum.ghost.org/t/members-only-dowload-link/18318/8 "2020-11-17T19:07:14Z")

</div>

> [@giacomosilli](#):
>
> `{{/if}}`

 ![image](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/f/fd213875833823d1441cf9aca33beb515c659c8d.png)

---

<div class="post-metadata">

**Author:** ![Gaurav\_Gupta](https://avatars.discourse-cdn.com/v4/letter/g/e274bd/32.png) [@Gaurav\_Gupta](https://forum.ghost.org/u/Gaurav_Gupta)\
**Post date:** [November 19, 2020, 6:54am UTC](https://forum.ghost.org/t/members-only-dowload-link/18318/9 "2020-11-19T06:54:51Z")

</div>

> [@giacomosilli](#):
>
> ```auto
> {{#if @member.paid}}
> your code
> {{/if}}
> 
> ```

This is what I see when I publish your code

![image](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/7/78f879814fbc658c5cf0e271588d2bb6cd0970e3.png)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/9/971541e00c6225dc3b1232d71b4c3414d8e8eedd.png)

---

<div class="post-metadata">

**Author:** ![giacomosilli](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/giacomosilli/32/3403_2.png) [@giacomosilli](https://forum.ghost.org/u/giacomosilli)\
**Post date:** [November 19, 2020, 2:15pm UTC](https://forum.ghost.org/t/members-only-dowload-link/18318/10 "2020-11-19T14:15:20Z")

</div>

you can’t use this code here, you need to create a custom template page
