The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Custom template - c...
 
Share:
Notifications
Clear all

Limited Support

Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.

 

[Solved] Custom template - comment form broken

6 Posts
2 Users
0 Reactions
2,489 Views
Posts: 4
Topic starter
(@metanamorph)
Active Member
Joined: 5 years ago

Hi there,

I'm trying to use wpDiscuz in my custom theme.
The default wordpress comment section and wpDiscuz is working fine by using comments_template(); in single,php on twentyseventeen template.

In my custom theme however the comment editor (textarea) is not visible and all 'links' don't work.
The Css style of the textarea has been changed to display:none; by some miracle.
But it is definately not a css issue.

I've added following code to the functions.php:

add_theme_support( 'html5', array( 'comment-list', 'comment-form', 'search-form', 'gallery', 'caption', 'style', 'script' ) );

function mm_thread_comments() {
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );
}
}
add_action( 'wp_enqueue_scripts', 'mm_thread_comments' );

What am I missing?
Thanks for any help on this, Edgar

5 Replies
Asti
Posts: 8075
 Asti
Support
(@asti)
Illustrious Member
Joined: 8 years ago

@metanamorph,

Could you please leave some example URL to allow us to understand the issue? 

Reply
4 Replies
(@metanamorph)
Joined: 5 years ago

Active Member
Posts: 4

@asti

Thank you for the quick response. Well my site is not finished yet and therefore not public. But I will send you the account details to login.
This is an example site. You can see the textarea for the comment is display:none;
And the buttons don't work.

https://metanamorph.com/the-waterfall/

Maybe a filter is changing things. No clue here.

Cheers, Edgar

 

Edit: I can't send you messages so far.

Reply
(@metanamorph)
Joined: 5 years ago

Active Member
Posts: 4

@asti

Ok, here is a guest account to the site:

https://metanamorph.com/wp-login.php
user: deleted
pass: deleted

 

Reply
Asti
 Asti
Support
(@asti)
Joined: 8 years ago

Illustrious Member
Posts: 8075

@metanamorph,

The wpDiscuz js files are not being loaded. 

Your WordPress theme footer php file (for this custom post type) must contain <?php wp_footer(); ?> function to allow all plugins load JS files and scripts.

Reply
(@metanamorph)
Joined: 5 years ago

Active Member
Posts: 4

@asti

Thank you so much for the reminder. It works like a charm now.

Reply
Share: