Hi Datactory,
To test, I tried adding the code to the web part, following are the steps:
- Navigate to your SharePoint site.
- Click Edit on the right.
3.Click Insert on the ribbon>Web Part>Media and Content>Script Editor (as shown below)>Add
4.Click ‘Edit web Part’ as shown below.
5.Once clicked on Edit Web Part, click the EDIT SNIPPET link to insert HTML/Script code.
6.After you have inserted the appropriate code in the Embed dialog box, click Insert to save the HTML/Script.
7.Click the Save button on the right corner of your site.
You can try the above method, see if you get the desired result.
If you still get any issues, please provide us with the following information:
- Can you provide us with sample code, which you entered, if possible? We will try it on our end.
- Please mention the steps you have taken to add the code.
Moreover, we don’t have the access to the page you mentioned in the post, so can you provide us with the screenshot ?
To protect the privacy, I have sent you a private message to write us the code. Please click hereto access your PM.
Here are the articles and a post for reference:
How to: Add a Web Part zone snippet in SharePoint 2013
How to: Add a Security Trim snippet in SharePoint 2013
Embedding html code in a SharePoint page
Note: Articles above are for SharePoint 2013 but the steps may be same for SharePoint online.
Thanks,
Neha