Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 95994

RolandOfEld on "[Theme: Quark] double comments with an event plugin"

$
0
0

hi Anthony - I am using Modern Tribe's The Events Calendar plugin ... basically what my problem is that when I enable an event to have the comments enabled on that event, I get 2 comment field/boxes.. obviously I only need the one so I sought out the help of the plugin authors and this is what they replied to me with:

Hi - you could basically try wrapping the code used in that template to display the comment form (normally this is quite simply a line reading comment_form(); ) in a conditional statement, something like this:

if ( ! tribe_is_event_query() ) comment_form();

Does that help here? You might want to make this change in a child theme to prevent your modification from being wiped on a future update – but it would be best to seek the advice of the theme author on that front.
----

I wanted to run this past you as I don't want to go chopping up php code as I don't really know php very well.. can you shed some light?


Viewing all articles
Browse latest Browse all 95994

Trending Articles