• Resolved sasasasaaa

    (@sasasasaaa)


    Hi,

    I have added single-course.php to my-site / wp-content / themes / Divi-Child / sensei.

    In the page I have added “echo “Hello World”;” after do_action( ‘sensei_single_course_content_inside_before’, get_the_ID() ); before closing ?>.

    But text does not appear.

    Is single-course.php the course outline page for a single course?

    If so, then I do not know why the changes do not appear. Do you have an idea?

    I have a customized single-lesson.php in my child theme and it works.

    Thanks

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

    Does your course page contain any of the Sensei blocks? If so, then PHP templates are not used to render the course. We recommend using the blocks going forward, as we will not be maintaining support for the PHP templates. You can read more about this change on our blog.

    Having said that, if you would still like to use templates, you can do so by removing all of the Sensei blocks that have been added to the course.

    Thx.

    Thread Starter sasasasaaa

    (@sasasasaaa)

    Hi, ok. Will this happen also for single-lesson template (for now customization single lesson template still works)?
    I need strongly customization for single-lesson.php.

    Can you tell me for which pages you are planning to use blocks on?

    Thanks

    Plugin Support Dan (a11n)

    (@drawmyface)

    Yes, eventually all Sensei LMS frontend pages will be able to be powered by blocks, but again, if you don’t add any of those blocks, then you can continue to use the PHP templates instead. Hope that helps!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘single-course.php in child theme does not work’ is closed to new replies.