"place title"

This topic contains 11 replies, has 2 voices, and was last updated by  Alex Rollin 6 years, 3 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #415677

    myusername
    Expired Member
    Post count: 47

    Can someone please advise how to change the field “place title” to say somethign else?

    Thanks!

    #415683

    myusername
    Expired Member
    Post count: 47

    sorry, “place description” what I am trying to do is change those words, and under the field, have a little blurb, like in the other fields..

    #415704

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    please have a look at this page for more information:
    https://wpgeodirectory.com/docs/faqs/can-i-change-place-title-and-place-description/

    #415798

    myusername
    Expired Member
    Post count: 47

    that doesn’t really help.. How can I have the “place title” and “place Description” as seen in the image below?

    Reason being, I want to be able to allow these sections to be shown in the map bubble.

    Thank you!

    #415881

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    With translation you can change the text of Place title and place description.

    https://wpgeodirectory.com/docs/translate-core/

    Title and description refer to the basic WP post fields, and are not custom fields and don’t show in that list.

    For how to add some field instructions to the title and description, and for how to display the description in the map bubble, I will refer your question for the developers.

    Thanks for your patience while they look into it.

    #415882

    Alex Rollin
    Moderator
    Post count: 27815
    This reply has been marked as private.
    #415904

    myusername
    Expired Member
    Post count: 47

    Can someone advise on the steps to set this up: where do I place this code? on what file?

    https://wpgeodirectory.com/support/topic/profile-tab-in-bubble-map/

    I understand I need to add this Hook:

    
    
    /**
                 * Filter to change infowindow html
                 *
                 * You can use this filter to change infowindow html.
                 *
                 * @since 1.0.0
                 * @package GeoDirectory
                 * @param string $html Infowindow html.
                 * @param object $postinfo_obj The Post object.
                 * @param bool|string $post_preview Is this a post preview?
                 */
                $html = apply_filters('geodir_custom_infowindow_html', $html, $postinfo_obj, $post_preview);
    #415909

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    We recommend you use the code snippets plugin to manage your customizations

    https://wpgeodirectory.com/docs/useful-plugins/#snippets

    However, the developers will have to get back to you about the map bubble and add listing page customizations.

    Thanks for your patience while they look into it.

    #415949

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    a note about helper text on the description field.

    There is text, but it only shows if the listing is being added is added with a package with a listing description field character count limitation. You will need to translate the Pricing Manager Addon to change the text. You can find an original string example here:

    “For description you can use up to %d characters only for this package.”

    https://wpgeodirectory.com/translate/projects/geodir_payments/pt-br/br/?filters%5Bstatus%5D=either&filters%5Boriginal_id%5D=1376&filters%5Btranslation_id%5D=108813

    To apply the change you want, you can edit this text in the translation, and then enable the listing description limit in GD > Priecs and Payments > Package > Apply description limit?

    Still working on helper text for title and map bubble show description.

    #416181

    myusername
    Expired Member
    Post count: 47

    ok, thanks so much!

    #416203

    Alex Rollin
    Moderator
    Post count: 27815

    Please check your settings at:

    GD > Design > Listing > Description word limit

    We are still checking on display in the Map Bubble

    About the help text for the title field, I conferred with the team and this is a customization, but we are looking to make it easier in future versions and thank you for bringing it to our attention.

    #416212

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    you can use the following snippet to display the description in the map bubble

    
    
    
    function _gd_custom_description_on_map_bubble( $post_ID, $gd_post, $post_preview = false ) { 
    	global $post;
    	$old_post = $post;
    	$post = geodir_get_post_info($post_ID);
    	$char_length = 40; // char limit
    	$post->post_excerpt = $post->post_content;
    	$content_out = geodir_max_excerpt( $char_length );
    	if ( ! empty( $content_out ) ) {
    		echo '<div class="geodir_more_info gd-post-desc"><p>' . $content_out . '</p></div>';
    	}
    	$post = $old_post;
    }
    add_action( 'geodir_infowindow_meta_before', '_gd_custom_description_on_map_bubble', 10, 3 );
    

    To learn more about snippets read:

    https://wpgeodirectory.com/docs/customizing-your-style/

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

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

Open Support Ticket