[SalesForce] Hide global search

I need to hide global search under Manage Communities –> Edit –> Click on Tabs and Pages –>Select standard salesforce tabs –> select chatter tab..When i did this and when i change from Internal to Communities on the header I see the global search box

I think If I hide it for chatter tab it will hide under above specified location.

Best Answer

Try to use the native javascript, it is easier in this case. And then just hide the element with a class name headerSearchContainer:

<script>
    window.onload = function(){
        document.getElementsByClassName('headerSearchContainer')[0].style.display = 'none';
    };
</script>
Related Topic