Hi, I had change the label name for file attachment in add listing page using Loco Translate.
However, the label also automatically change at the reply to listing section.
How to keep the label in reply to listing section the same?
Hi, I had change the label name for file attachment in add listing page using Loco Translate.
However, the label also automatically change at the reply to listing section.
How to keep the label in reply to listing section the same?
Hi,
Please provide more details about which label you are referring to, and we will try to help (perhaps you added it through attributes or custom code).
I allow user to add file when reply to listing. But the file label/name is the same label as in add listing page. I change the label name to “Add digital product” from loco translate.
However, i only want the name change in add listing page and not anywhere else.
Hi,
If I understand you correctly, please use this PHP snippet:
add_filter(
'hivepress/v1/forms/listing_update',
function($form){
if(isset($form['fields']['attachments'])){
$form['fields']['attachments']['label'] = 'Custom text';
}
return $form;
},
1000
);
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.
Done. I have added my license key for your further action
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.