How to change unsubscribe text, colour and content

Your software
Mautic version 6.0.5
PHP Version 8.3.24
Database Version MariaDB 10.6.23

Your problem
My problem is: I want to change the colour of the link to the unsubscribe page and preference centres, as the default link blue clashes with our colour scheme. Same with the “View this email in your browser” link at the top of the email. I’m not sure where the source of this text lives, so I’m unable to change what it says as well as well as the formatting. Can anyone help?

grafik

(Basically I’m trying to turn the blue to white)

Hello @cmalla,

Changing the text and changing the color are two different things:

Change the unsubscribe text

  1. Go to your Mautic instance and, on the top-right, click on the cogwheel.

  2. From the dropdown, select Configurations.

  3. In the left sidebar, click on Email Settings.

  4. Scroll down to the section Unsubscribe Settings. There you will find the field Text for the {unsubscribe_text} token.

  5. Edit the unsubscribe text as you wish.

    • :warning: Make sure to keep the <a href="|URL|"> part. If you delete it, the unsubscribe link will no longer work.
  6. Once done, go to the top of the page and click Save.

Note: If you also want to change the webview token, you can find it under Message Settings on the same page.


Change the text color / personalize

This part is a bit trickier because there are several ways to do it.

  • If you are using a third-party email theme (like the ones I freely distribute), the CSS included in the theme already handles the link colors so they match the theme’s palette.

  • If you are not using a theme, you can still change the color, either with custom CSS or manually. Below I’ll explain a simple manual method that does not require CSS knowledge:

  1. Go to your Mautic instance and, from the right menu, click on Channels > Emails.

  2. Create a new email or edit an existing one.

  3. Click on Builder to open the drag-and-drop email editor (GrapeJS).

  4. Scroll down to the bottom of your email (where the unsubscribe link usually is).

  5. Add a Text block and write your sentence for the unsubscribe message.

  6. Select the text where you want the link and insert {unsubscribe_url} as the link.

    • This token will generate the unsubscribe URL in the same way as defined in the configurations.
  7. Now you can set the link color directly in the builder according to your preferences.
    :warning: There is a small bug: you need to select the text and click on underline twice for the underline to appear with the desired color.

  8. Save and close the builder, then save your email.

  9. Preview your email to check if it is OK!

Hope I helped you out.

Best regards,

Ricardo

Hi Ricardo

Brilliant, thanks so much for your help! The colour is not where I thought it would be, hence the confusion

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.