Hello, I want to center the button “visit the store” in the welcome email. As suggested in another post, I tried to modify the tag in the following way:
<td class="actions__cell" style="display: inline-table;">
but it works only in mobile view, I don’t know why. I also tried:
<td class="actions__cell" style="display: inline-table !important;">
but again it works it works only in mobile view.
Can you help me?
1 Like
Hi @FrancescoMi89 ,
This is Richard from PageFly - Landing page builder, I’d like to suggest this idea:
You can try below code:
I hope it would help you
Best regards,
Richard | PageFly
Hello, it doesn’t work, sorry
Hi @FrancescoMi89
Sorry, can you share all the HTML and CSS structure of this email template so I can check it out? Because in general it’s hard to come up with the best solution for you
{% capture email_title %}Ciao {{ customer.first_name }}, benvenuto su {{ shop.name }}!{% endcapture %}
{% capture email_body %}Grazie per la tua iscrizione. Per i tuoi prossimi acquisti, ora potrai accedere direttamente al tuo account per un check-out più veloce.{% endcapture %}
<table>
<table>
<table>
<table>
<tr>
<td>
{%- if shop.email_logo_url %}
{%- else %}
#
{{ shop.name }}
{%- endif %}
</td>
</tr>
</table>
</table>
</table>
<table>
<table>
## {{ email_title }}
{{ email_body }}
Per darti il benvenuto, ti abbiamo riservato una sopresa speciale
SCONTO 10% SU TUTTO IL CATALOGO
CODICE PROMO
SPECIALE10
{% if shop.url %}
<table>
<table>
<tr>
<td>
Visita il nostro negozio
</td>
</tr>
</table>
</table>
{% endif %}
</table>
</table>
<table>
<table>
<tr>
<td>
Se hai domande, rispondi a questa email o contattaci all’indirizzo [{{ shop.email }}](mailto:{{ shop.email }})
</td>
</tr>
</table>
</table>
</table>
Hi @FrancescoMi89 ,
You can try below code:
{% capture email_title %}Ciao {{ customer.first_name }}, benvenuto su {{ shop.name }}!{% endcapture %}
{% capture email_body %}Grazie per la tua iscrizione. Per i tuoi prossimi acquisti, ora potrai accedere direttamente al tuo account per un check-out più veloce.{% endcapture %}
<table>
<table>
<table>
<table>
<tr>
<td>
{%- if shop.email_logo_url %}
{%- else %}
#
{{ shop.name }}
{%- endif %}
</td>
</tr>
</table>
</table>
</table>
<table>
<table>
## {{ email_title }}
{{ email_body }}
Per darti il benvenuto, ti abbiamo riservato una sopresa speciale
SCONTO 10% SU TUTTO IL CATALOGO
CODICE PROMO
SPECIALE10
{% if shop.url %}
<table>
<table>
<tr>
<td>
Visita il nostro negozio
</td>
</tr>
</table>
</table>
{% endif %}
</table>
</table>
<table>
<table>
<tr>
<td>
Se hai domande, rispondi a questa email o contattaci all’indirizzo [{{ shop.email }}](mailto:{{ shop.email }})
</td>
</tr>
</table>
</table>
</table>
I hope it would help you
Best regards,
Richard | PageFly
Hello, I also see the button in the center in the preview, the problem is the test email. Try to send a test email, you’ll also see the button on the left.
1 Like
Hi @FrancescoMi89 ,
I’m sorry to hear that. Please give it a try with this new solution:
{% capture email_title %}Ciao {{ customer.first_name }}, benvenuto su {{ shop.name }}!{% endcapture %}
{% capture email_body %}Grazie per la tua iscrizione. Per i tuoi prossimi acquisti, ora potrai accedere direttamente al tuo account per un check-out più veloce.{% endcapture %}
<table>
<table>
<table>
<table>
<tr>
<td>
{%- if shop.email_logo_url %}
{%- else %}
#
{{ shop.name }}
{%- endif %}
</td>
</tr>
</table>
</table>
</table>
<table>
<table>
## {{ email_title }}
{{ email_body }}
Per darti il benvenuto, ti abbiamo riservato una sopresa speciale
SCONTO 10% SU TUTTO IL CATALOGO
CODICE PROMO
SPECIALE10
{% if shop.url %}
<table>
<table>
<tr>
<td>
Visita il nostro negozio
</td>
</tr>
</table>
</table>
{% endif %}
</table>
</table>
<table>
<table>
<tr>
<td>
Se hai domande, rispondi a questa email o contattaci all’indirizzo [{{ shop.email }}](mailto:{{ shop.email }})
</td>
</tr>
</table>
</table>
</table>
I hope it would help you
Best regards,
Richard | PageFly
This works perfectly, thank you for your commitment
1 Like