Forum Discussion
Frank Nielsen
Feb 06, 2019Copper Contributor
Code snippet web part
Hi SharePoint gurus. I have a SharePoint Modern page where I want to hide the header of a web part. I have taken out the ID of the header and used the code snippet web part, but the header is still ...
- Feb 06, 2019
As others have mentioned, the code snippet web part just displays code, it doesn't execute it.
You should also be aware that trying to override out of the box styles is not good practice. Those IDs are subject to change and they will change as they are dynamically generated.
Robin Nilsson
Feb 06, 2019Bronze Contributor
The code snippet webpart doesn't do anything - the code is not executed. It's only used to display code so you can use it to document programs and such. There is not a way currently to add code to a modern page.