• Resolved Bree

    (@lifesgood)


    Unfortunately I can’t get any comments to show on lessons, even when “allow comments” is ticked. But when I switch to a default theme, the comments show, so I guess it’s a theme issue, however, the theme support doesn’t allow for ‘customizations’, so I’m just wondering if you have any suggestions? Perhaps other users have experienced this and there’s an easy fix? Thanks in advance.

Viewing 4 replies - 16 through 19 (of 19 total)
  • Thread Starter Bree

    (@lifesgood)

    Hello, I’m still after a solution/pointing in the right direction on this. It’s the only thing stopping me from launching my course – if I can get comments to work, I can go ahead and purchase some LifterLMS add-ons I need. Thanks in advance.

    @lifesgood,

    Have you tried adding the code to a child theme via a hook:

    
    add_action( 'lifterlms_single_lesson_after_summary', 'add_comments_to_lesson' 10 );
    function add_comments_to_lesson() {
       if( comments_open() || get_comments_number() ) { comments_template(); }
    }
    

    That can be added to your child theme’s functions.php file.

    Alternatively you can override the template you’ve modified instead of modifying it directly: https://lifterlms.com/docs/lifterlms-templates/#template-overrides

    I’ll mark this as “unresolved” for now. Once somethings marked as resolve I tend to lose sight of the tickets.

    Best

    Thread Starter Bree

    (@lifesgood)

    Thank you, finally got it to work! Unfortunately the code above didn’t work, but the child theme template override with some other code did. Cheers.

    @lifesgood,

    Glad you got it figured out!

Viewing 4 replies - 16 through 19 (of 19 total)

The topic ‘Comments not showing’ is closed to new replies.