@nick7961
Verify that your customized email templates are saved to your child-theme’s directory .../ultimate-member/email/.
Email Templates guide:
https://docs.ultimatemember.com/article/1335-email-templates
Creata a child-theme with this plugin:
https://wordpress.org/plugins/child-theme-configurator/
-
This reply was modified 3 years, 9 months ago by
missveronica.
Thread Starter
Nick
(@nick7961)
will child theme work with oxygen builder??
@nick7961
About WordPress child themes:
https://developer.wordpress.org/themes/advanced-topics/child-themes/
Ask the Oxygen Builder developers about their support for child themes.
Thread Starter
Nick
(@nick7961)
Okay…thanks for the help…
Thread Starter
Nick
(@nick7961)
Hi @missveronicatv…
i’ve talked to the oxygen support. Since themes will not work with Oxygen. So i can’t override the email template with child theme…
Is it possible to override email templates through a plugin like code snippets or anything???
@nick7961
You can try this code snippet, which will save your customized email templates to this folder instead of a child-theme folder.
/wp-content/uploads/ultimatemember/ultimate-member/email/.
Install the code snippet into the “Code Snippets” plugin.
https://wordpress.org/plugins/code-snippets/
add_filter( 'stylesheet_directory', 'stylesheet_directory_oxygen', 50, 3 );
function stylesheet_directory_oxygen( $stylesheet_dir, $stylesheet, $theme_root ) {
return ABSPATH . 'wp-content/uploads/ultimatemember/';
}
add_filter( 'um_locate_email_template', 'um_locate_email_template_oxygen', 50, 2 );
function um_locate_email_template_oxygen( $template, $template_name ) {
$template_copy = ABSPATH . 'wp-content/uploads/ultimatemember/ultimate-member/email/' . $template_name . '.php';
if( file_exists( $template_copy )) $template = $template_copy;
return $template;
}
Thread Starter
Nick
(@nick7961)
Looks like it’s working…Thank you for the snippet.