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:
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!
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 !
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.
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.
Nov 12, 202011:48 AM - edited Nov 12, 202011:49 AM
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.
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