Explanation sentences of each title

Hi, I would like to put the explanation sentences below “TITLE”, and “ADDRESS”. This is submit-listing page. It would be great if you tell me how I can add an explanation sentence like "Please indicate if you are… in "“DURATION OF PROVISION” line.

Please try this PHP snippet:

add_filter(
	'hivepress/v1/forms/listing_submit',
	function( $form ) {
		
		// Set title field description.
		if(isset($form['fields']['title'])){
		  $form['fields']['title']['description'] = 'custom text here';
		}
		
		// Set address field description.
		if(isset($form['fields']['location'])){
		  $form['fields']['location']['description'] = 'custom text here';
		}

		return $form;
	},
	1000
);

Thank you very much.
When I copy and paste the PHP snippet, I will occur an error.
Also when I make the PHP snippet like below, I can make the text in my web page but when I change the word of “custom” text here, occurs an error as well.

add_filter(
	'hivepress/v1/forms/listing_submit',
	function( $form ) {
		
		// Set title field description.
		if(isset($form['fields']['title'])){
		  $form['fields']['title']['description'] = 'custom text here';
		}
		
		return $form;
	},
	1000
);

Please make sure that you have not deleted quotation marks or semicolons when you change the text. I have tested locally to change this text and it seems to be ok. If the issue persists please send here a code snippet which you try to save after your changes

add_filter(
	'hivepress/v1/forms/listing_submit',
	function( $form ) {
		
		// Set title field description.
		if(isset($form['fields']['title'])){
		  $form['fields']['title']['description'] = 'custom text';
		}
		
		return $form;
	},
	1000
);

The issue persists when I write it in Japanese.
I would like to send the code snippet.

add_filter(
	'hivepress/v1/forms/listing_submit',
	function( $form ) {
		
		// Set title field description.
		if(isset($form['fields']['title'])){
		  $form['fields']['title']['description'] = '出品にタイトル名を付けてください。';
		}
		
		return $form;
	},
	1000
);

Please try to copy this code snippet. It was tested locally and it seems to be ok

add_filter(
	'hivepress/v1/forms/listing_submit',
	function( $form ) {
		
		// Set title field description.
		if(isset($form['fields']['title'])){
		  $form['fields']['title']['description'] = '出品にタイトル名を付けてください。';
		}
		
		return $form;
	},
	1000
);

Thank you very much. I could fix it.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.