How can I resize the inbox widget on mobile view?

How can I resize the inbox widget on mobile view?

MiaPascua
Tourist
23 0 2

Hello! I just need to make the widget smaller as it looks too big on mobile view.

 

I'm using the Publisher theme.

https://everlyadorned.com/

Replies 6 (6)

Dan-From-Ryviu
Shopify Partner
11944 2341 2517

Hi @MiaPascua you can try to add this CSS code before </body> tag of your theme.liquid file 

 

<style>
@media screen and (max-width 749px) {
button.chat-toggle { 
height: 50px !important; 
width: 50px !important;
}
button.chat-toggle svg {
height: 28px !important;
}
}
</style>

 

- Helpful? Like & Accept solution! - Support me? Buy me a coffee
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

MiaPascua
Tourist
23 0 2

The code didn't change anything. 😞

Dan-From-Ryviu
Shopify Partner
11944 2341 2517

So I guess it does not accept customize CSS code. You can try to check if is there any option to edit size of that button in shopify chat app dashboard?

- Helpful? Like & Accept solution! - Support me? Buy me a coffee
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

INA_MSWEB
Shopify Partner
1281 144 168

Hi @MiaPascua 


I hope you are doing good and welcome to the Shopify Community!
I am San from MS Web Designer.

Please add this css in your bottom of the css file:
#dummy-chat-button-iframe {height: 50px !important; width: 50px !important;}
button#dummy-chat-button.chat-toggle {height: 45px !important; width: 45px !important;}
button.chat-toggle svg {height: 25px !important;}

 

 

 

Regards,

San

If it’s helpful to you, please mark it as a solution.  


Need Help with Shopify Design, Migration, Speed, or Custom tasks?  
email: hi@mswebdesigner.com
Try Our Conversion Booster app to get more sales | Connect Our Founder Linkedin

Cedcommerce
Shopify Partner
718 77 117

Hello @MiaPascua

 

You can resize or adjust the width of the chat widget for mobile view on the Publisher theme with the help of a CSS code.

 

You can follow the below steps to do the same.

 

Please note that this widget is rendered from the app and is contained within an <iframe> tag. 

As <iframe> doesn't allow customization inside it, you need to scale down the widget, resulting in a smaller button and chat area. 

 

To achieve this, please follow the steps below.

 

Go to Shopify Admin Dashboard and click on Online Store -> Themes.

Click on the Actions button -> Edit Code.

Now go to the Assets folder and click to open the theme.css.liquid file.

Add the following CSS code at the bottom of the file:

 

Find the code provided below:

@media only screen and (max-width: 767px) {

#ShopifyChat {

transform: scale(0.8);

transform-origin: bottom right;

}

}

Now save the changes to your theme.

 

Note: This code will scale down the Shopify inbox widget to 80% on screens with a maximum width of 767 pixels (typically the size of a mobile device screen). If you want to change the value of the scale, replace 0.8 with any value between 0 to 1.

Hope this resolves your issue. In case you need any further help, please connect with us.

 

All the best, 

CedCommerce 

CedCommerce || Shopify Expert
- Let us know if our reply is helpful for you. Like it.
- Was your question answered? Mark it as an accepted solution.
- For further discussion contact: Email ID- apps@cedcommerce.com
- Whatsapp:- Join Here
MiaPascua
Tourist
23 0 2

Hi. I couldn't find theme.css.liquid file under Assets. I found theme.liquid instead. I tried pasting the code there after </body> </html> but there are still no changes.