Ian Butler
Forum Replies Created
-
AuthorPosts
-
Thanks Simone
Ah I see. I thought it would appear in the add_listing form.
Is there a filter I can use to allow the use of HTML in the Custom Fields text boxes?
Something like this:
add_filter('xxxxxxxx', 'change_custom_field', 10, 3); function change_custom_field($title, $instance, $wid){ return $title = str_replace('Custom Label', ' <i class="fa fa-info"></i>', $title); }
Thanks Simone!
No I want the page title to read ‘List an Attraction’ rather than ‘List an Place’
Thanks
Hi Simone,
I’ve done that but it hasn’t worked – I was sure this was controlled in the Dashboard somewhere?
This reply has been marked as private.Yes. Checked on multiple browsers with cleared cache
Thanks for the quick response!
No it’s to enter some text between fields
Thanks Paolo!
I’ve also modified the following function from the events add-on gdevents_template_functions.php
function geodir_event_show_event_fields_html($recuring_data = array())
It doesn’t seem to have an add_action associated with it…..
What would be the process of moving that into functions?
So I’ve had to reconfigure the plugin settings after the update and Events is now working again. Is there a way to stop this happening again?
Thanks
I’m now getting this error after updating the plugins
Fatal error: Cannot redeclare geodir_action_add_listing_page_title() (previously declared in /home/ibutler/public_html/wp-content/plugins/geodirectory/geodirectory_template_actions.php:1149) in /home/ibutler/public_html/wp-content/themes/zocialise/functions.php on line 410
Is there somewhere I can move geodirectory_template_actions.php to make it safe from updates?
Thanks Paolo,
Only the Home map seems to work for that page. I changed it to Listing map and nothing shows up.
Would you be able to take a look in the back end for me – I’ve obviously configured something wrong.
Ian
Thanks Stiofan,
I tried enabling neighborhoods, but the HTML has display:none attached to it..?
<div id="geodir_post_neighbourhood_row" class="geodir_form_row geodir_location_add_listing_neighbourhood_chosen_container clearfix" style="display: none;"> <label>Neighbourhood</label> <div class="geodir_location_add_listing_neighbourhood_chosen_div" style="width: 57%; float: left; display: none;"> <select class="chosen_select" option-ajaxchosen="false" name="post_neighbourhood" style="display: none;"> </select> <div class="geodir-chosen-container geodir-chosen-container-single geodir-chosen-container-single-nosearch" style="width: 0px;" title=""> <a class="chosen-single chosen-default" tabindex="-1"> <span>Select an Option</span> <div> <b></b> </div> </a> <div class="chosen-drop"> <div class="chosen-search"> <input type="text" autocomplete="off" readonly=""> </div> <div class="chosen-results"></div> </div> </div> </div> <span class="geodir_message_note">Click on above field and type to filter list</span> </div>
When I choose an address the html displays briefly, a loading bar appears, then it disappears and no neighborhood has been entered
Okay thanks, in that case can you point me in the right direction for which files handle the Google Maps API.
Using their example it IS possible to generate a street address:
https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete-addressform
However GeoDirectory isn’t pulling all the info through. For example, when entering Chester Zoo, Google suggests: Chester Zoo, Upton-by-Chester, Chester, United Kingdom. The section in bold, the street address isn’t populated in the fields below, which means front end users aren’t getting the correct address.
I’ve looked in geodirectory_template_actions.php where I can see the add listing_form hook but cant see anything related to address or Google Maps.
Thanks again for your help
-
AuthorPosts