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

Limited Support

Our support team is currently on holiday from December 25, 2025 to January 7, 2026, and replies may be delayed during this period.

We appreciate your patience and understanding while our team is away. Thank you for being part of the wpDiscuz community!

Merry Christmas and Happy Holidays! πŸŽ„

[Solved] Add a Title Header

3 Posts
2 Users
0 Reactions
1,049 Views
Posts: 34
Topic starter
(@assafmanor)
Trusted Member
Joined: 3 years ago

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?


2 Replies
Asti
Posts: 8205
 Asti
Support
(@asti)
Illustrious Member
Joined: 8 years ago

Hi @assafmanor,

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


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

Illustrious Member
Posts: 8205

@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.Β 


Share: