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

[Solved] Custom template - comment form broken

6 Posts
2 Users
0 Reactions
2,038 Views
Posts: 4
Topic starter
(@metanamorph)
Active Member
Joined: 4 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: 7664
 Asti
Support
(@asti)
Illustrious Member
Joined: 7 years ago

@metanamorph,

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

Reply
4 Replies
(@metanamorph)
Joined: 4 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: 4 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: 7 years ago

Illustrious Member
Posts: 7664

@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: 4 years ago

Active Member
Posts: 4

@asti

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

Reply
Share: