Hi @mountaineer2007 ,
Welcome to Q&A forum!
In addition to allowing Custom Script at the tenant level, you also need to allow it at the site level.
Tenant level:
Site level:
The result:
Please note:
By default, any changes to custom script settings for a specific site only last for a maximum of 24 hours. After that time, the setting will reset to its original value for that specific site.
This may cause some trouble for you.
For more information, please refer to:
For a better user experience, you can try to explore creating custom solutions using SharePoint Framework, which is designed for modern experience. Although it is different from your usage preferences, it is a good choice.
Good day!
If the answer is helpful, please click "Accept as Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.