Sales Hub Tools

mkranitz
Contributor

Disable chat from certain pages

SOLVE

Hi all,

 

There are some pages on my website that I don't want the chat agent to pop up. I am using Wordpress (X Theme) and I had previously  been able to disable it from loading on certain pages by adding something like this:

 

#hubspot-messages-iframe-container {
display: none !important;
}

 

I did a theme update and it seems to have removed the code that was preventing chat from popping up. 😞

 

Here's the rub: I don't remember where I changed it, and I don't remember if the above was the exact code that I used! I probably spent two hours figuring it out last time and I was hoping that I could toss this out to you guys for help instead of spending another two hours trying to figure it out!

 

THANKS in advance,

 

Mitch

0 Upvotes
1 Accepted solution
Josh
Solution
Recognized Expert | Platinum Partner
Recognized Expert | Platinum Partner

Disable chat from certain pages

SOLVE

Hi @mkranitz,

 

I prefer to disable the chat on specific pages using the "Target" settings in the chat setup. Here's an example screenshot:

Hide-Chat.png

 This should do the trick!

 

Josh

 




Did this post help solve your problem? If so, please mark it as a solution.

Josh Curcio

HubSpot support and inbound marketing for OEMs, contract manufacturers, and industrial suppliers.
HubSpot Platinum Partner & HubSpot Certified Trainer

View solution in original post

11 Replies 11
mkranitz
Contributor

Disable chat from certain pages

SOLVE

I was able to accomplish the change by using the following in the theme's (X Theme Pro) CSS settings:

 

.page-id-135 #hubspot-messages-iframe-container { display: none !important; }

 

I'm going to mark your answer as the solution, though, as it's clear to me that your approach would work perfectly fine.

 

Thanks again!

Josh
Solution
Recognized Expert | Platinum Partner
Recognized Expert | Platinum Partner

Disable chat from certain pages

SOLVE

Hi @mkranitz,

 

I prefer to disable the chat on specific pages using the "Target" settings in the chat setup. Here's an example screenshot:

Hide-Chat.png

 This should do the trick!

 

Josh

 




Did this post help solve your problem? If so, please mark it as a solution.

Josh Curcio

HubSpot support and inbound marketing for OEMs, contract manufacturers, and industrial suppliers.
HubSpot Platinum Partner & HubSpot Certified Trainer

LJohnson47
Member

Disable chat from certain pages

SOLVE

can you help me navigate to this screen after already having set up chat i need to disable on landing pages.

0 Upvotes
kvlschaefer
Community Manager
Community Manager

Disable chat from certain pages

SOLVE

Hi @LJohnson47,

 

Thank you for reaching out!

 

This thread is 2 years old and may not have full visibility among our Community Members.

 

To ensure that your question is seen by our community members, I would encourage you to create a new post on the Community.

Please make sure to include a full description of the issue you are running into or your goal and any pertinent screenshots in the new post for the Community to better assist with the next steps.

 

Thank you

Best,

Kristen


Did you know that the Community is available in other languages?
Join regional conversations by changing your language settings !
sanjivlondon
Member

Disable chat from certain pages

SOLVE

Hello 

I wanted to ask two questions about the chat functionality because it seems there is something not right in expected behavior 

1. We have implemented the chat on our website and when a user comes to our website and clicks on the chat icon and add a message and stop . After that user goes to a new page where the chat opens again where the user left the previous chat - Is it possible if we can configure that when a user goes move out a new page then chat window does not open and only the chat icon shows otherwise chat window takes 75% of the screen of the website. 

2. On the mobile when we perform the same action it's worst because once a user opens the chat the webpage goes back in the background and there is no option for the chat to be closed which is very frustrating and does not work as expected. The expectation is once a user clicks on chat on mobile a pop should open for chat but there should be an option to close the chat which does not seems to be there. 

 

2. 

0 Upvotes
tc_tempokit
Member

Disable chat from certain pages

SOLVE

Hi,

How do i get to the "Target" settings in the chat setup?

I don't see a Target settings on the chat page:

Screen Shot 2021-05-26 at 8.33.14 PM.png

AJacovchak
Participant

Disable chat from certain pages

SOLVE

Same here.
Can anyone tell us where to find the Target settings?

donrua
Top Contributor

Disable chat from certain pages

SOLVE

Does using this method prevent the live chat code from loading? We are getting significant hits on page speed from fetching, reading and/or managing the code.

0 Upvotes
mkranitz
Contributor

Disable chat from certain pages

SOLVE

OK! This is a fantastic answer... (here comes the but...)

 

BUT, I have a bit of a weird situation. I don't have regular admin access to HubSpot! That, plus I am also using the plugin on a site that is not our primary site. In other words, we use www.xyz.com as our primary domain with HubSpot. I started a new sales channel for the company and along with that I created a new www.abc.com domain to represent our mission and bring in the cheddar. I added the hubspot plugin to our wordpress instance and ever since, the popups started. I DO have access to every aspect of Wordpress/Domain/etc for the www.abc.com site so I figured if I could do it with code, I wouldn't have to mess with the admin portal.

 

Regardless, I'm going to schedule time to work with our HubSpot admin to review the settings you suggested and see if that floats.

 

Thanks a bunch, @Josh 

 

Mitch

0 Upvotes
Josh
Recognized Expert | Platinum Partner
Recognized Expert | Platinum Partner

Disable chat from certain pages

SOLVE

Hi @mkranitz,

 

If you're able to get the access you need to HubSpot for that chat, you should be able to put the full path of the URL for the exclusion. That should solve the issue of xyz.com vs abc.com.

 

Josh




Did this post help solve your problem? If so, please mark it as a solution.

Josh Curcio

HubSpot support and inbound marketing for OEMs, contract manufacturers, and industrial suppliers.
HubSpot Platinum Partner & HubSpot Certified Trainer

0 Upvotes
mkranitz
Contributor

Disable chat from certain pages

SOLVE

Bingo. I'll try this afternoon and update you shortly after. THANKS

0 Upvotes