How to reduce the size of the chat-app bubble only for mobile?

How to reduce the size of the chat-app bubble only for mobile?

roughsketch
New Member
4 0 0

roughsketch_0-1731567287837.png

Want to reduce the size of the chat app bubble
Tried java script to access the TOM element to change the sizing with important tag, but that doesn't work 

Replies 6 (6)

rajweb
Shopify Partner
358 35 49

Hey @roughsketch ,

To reduce the size of the chat bubble specifically for mobile, you can use CSS targeting media queries. If JavaScript overrides haven't worked, applying custom CSS might be more effective. Here’s how you could do it:

  1. Identify the class or ID of the chat bubble element using your browser's developer tools (right-click the bubble > "Inspect").

  2. Use a media query for mobile to ensure this only affects mobile views. For example:

     

 

 

@media only screen and (max-width: 767px) {
    .chat-bubble-class {
        transform: scale(0.7); /* Adjust to desired size */
        width: auto !important;
        height: auto !important;
    }
}

 

 

Replace .chat-bubble-class with the actual class or ID of your chat bubble element.

2. Add this code to your theme's CSS file (usually theme.css.liquid or custom.css) in the Shopify theme editor.

 

If I was able to help you, please don't forget to Like and mark it as the Solution!
If you’re looking for expert help with customization or coding, I’d be delighted to support you. Please don’t hesitate to reach out via the email in my signature below—I’m here to help bring your vision to life!

Best Regard,
Rajat Sharma

-Need a Shopify developer?
https://rajatweb.dev/
Email: rajat.shopify@gmail.com

GTLOfficial
Shopify Partner
658 140 133

Hello @roughsketch 
Go to online store ----> themes ----> actions ----> edit code ----> assets ---->style.css
add this code at the end of the file and save.

button.chat-toggle {
height: 40px;
width: 40px;
margin: 0;
}

result
6.png

If this was helpful, hit the like button and accept the solution.
Thanks

- Buy me a Pizza
- If helpful then please Like and Accept Solution.
- Want to modify or custom changes or bug fix on the store Hire me. GTL web solutions
- Want Complete Storefront: Send an email ⇨- Email: info@gtlofficial.com - Skype: ritesh_27dh
roughsketch
New Member
4 0 0

As there's no style.css this should be done in base.css? @GTLOfficial 

GTLOfficial
Shopify Partner
658 140 133

Yes, base.css
if you want icon to be more small then you can use this css

#ShopifyChat {
transform: scale(0.6);
}

result
7.png

Thanks

- Buy me a Pizza
- If helpful then please Like and Accept Solution.
- Want to modify or custom changes or bug fix on the store Hire me. GTL web solutions
- Want Complete Storefront: Send an email ⇨- Email: info@gtlofficial.com - Skype: ritesh_27dh
roughsketch
New Member
4 0 0

Yes I want icon as smaller but only for mobile. Thanks

 

roughsketch
New Member
4 0 0

roughsketch_0-1731571241420.png

The chat box also transformed.

roughsketch_1-1731573053390.png