We are currently exploring Zendesk for our customer support website, but we have encountered some limitations in terms of customization. Our goal is to remove specific text from the page by utilizing Zendesk's widgets function, which can be implemented using JavaScript or CSS.
Specifically, we are attempting to hide the following h2 tag while maintaining the overall display:
<h2 id="search_box">Knowledge Base & Forums</h2>
Initially, we tried achieving this with the following CSS code:
.search_box {
display: none;
}
However, it appears that our attempts were unsuccessful. As I am not well-versed in either CSS or JavaScript, and uncertain about when these widgets are executed, I suspect there may be a mistake in how I am trying to access the element on the page.
I managed to hide the desired text using a combination of JavaScript and CSS codes, but it does not meet my requirements as it hides all instances of the specified text on the page:
Javascript:
$j('h2:contains(Knowledge Base & Forums)').addClass('forumtitle');
CSS:
.forumtitle {
display: none;
}
Any assistance would be greatly appreciated. Thank you!