and added custom folder within /App_Plugins/.../Themes/MyTheme
(basically copied and pasted the default theme, only changed the name and a few colours in theme.json
But the new theme is not available in the Workspace neither in Default Theme dropdown nor Allowed Themes list. Do I need to register the theme somehow to make it appear for selection?
The folder is App_Plugins/NewsletterStudio/Themes etc.
By the way we have added NewsletterStudio package (from nuget) to our web project (where Umbraco.Cms package is installed) and then NewsletterStudio.Core to our logic project where we customise it (where we have Umbraco.Cms.Core installed).
It looks that NS added its plugin to web project under App_Plugins (correct) and then created additional folder App_Plugins to the logic project (when we have installed NewsletterStudio.Core) duplicating the same files that already exist in web project under App_Plugins.
So we now have two
App_Plugins/NewsletterStudio/Themes/...
both in web project and logic project. I believe it is not correct? Maybe that's the problem?
Not sure if we remove the redundant from logic project it won't try to recreate it again?
Btw we don't have any MyPlugin folder equivalent - NS installed its NewsletterStudio folder within App_Plugins, we didn't add it.
How to add a new theme?
Tried to follow the manual here: https://www.newsletterstudio.org/documentation/package/10.0.0/concepts/themes/
and added custom folder within
/App_Plugins/.../Themes/MyTheme
(basically copied and pasted the default theme, only changed the
name
and a few colours intheme.json
But the new theme is not available in the Workspace neither in Default Theme dropdown nor Allowed Themes list. Do I need to register the theme somehow to make it appear for selection?
Hi!
From the link it looks like you're on Umbraco 10 and then using Newsletter Studio v10 right? What exact version are you on?
Not sure what
/..../
means in your example but its important that the folder-structure matches how we write in the docs.A valid folder would be:
/App_Plugins/MyPlugin/NewsletterStudio/Themes/MyTheme/theme.json
How does your folder-structure look?
Yes, it is version 10 (U & NS).
The folder is
App_Plugins/NewsletterStudio/Themes
etc.By the way we have added
NewsletterStudio
package (from nuget) to our web project (whereUmbraco.Cms
package is installed) and thenNewsletterStudio.Core
to our logic project where we customise it (where we haveUmbraco.Cms.Core
installed).It looks that NS added its plugin to web project under
App_Plugins
(correct) and then created additional folderApp_Plugins
to the logic project (when we have installedNewsletterStudio.Core
) duplicating the same files that already exist in web project underApp_Plugins
.So we now have two
both in web project and logic project. I believe it is not correct? Maybe that's the problem?
Not sure if we remove the redundant from logic project it won't try to recreate it again?
Btw we don't have any
MyPlugin
folder equivalent - NS installed its NewsletterStudio folder withinApp_Plugins
, we didn't add it.Hi!
You should create a custom folder the theme extention and not put it in
App_Plugins/NewsletterStudio/Themes
.Use something like
App_Plugins/MyCustomFolder/NewsletterStudio/Themes/...
You should create this folder on your filesystem, it will not be automatically added.
If you still can't get the theme to load, please provide me this the full path to the theme.json file from your site root - that would be helpful.
Cool, indeed, we got it wrong and out it under generic NewsletterStudio Themes. Now it works! Thank you
Great news! Thank you for letting me know!
I've made some updates to the documentation as well based on our conversation to make things more clear.
Thank you for reaching out!
https://www.newsletterstudio.org/documentation/package/12.0.0/concepts/themes/
is working on a reply...