Add Front End Descriptions for "Business Owner/Associate" and "[CPT] Title"
This topic contains 8 replies, has 4 voices, and was last updated by Giri 7 years, 8 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: description, frontend description
-
AuthorPosts
-
March 16, 2017 at 2:20 am #367622
I’ve found where I can change most of the front-end descriptions for all of the custom fields for a client filling out a new listing form.
There are a couple though at the very top, that I can’t seem to find where I can add/change them.
ENTER LISTING DETAILS:
1) Business Owner/Associate?* — Yes/No (I may have changed this wording from default in my language files)2) [CPT] Title* (the main listing name or business name)
I know these seem quite obvious to those very familiar with GeoDirectory, but, I am finding that my new clients filling out the form are baffled by these two questions, and I would love a good sentence or so under the answer “fields” to explain what these mean exactly.
Thanks!
CurtisMarch 16, 2017 at 6:12 am #367631Hi there,
Let me try to answer your questions accordingly.
#1 To change business owner text, you will need to edit the text string in the translation file of the claim listing add-on:
http://docs.wpgeodirectory.com/translate-core/
https://wpgeodirectory.com/docs/translating-addons/
#2 Not sure what you mean by this, have you tried configuring the names using the “Custom Post type” addon
Thanks
March 16, 2017 at 12:36 pm #367682#2 Have a look at https://wpgeodirectory.com/docs/faqs/can-i-change-place-title-and-place-description/
Thanks
March 16, 2017 at 4:15 pm #367783Kor & Guust,
Thanks guys. After looking over the docs you linked for me to review, I (still) can’t seem to find the areas in the language files to replace with the text descriptions I’d like to add. Maybe it’s because there currently isn’t any text at all there as front-end descriptions, so I can’t easily do a “find” and “replace” kind of search process there in the .po file. Almost every other field in the listing signup forms already have front-end descriptions. There are just a few (at the top) that don’t have them to help people to understand what we’re asking of them.
I’m attaching a screenshot with the text areas for the “front-end descriptions” areas labeled in pink to be more clear.
For example, under “Business Owner/Associate?” I’d love to be able to add something like:
“If you’re the owner of this company select Yes. If not, select No and this listing will still be published and later the owner of the company can claim it for themselves.”And, I didn’t mention it before, but for the “Import Details from Social”, I think this is quite confusing to non-techie business owners. I would like to add text underneath this area like:
“Save time by pasting in your Facebook/Yelp business page URL, and a portion of the fields below will automatically be imported and filled in for you.”Are these “pink” front-end description fields accessible in the .po files? If so, do you know specifically which “source text” areas I am to change?
Thanks much!
CurtisMarch 16, 2017 at 10:41 pm #367891Look at the images for an example of how to achieve what you want.
An alternative is to add explanations in the sidebar.I don’t think there are filters available for the “pink” areas in your image. I’ll get Giri to look at that, he knows what filters are available.
Thanks
March 17, 2017 at 11:26 am #367963Hi you can use this hook to add description of Business Owner field.
add_action('geodir_before_main_form_fields' , 'geodir_add_business_owner_desc', 2); function geodir_add_business_owner_desc() { ?> <p> If you’re the owner of this company select Yes. If not, select No and this listing will still be published and later the owner of the company can claim it for themselves. </p> <?php }
For import details use the following code
add_action('geodir_before_detail_fields' , 'geodir_add_import_details_desc', 4); function geodir_add_import_details_desc() { ?> <p> Save time by pasting in your Facebook/Yelp business page URL, and a portion of the fields below will automatically be imported and filled in for you. </p> <?php }
March 17, 2017 at 4:50 pm #368130Guust, (or Guest as my spellcheck insists I call you)
Excellent and creative idea. I hadn’t thought of that as a workaround — possibly because I wasn’t aware (I think) that you could use html code in the translation files. I’m new to using them.
If Giri hadn’t just posted a way I can get the text to appear below the form field, I would have gone with your suggestion.
Thank you!
March 17, 2017 at 4:54 pm #368131Thanks Giri!
I just gotta learn how to use hooks. Seems like a fair portion of my requests end up with a solution using hooks. 😉
[what you suggested] worked perfectly!
And I replaced the “p’s” with “span” and the class of “geodir_message_note” and I was able to get consistent formatting with the rest of my signup form.
Bravo!
March 17, 2017 at 5:24 pm #368136Glad you made it work. 🙂
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket