mayronguevara
Forum Replies Created
-
and additional and important think:
checking the template (teacher-started-course.php) , I have noted the CSS is already defined in the begin of the page:
$small = 'text-align: center !important;'; $large = 'text-align: center !important;font-size: 350% !important;line-height: 100% !important;';and, in the body email:
<?php do_action( 'sensei_before_email_content', $template ); ?> <p style="<?php echo esc_attr( $small ); ?>"><?php esc_html_e( 'Your student', 'sensei-lms' ); ?></p> <h2 style="<?php echo esc_attr( $large ); ?>"><?php echo esc_html( $learner_name ); ?></h2> <p style="<?php echo esc_attr( $small ); ?>"><?php esc_html_e( 'has started the course', 'sensei-lms' ); ?></p> <h2 style="<?php echo esc_attr( $large ); ?>"><?php echo esc_html( get_the_title( $course_id ) ); ?></h2>use the same attribute for:
$learner_name and $course_idbut seems the function: “get_the_title” is returning and empty string,
I have modified only for test purposes the line, and the CSS is ok:
<h2 style="<?php echo esc_attr( $large ); ?>">COURSE NAME: <?php echo esc_html( get_the_title( $course_id ) ); ?> || COURSE ID: <?php echo $course_id ; ?> </h2>check the new output here:
http://www.mambosondc.com/download/modified.png
where is clear that function is the problem. the course ID is ok, and printing.
let me know if this help to know where will be the issue and how I could fix it.
thank you so much for your time and help.
Hi:
Have you customized the email templates at all?
No. i have the default templates for emails.I have disable all the plugins but the issue continue.
I will try to change the Theme. but, I have a question, the layout (css) of the email is related with the theme, is it not independent? becaue the colours, fonts , etc and very different in my theme that in the email.
i don’t know if this will help you, but to that you have to limit your students with profiles (try memberPress), and only logged users with that kind of profile will able to see that course.
example:
courses belong to Tech category, i have created a “tech” profile
courses belong to photografy, I have created a “photo” profilealso, to automatize the process I have added other plugin to manage Subscriptions and each subscription has the profile pre-selected internally.
and in the course section, with memberPress you select which profiles will able to see this course.
I have the same issue, I can’t see the side bar option. In a normal page I could select if I need default template, home page or side bar page, but in lesson section this option does not appear , leave the page / lesson by default page. What I need to change to see the sidebar ??