Shopify themes, liquid, logos, and UX
The Mailjet subscription widget is in iframe form. I tried inserting it by adding a custom liquid section: Theme -> Customize -> Homepage -> add section -> Custom Liquid
The form displays fine in mobile but in desktop, it aligns to the left. I would like it to display centred.
I should be grateful for any suggestions.
URL: https://erie-eu.myshopify.com/
Theme: Dawn
Solved! Go to the solution
This is an accepted solution.
Hello @Chikashi ,
It's GemPages support team and glad to support you today.
I would like to give you a recommendation to support you so kindly follow the steps below:
1. Go to Online Store > Theme > Edit code of your current theme
2. Open your theme.liquid theme file
3. Paste the below code before </head>
<style>
#shopify-section-template--16858807304483__29b84e33-a468-4ac3-9046-10ce0ae715f7 iframe#iFrameResizer0 {
max-width: 600px;
display: block;
margin: 0 auto;
}
</style>
For example,
If you require any further information, feel free to contact me.
Best regards,
GemPages Support Team
This is an accepted solution.
Hello @Chikashi ,
You can inspect the code by pressing F12 or clicking the right mouse. After that, let's copy the ID of the section and add it to the below code:
<style>
#section_ID iframe#iFrameResizer0 {
max-width: 600px;
display: block;
margin: 0 auto;
}
</style>
You can watch this video for the details: https://www.loom.com/share/48454666ba7a4a39ab31290a55276b83
Best regards,
GemPages Support Team
This is an accepted solution.
Hello @Chikashi ,
It's GemPages support team and glad to support you today.
I would like to give you a recommendation to support you so kindly follow the steps below:
1. Go to Online Store > Theme > Edit code of your current theme
2. Open your theme.liquid theme file
3. Paste the below code before </head>
<style>
#shopify-section-template--16858807304483__29b84e33-a468-4ac3-9046-10ce0ae715f7 iframe#iFrameResizer0 {
max-width: 600px;
display: block;
margin: 0 auto;
}
</style>
For example,
If you require any further information, feel free to contact me.
Best regards,
GemPages Support Team
Thank you very much for your swift and helpful suggestion. It worked like a charm for the homepage.
The widget will be placed on other pages (templates) too. How would I apply the same?
This is an accepted solution.
Hello @Chikashi ,
You can inspect the code by pressing F12 or clicking the right mouse. After that, let's copy the ID of the section and add it to the below code:
<style>
#section_ID iframe#iFrameResizer0 {
max-width: 600px;
display: block;
margin: 0 auto;
}
</style>
You can watch this video for the details: https://www.loom.com/share/48454666ba7a4a39ab31290a55276b83
Best regards,
GemPages Support Team
Sorted! Many thanks for your help. Much appreciated.
Hello @Chikashi ,
I do appreciate your compliment!
Your kind words have just made my day.
Best regards,
GemPages Support Team
User | RANK |
---|---|
230 | |
148 | |
55 | |
52 | |
46 |
Thanks to all who participated in our AMA with 2H Media on planning your 2023 marketing bu...
By Jacqui Mar 30, 2023Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023