Recent searches


No recent searches

How can I remove "Suggested Articles" from the ticket submission form?



Edited Aug 21, 2024


5

32

32 comments

Good day all, I tried To remove Suggested Articles via CSS but its still showing on my request form after a user clicks off the subject. Any help would appreciated. FYI, I dont have anything custom like jquery etc. 

 

I have this exact code in my style.css 


.form .suggestion-list {
 display:none;
}

.form .suggestion-list label {
 display:none;
}

.form .suggestion-list li {
 display:none;
}

.form .suggestion-list li a:visited {
 display:none;
}

0


I'm doing something like this to just stick override CSS in the header on load.  With the !important tag .

Just have to replace your_form_id_here with the form ID, and make sure the CSS your injecting matches your theme.  

 

(function($) {
   $(document).ready(function() {
       if (window.location.href.indexOf("/hc/en-us/requests/new?ticket_form_id=your_form_id_here") > -1) {
           var css = '.searchbox-suggestions { display: none !important; } .searchbox > h2 { display: none !important; }';
           $('head').append('<style>' + css + '</style>');
       }
   });
})(jQuery);
 

0


Please sign in to leave a comment.