# Subscription Preferences \> Unsubscribe label customization

**URL:** <https://community.hubspot.com/t/subscription-preferences-unsubscribe-label-customization/39600>\
**Category:** CMS Development\
**Created:** [June 25, 2021, 2:49pm UTC](https://community.hubspot.com/t/subscription-preferences-unsubscribe-label-customization/39600 "2021-06-25T14:49:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![miteshpatel](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/miteshpatel/32/27089_2.png) [@miteshpatel](https://community.hubspot.com/u/miteshpatel)\
**Post date:** [June 25, 2021, 2:49pm UTC](https://community.hubspot.com/t/subscription-preferences-unsubscribe-label-customization/39600/1 "2021-06-25T14:49:46Z")

</div>

The client wants to have custom text on the unsubscribe label in the subscription preference page as something below like this,

`<span>Unsubscribe me from all mailing lists.</span><br><span class="class-name"> No more calls, no more texts - we're breaking up.</span>`

It was working with style hack previously. Now it is breaking the button code.

Any help, please…

 ![451487_1_unsubscribe-text-label.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/2/0/204954254b9255e251d08e5f95f706ab27866f16.png)

---

<div class="post-metadata">

**Author:** ![Anton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/anton/32/103167_2.png) [@Anton](https://community.hubspot.com/u/Anton)\
**Post date:** [June 26, 2021, 7:20pm UTC](https://community.hubspot.com/t/subscription-preferences-unsubscribe-label-customization/39600/2 "2021-06-26T19:20:19Z")

</div>

Hi @miteshpatel,

by default it should be possible to paste your code directly into the label field - but since it’s breaking your code. Have you tried/thought about a small [.replaceWith()](https://api.jquery.com/replacewith/) script?

Something like this:

`$( ".subscribe-options label.globalunsub p span" ).replaceWith( "<span>Unsubscribe me from all mailing lists.</span><br><span class="class-name"> No more calls, no more texts - we're breaking up.</span>" );`

best,

Anton

---

<div class="post-metadata">

**Author:** ![miteshpatel](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/miteshpatel/32/27089_2.png) [@miteshpatel](https://community.hubspot.com/u/miteshpatel)\
**Post date:** [June 27, 2021, 4:31pm UTC](https://community.hubspot.com/t/subscription-preferences-unsubscribe-label-customization/39600/3 "2021-06-27T16:31:39Z")

</div>

@Anton Sorry for the confusion, I should have to be more specific.

Actually, the client wants to customize the button text for the unsubscribe-all page which is user-specific when someone clicks on unsubscribe link from the email footer (CAN-SPAM token) which redirects the user to the unsubscribe page ([Screenshot by Lightshot](https://prnt.sc/174fmi6)).

So instead of the “ **Unsubscribe me from all mailing lists** ” button, the customer wants a specific custom button text that I have written in my previous message.

Hope this would clear the matter and I will get the exact solution if you have any knowledge regarding that.

Thanks!

---

<div class="post-metadata">

**Author:** ![alyssamwilie](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/alyssamwilie/32/2072_2.png) [@alyssamwilie](https://community.hubspot.com/u/alyssamwilie)\
**Post date:** [June 28, 2021, 3:03pm UTC](https://community.hubspot.com/t/subscription-preferences-unsubscribe-label-customization/39600/4 "2021-06-28T15:03:37Z")

</div>

You can use text() to change just the text.

```lia-code-sample
<script>
 $( window ).on( "load", function() {
 $('label[for="globalunsub"] span').text("Your custom text here");
 });
</script>

```

If the text is different per user I’d create a contact property to add that text to and then use that property to determine what text to change it to.

```lia-code-sample
<script>
 $( window ).on( "load", function() {
 $('label[for="globalunsub"] span').text("{{ contact.property_name }}");
 });
</script>

```
