Here is a script that we use in the page layout that hides categories on the V2 Portal.
<!-- Hiding Categories -->
<script>
jQuery(document).on('PageUpdate', function() {
setTimeout(function() {
jQuery("[data-id='"+13000064493+"']").hide();
jQuery("[data-id='"+13000154178+"']").hide();
jQuery("[data-id='"+13000154048+"']").hide();
}, 200);
});
</script>
You would want to substitute the data-id with the id of the category you want to hide, but hopefully that helps :)
Here is a script that we use in the page layout that hides categories on the V2 Portal.
<!-- Hiding Categories -->
<script>
jQuery(document).on('PageUpdate', function() {
setTimeout(function() {
jQuery("[data-id='"+13000064493+"']").hide();
jQuery("[data-id='"+13000154178+"']").hide();
jQuery("[data-id='"+13000154048+"']").hide();
}, 200);
});
</script>
You would want to substitute the data-id with the id of the category you want to hide, but hopefully that helps :)
Beautiful, works like a charm. Thank you very much!
@zachary.king this is awesome! To clarify, where did you put this script? In the footer? Also, were you able to get those items hidden from searches too?