GeoDirectory SupportCustom Form Field – File Upload (sidebar) – GeoDirectory Support https://wpgeodirectory.com/support/topic/custom-form-field-file-upload-sidebar/feed Tue, 03 Mar 2026 15:58:22 +0000 http://bbpress.org/?v=2.5.14-6684 en-US https://wpgeodirectory.com/support/topic/custom-form-field-file-upload-sidebar/#post-50972 <![CDATA[Custom Form Field – File Upload (sidebar)]]> https://wpgeodirectory.com/support/topic/custom-form-field-file-upload-sidebar/#post-50972 Wed, 26 Aug 2015 21:45:05 +0000 KB Hello GeoDirectory,

Theme: GD Modern

I am using the Custom Form Field “File Upload” to place a link in the sidebar for a restaurants menu (PDF only). I get it to work no problem, I was wondering if it is easily possible to have a default link name show instead of the name of the file itself (and the added part of the name that GD adds on)? Something like “Click Here for Our Menu” vs 1235_geodir_menu_link_Test_Menu_Upload.pdf

Please see attached image as to what I am referring to if I did not explain very well.

I only changed the image to show “Click Here for Our Menu” while using browsers Inspect Element.

I thank you in advance for any help or information you can forward.

]]>
https://wpgeodirectory.com/support/topic/custom-form-field-file-upload-sidebar/#post-51058 <![CDATA[Reply To: Custom Form Field – File Upload (sidebar)]]> https://wpgeodirectory.com/support/topic/custom-form-field-file-upload-sidebar/#post-51058 Thu, 27 Aug 2015 16:26:28 +0000 Paolo Hi KB,

I’m looking into this with Stiofan, we wil llet you know asap.

Thanks for your patience,

]]>
https://wpgeodirectory.com/support/topic/custom-form-field-file-upload-sidebar/#post-51061 <![CDATA[Reply To: Custom Form Field – File Upload (sidebar)]]> https://wpgeodirectory.com/support/topic/custom-form-field-file-upload-sidebar/#post-51061 Thu, 27 Aug 2015 16:56:25 +0000 Paolo Hi,

please try this in your theme functions.php file :


// Replace 'menu' in "geodir_show_geodir_menu" with the html varibale of your custom field
add_filter("geodir_show_geodir_menu","myTheme_change_menu_title", 10,2);
function myTheme_change_menu_title($html, $variables_array){
  if($parts = explode('target="_blank">',$html)){
    $html = $parts[0].'target="_blank">Click Here for Our Menu</a></div></div>';
  }
return $html;
}

Let us know,

Thanks

]]>
https://wpgeodirectory.com/support/topic/custom-form-field-file-upload-sidebar/#post-51062 <![CDATA[Reply To: Custom Form Field – File Upload (sidebar)]]> https://wpgeodirectory.com/support/topic/custom-form-field-file-upload-sidebar/#post-51062 Thu, 27 Aug 2015 17:02:53 +0000 Paolo p.s. make sure to replace ‘menu’ in “geodir_show_geodir_menu” with the html varibale of your custom field…

]]>
https://wpgeodirectory.com/support/topic/custom-form-field-file-upload-sidebar/#post-51066 <![CDATA[Reply To: Custom Form Field – File Upload (sidebar)]]> https://wpgeodirectory.com/support/topic/custom-form-field-file-upload-sidebar/#post-51066 Thu, 27 Aug 2015 17:18:59 +0000 KB Thank you Paolo . . .

Exactly what I was looking for, worked beautiful.

Thank you for the quick response and support . . . GREAT!

]]>
https://wpgeodirectory.com/support/topic/custom-form-field-file-upload-sidebar/#post-51067 <![CDATA[Reply To: Custom Form Field – File Upload (sidebar)]]> https://wpgeodirectory.com/support/topic/custom-form-field-file-upload-sidebar/#post-51067 Thu, 27 Aug 2015 17:21:16 +0000 Paolo You are welcome 🙂 Thanks to Stiofan for the code snippet!

]]>
https://wpgeodirectory.com/support/topic/custom-form-field-file-upload-sidebar/#post-51068 <![CDATA[Reply To: Custom Form Field – File Upload (sidebar)]]> https://wpgeodirectory.com/support/topic/custom-form-field-file-upload-sidebar/#post-51068 Thu, 27 Aug 2015 17:23:27 +0000 KB Many Thanks Stiofan . . . Cheers!

]]>
https://wpgeodirectory.com/support/topic/custom-form-field-file-upload-sidebar/#post-51073 <![CDATA[Reply To: Custom Form Field – File Upload (sidebar)]]> https://wpgeodirectory.com/support/topic/custom-form-field-file-upload-sidebar/#post-51073 Thu, 27 Aug 2015 17:48:39 +0000 Paul I was subscribed to this for just that snippet

Will this be incorporated into the next release?

]]>
https://wpgeodirectory.com/support/topic/custom-form-field-file-upload-sidebar/#post-51075 <![CDATA[Reply To: Custom Form Field – File Upload (sidebar)]]> https://wpgeodirectory.com/support/topic/custom-form-field-file-upload-sidebar/#post-51075 Thu, 27 Aug 2015 17:52:43 +0000 Paolo Hi,

This is a snippet that can be added to your functions.php to modify the link anchor text of custom fields (between other things) using a built in GD hook.

It already works.

Thanks

]]>