Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • ewuski 99 posts 286 karma points
    Oct 06, 2023 @ 19:22
    ewuski
    0

    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 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?

  • Markus Johansson 1936 posts 5864 karma points MVP 2x c-trib
    Oct 09, 2023 @ 15:31
    Markus Johansson
    0

    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?

  • ewuski 99 posts 286 karma points
    Oct 13, 2023 @ 15:09
    ewuski
    0

    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 (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.

  • Markus Johansson 1936 posts 5864 karma points MVP 2x c-trib
    Oct 18, 2023 @ 15:16
    Markus Johansson
    100

    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.

  • ewuski 99 posts 286 karma points
    Oct 19, 2023 @ 19:37
    ewuski
    0

    Cool, indeed, we got it wrong and out it under generic NewsletterStudio Themes. Now it works! Thank you

  • Markus Johansson 1936 posts 5864 karma points MVP 2x c-trib
    Oct 23, 2023 @ 08:32
    Markus Johansson
    0

    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/

Please Sign in or register to post replies

Write your reply to:

Draft