The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Search
Close
AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Custom template - c...
 
Share:
Notifications
Clear all

[Solved] Custom template - comment form broken

6 Posts
2 Users
0 Reactions
2,901 Views
Posts: 4
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@metanamorph)
Active Member
Joined: 5 years ago
[#1603]

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: 8210
 Asti
Support
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@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
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@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
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@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: 8210
Asti
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@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
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@asti

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


Reply
Share: