How put links at the description on placeholder

Hi guys!

I would like put links for my help page at the placehorder if any user have some doubt when submit a listing

image

I would like put a link in some word where it is in red.

The result that I expect is something like that:

image

In this exemple the link stay at the field. Which code I can put a link in some word in placeholder?

Thanks!

Please try this PHP snippet to start. It adds a description with some link to the Images field. In this way, it is possible to add descriptions with links to other fields

add_filter(
	'hivepress/v1/forms/listing_update',
	function( $form ) {
		if(isset($form['fields']['images'])){
		  $form['fields']['images']['description'] = 'custom text here and <a href="#">link is here</a>';
		}

		return $form;
	},
	1000
);
1 Like

Perfect, dude!

Thanks.

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