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
Notifications
Clear all

[Solved] Add a Title Header

3 Posts
2 Users
0 Reactions
1,218 Views
(@assafmanor)
Posts: 34
Trusted Member
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
 
[#7434]

I have read various fixes solutions for wpdiscuz's decision to eliminate their title header for the forms. All the solution involve adding a hook to the functions.php file.

The problem with this solution is that it doesn't let you customize a different title for each form. Or is there a way to do so?


 
Posted : 21/06/2023 4:47 pm
Asti
 Asti
(@asti)
Posts: 8259
Illustrious Member 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
 

Hi @assafmanor,

We'll check and let you know if there is an easy solution we can post here. 


In case you want to say thank you! 🙂
We'd really appreciate if you leave a good review on the plugin page.
This is the best way to say thank you to this project and the support team.

 
Posted : 21/06/2023 5:01 pm
Asti
 Asti
(@asti)
Posts: 8259
Illustrious Member 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
 

@assafmanor,

The hook code you can use is provided below: 

add_action( 'wpdiscuz_comment_form_before', function () {
	$wpdiscuz = wpDiscuz();
	$form     = $wpdiscuz->form;
	if ( $form->getFormID() === 5 ) {
		echo '<h3 style="max-width: 750px;margin: 0px auto;">' . __( 'Leave a Reply On Post', 'wpdiscuz' ) . '</h3>';
	} else {
		if ( ! empty( $post->ID ) && $post->ID === 2 ) {
			echo '<h3 style="max-width: 750px;margin: 0px auto;">' . __( 'Leave a Reply On Page', 'wpdiscuz' ) . ' ID=' . $post->ID . '</h3>';
		} else {
			echo '<h3 style="max-width: 750px;margin: 0px auto;">' . __( 'Leave a Reply On Page', 'wpdiscuz' ) . '</h3>';
		}

	}
}, 10 );

You'll get the following result: 

2
1
3

Don't forget to make the required changes in the hook code I've provided. 


In case you want to say thank you! 🙂
We'd really appreciate if you leave a good review on the plugin page.
This is the best way to say thank you to this project and the support team.

 
Posted : 22/06/2023 12:26 pm