I am working with HubSites in modern SP. On a communication site (registered as hub), I wanted to see if there is a way to hide the links that appears on the top right, see screenshot below.

enter image description here

I already have a modern script editor web part in use so if someone could share the CSS to hide these links that would be great. FYI, I am looking to hide Following/not following, share site and next steps links/buttons.

Thanks in advance.

1 Answer 1


The following CSS style for your reference.

    display:none !important;

enter image description here

  • Just tested, but the snippet does not work, it does not hide the buttons/links.
    – mdevm
    Jul 31, 2019 at 13:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.