• Resolved flodi

    (@flodi)


    I’m trying using the shortcode [comment template=”/gfcomments.php”]

    I’ve created the file gfcomments.php in the home of my theme, which is a child theme (the parent theme is Divi).

    The php files contains only:
    <section id=”comment-wrap”>
    <h1>works</h1>
    </section>

    but on the page with the shortcode I do not see anything.

    https://ww.wp.xz.cn/plugins/custom-content-shortcode/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Eliot Akira

    (@miyarakira)

    Hello,

    Thank you for pointing out this issue. I believe the name of the custom comment template was not being passed correctly to the WordPress function. I fixed the issue in the latest plugin update, and also added a check for the first “/” in the template name.

    So, now it should work with [comment template="gfcomments.php"]. It will check the child theme directory first, then the parent theme.

    Please let me know if that solves it.

    Thread Starter flodi

    (@flodi)

    First of all. Thank you. For this plugin, which is incredibly useful. And for this quick answer.

    The update works like a charme!

    Thank you again.

    Plugin Author Eliot Akira

    (@miyarakira)

    Great, I’m happy to hear it. 🙂

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

The topic ‘Problem with comment template’ is closed to new replies.