I need to add a text field in the price part because I want to create a booking website with variable prices, so when people upload their property in the price field, I want them to know that they can change the differents prices later on the calendar
Hello
In the wordpress dashboard
Hivepress > ads >attributes > price > edit > edit >field type > text > and update and you will be able to write text on your price field.
Go back to your page to see if it was taken into account or you recreate a test ad to confirm the change.
Good luck to you
Nothing, I can’t get it to come out. I have made the changes you told me, but no text appears next to the field or in the field…
Hi,
If you mean placeholder, please try this PHP snippet (How to add custom code snippets - HivePress Help Center):
add_filter(
'hivepress/v1/forms/listing_update',
function( $form ) {
$form['fields']['price']['placeholder'] = 'custom text here';
return $form;
},
1000
);
Please note that it can require further customization.
If customizations are required for your site, please try customizing it using the collection of code snippets Search · user:hivepress · GitHub and other developer resources, or consider hiring someone for custom work https://fvrr.co/32e7LvY
P.S. If you purchased a theme or extension, please enter the license key in the forum profile settings, this will enable the Premium Support badge and ensure a 24-hour turnaround time.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.