• Resolved Justin Tadlock

    (@greenshady)


    I had a theme that the plugin wasn’t working with. The reason the plugin doesn’t work is because the theme and plugin use the same priority to filter comment_form_defaults. And, because the theme is loaded last, it gets priority.

    This is a simple fix for the plugin: go with a later priority than 10. For example:

    add_filter( 'comment_form_defaults', 'ccft_post_comment_title', 99 );

    This would instantly solve pretty much any theme incompatibility, at least with themes that are properly coded. You should also be able to drop the custom Thematic and Genesis code, making the code a bit less complex.

    I hope that helps.

    https://wordpress.org/plugins/custom-comment-form-title/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Derek Rippe

    (@dwrippe)

    Thanks for the feedback, Justin. I’ll get the plugin updated. 🙂

    thanks for the quick action guys 🙂

    Plugin Author Derek Rippe

    (@dwrippe)

    Thanks again for the advice, Justin. I’ve updated the plugin to accommodate your suggestion and it’s working great.

    I was able to remove the check for Genesis as you guessed, but had to keep the one for Thematic for some reason (who knows – that framework doesn’t look like it’s been updated in a couple of years anyways).

    Thread Starter Justin Tadlock

    (@greenshady)

    Sounds good. I wasn’t entirely sure about Thematic.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to make work with pretty much any theme’ is closed to new replies.