Colors issues with {signInLink} Buttons and default Header Logo
Hello Community,
I am reaching out regarding two issues with my booking confirmation email for a hotel, created through Beefree and integrated into Mews.
Button Display:
When I insert a button with the {signInLink} placeholder, the button appears in blue by default on Mews, despite the background colour I set in Beefree.
I would like to know how to force the button’s colour in the HTML code so that it displays correctly.
Header Logo:
A default logo appears in the header on all emails in Mews. I am unable to remove it to personalise or replace it.
Thank you in advance for your assistance with these points.
Best regards,
Océane
Page 1 / 1
Hi @Oceberlin Had a closer look at this for you. When using the SignInLink option, it will generate a blue button. To customise the button, such as colour, use the SignInUrl placeholder. Same would apply for the following: ManageReservationLink > ManageReservationURL instead ChatLink ? ChatURL instead
With regard to the logo, it’s not possible to remove the top Mews logo, but you can edit the second logo, which it looks like you have done. There is further guidance here
I hope that helps. Let me know if you still have issues editing.
Thanks Sarah
Hi Sarah
you wrote
“to customise the button, such as colour, use the SignInUrl placeholder.” But how to change the colour settings for the place holder ?
Could you provide an example of how to do ?
Hello!
Try putting the following css tag in your <style></style> clause within your email template:
You cannot remove it, it’s the logo you upload in your property settings…
It’s just so small, that it looks weird IMHO… I increased the size a little bit so that on can actually see the Logo details. That can be done by adding the following CSS (within a <style></style> tag of course):
@Sarah.Masterton-Brown Let me add on more thing to the discussion (template styling is problematic at least, see all the other discussions about it): If we change the template from the default, only the languages with customized templates are used, right? So if we have, let’s say German and American English templates, than only German (if applicable) or English (in all other cases) is used to construct emails, right). However, for the transactional emails in relation to the payment, it’s quite nice to have the default translations in all the different languages. So, by customizing these transactional email templates the default translations are lost (except when the customization is applied in all the different languages - but thats a tedious task)… So it would be great to have a customization method to only change style (css wise) in general, without affecting the actual content.
In summary, if you ever redesign the templating system, try to make it possible to separate content from styling. At best it would be great to have a thre tiered cascading templating system:
General CSS Styling (a separate field valid for all email templates to quickly and consistently change styling)
Generall company information content (like Logo, legal footer), to facilitate fast and consistently key corporate ID and legal requirement parts - one field for all templates
actual content - this is of course individual to each template - it resembles the content that we currently have minus the header and footer parts
- I am no expert here - but I have managed to figure out how to change the background colour for the GhostButtons… but how do you change the font color & the frame color ?
Thosewhowanttochangethecolorofthebuttons,please see below:-
This is for the “Confirmation template”
<h2 style='text-align:center'>Your reservation is confirmed!</h2><p>Thanks for booking your stay at {enterpriseName}. We hope you're just as excited as we are.</p><p>Start getting ready now. Don't put away your travel documents just yet! When you stay with us, we need a little bit of info from you (sorry — it's the law).</p><p style='text-align:center;font-weight:bold'>Add your info now, so you won't have to when you arrive.
You can use this combination to update all buttons to look the same: <style>a {color: #FFFFFF !important;}.raisedButton.button {background-color: #000080 !important;}.ghostButton.button {background-color: #000080 !important;border-color: #FFFFFF !important;}</style>
Please be aware you do depend on the browser the recipient uses how the buttons are displayed as the CSS is not always supported. It might be different from what you see in Mews.
To ensure the correct display, I recommend to use the place holders and create your own button using HTML or CSS. Or upload an image of a button and link the URL.
Example: Use {signInURL} instead of {signInLink}.
In the style, create your button:
.custom-button { background-color: rgb(0, 60, 127); color: white; padding: 8px 16px; /* Adjust padding to match the page buttons */ border: none; border-radius: 5px; cursor: pointer; font-size: 16px; font-weight: bold; width: 250px; /* Set the width as per the button on the page */ height: 50px; /* Set the height as per the button on the page */ }
In the body, call the button class and attach the placeholder: <div style="text-align: center;"> <a href="{signInUrl}" class="custom-button"> Click Me </a> </div>
Of course the button must be placed in the center and align with your requirements in size, font and color.
somewhere in the head of your template … replace with the colors you like...
It just boils down to finding the right css selector :-)… Analyse the template preview with your browser development tools (right click → Inspect), findout how you can uniquely or generally target the entity you wish to change, then you can also change the properties on the fly to figure out how you would like it to look. Finally pack your css in a style tag at the top of your template…
Happy tag hunting … :-)
Kind regards,,
JP.
Thanks Bram… very insightful…..
Reply
Join the Mews Community!
Welcome Mews customers. Please use the same email address for registration as in your Mews account. By doing so we can help you faster if we might need to check something in your account.