Chat bubble size

Hello we are having difficulty with our chat bubble size, we used #proChatIframeContainer { z-index: 999999 !important; } to bring it forward we now want to shrink the size of the box. Any suggestions? We are using WordPress our URL is

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Site Moderator
Site Moderator badge
December 29, 2023


To adjust the size of the chat bubble on your WordPress site, you’ll typically need to modify the CSS properties that control its width, height, and possibly other aspects like padding or margins. However, the exact CSS selectors and properties to change depend on how your chat bubble is implemented.

Since you’ve already used a custom CSS rule for the z-index, you can similarly add CSS rules to adjust the size. Here are some general steps and tips:

1. Identify the Correct Selector

You’ve identified #proChatIframeContainer as a selector, but the actual size might be controlled by a different element within this container. Use your browser’s developer tools (usually opened by pressing F12 or right-clicking the element and selecting “Inspect”) to find the specific element that needs resizing.

2. Adjust Width and Height

Once you’ve identified the correct element, you can adjust its width and height properties. For example:

#proChatIframeContainer {
    z-index: 999999 !important;
    width: 300px; /* Adjust as needed */
    height: 400px; /* Adjust as needed */

3. Consider Responsive Design

Ensure that your adjustments work well on various screen sizes. You might want to use media queries to set different sizes for different screen widths.

@media (max-width: 768px) {
    #proChatIframeContainer {
        width: 200px; /* Smaller size for mobile devices */
        height: 300px;

4. Check for Other Styling Properties

Other CSS properties like padding, margin, or border might also affect the overall size and look of the chat bubble. Adjust these as necessary.

5. Update CSS in WordPress

You can add these custom CSS rules in your WordPress theme’s customizer (Appearance → Customize → Additional CSS) or in your child theme’s stylesheet if you’re using one.

6. Clear Caches

After making changes, clear any WordPress or browser caches to ensure your changes are visible.

7. Test Across Browsers

Different browsers can render CSS slightly differently, so test the changes in multiple browsers to ensure consistent appearance.

If these steps don’t directly address your issue, it might be due to the specific implementation of your chat bubble. If it’s a plugin or a third-party service, their documentation or support might provide more precise guidance. Additionally, if the chat bubble is in an iframe and the iframe content comes from another domain, your ability to style it with CSS might be limited due to cross-domain restrictions.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel