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, 7 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #367622

    Curtis
    Expired Member
    Post count: 23

    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!
    Curtis

    #367631

    Kor
    Moderator
    Post count: 16516

    Hi 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

    #367682

    Guust
    Moderator
    Post count: 29970
    #367783

    Curtis
    Expired Member
    Post count: 23

    Kor & 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!
    Curtis

    #367891

    Guust
    Moderator
    Post count: 29970

    Look 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

    #367963

    Giri
    Expired Member
    Post count: 3155

    Hi 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
    }
    #368130

    Curtis
    Expired Member
    Post count: 23

    Guust, (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!

    #368131

    Curtis
    Expired Member
    Post count: 23

    Thanks 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!

    #368136

    Giri
    Expired Member
    Post count: 3155

    Glad you made it work. 🙂

Viewing 9 posts - 1 through 9 (of 9 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount