• Resolved aserakov

    (@aserakov)


    I’m customizing Sensei emails. To do this, I copy the Header.php template file to my theme folder -> sensei (as described in the documentation https://senseilms.com/documentation/theming/)
    But it doesn’t work.
    [mythemefolder]/sensei-lms doesn’t work either
    The changes I make in the plugin folder work fine.
    How do I customize the template from my theme to prevent problems when updating the plugin?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @aserakov ,

    The subdirectories within the templates directory need to be preserved, so what may be happening is that you’re copying header.php to

    mytheme/sensei/header.php

    rather than to the correct path, which is

    mytheme/sensei/emails/header.php

    Would you give that a try and let us know if that works for you?

    I’ll update the doc to make that more clear in the meantime.

    Best,

    Cena

    Thread Starter aserakov

    (@aserakov)

    Yes, it works. Thank you!

    The strange thing is that the plugin folder is “sensei-lms” but the child folder is “sensei”. This was confusing.

    Hi @aserakov ,

    It IS strange! Due to your comment I looked at the code, which seems to imply that it should be piecing together where the template is located, based on the plugin path (which is ../sensei-lms, as you say).

    I did a quick test using /sensei-lms in /mythemedirectory/, but it doesn’t seem to work. I’ve asked our devs about this out of curiosity, and will let you know when I hear anything back.

    Best,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Email customization’ is closed to new replies.