Paolo
Forum Replies Created
-
AuthorPosts
-
ok, the best way to actually do this is to add the div facebook needs, via hook:
add_action( 'geodir_details_main_content', 'my_custom_action',35); function my_custom_action(){ echo '<div id="fb-root"></div>'; }Than add the script part in GD >> design >> scripts >> footer script
<script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_GB/sdk.js#xfbml=1&appId=1378194292506778&version=v2.3"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script>Let us know,
Thx
HI David,
I’ve asked the development team to have a look at your feedback and let us know their thoughts.
Thanks
What syntax error?
this should work.
Maybe try a more personalized function name…
add_action( 'geodir_details_main_content', 'my_facebook_sdk',35); function my_facebook_sdk(){echo '<div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_GB/sdk.js#xfbml=1&appId=1378194292506778&version=v2.3"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script>';}Let us know,
thanks
Hi,
seems to be working to me, I just changed the 100% width, because it makes it quite ugly when sticking.
Try clearing your browser cache.
Thanks
Hi,
that page is controlled by google. https://developers.google.com/custom-search/docs/ui#results
Thanks
March 31, 2015 at 11:41 pm in reply to: (bug?) Keeps defaulting local places, limited entries #35766Hi,
I see the maps with listings from all NZ with both Chrome and Firefox.
The reason why with one you are getting only Aukland is probably because you previously set a SESSION with location Auckland and now the website is showing only listings from that location.
Not having the location switcher in place, you can’t move back.
To add the location switcher you go to GD >> Design >> Navigation >> Show geodirectory navigation in selected menu locations and select a menu created in Appearance >> Menu, than go to MutiLocation and enable Show location switcher in menu.
Otherwsie you can use the shortcode: [gd_location_tab_switcher]
Thanks
Hi,
please see: https://wpgeodirectory.com/support/topic/adding-a-button-to-listings/#post-35225
Thanks
Link please?
Hi,
the slider seems to have problems in desktop view too.
I’ve flagged this for developers to fix asap.
Thanks
HI,
setting up paypal is super easy, just add your paypal merchant ID which is the email address used to register/login.
Thanks
hi,
being the old table corrupted the old prices in there where deleted.
You can re-add the new prices and it should no longer creates problems for you.
Let us know,
Thanks
In that case the code above added to your active theme functions.php will do it.
Thanks!
hi,
please check now and let us know.
Thanks
Hi Jakes,
there is a hook that let’s you add any custom content after any listings in both listings page and widgets because they sahe the same function, so it would show in both lists (main content area and sidebar).
That is geodir_after_listing_post_excerpt.
It is very easy to add the tags names with a function like this:
add_action('geodir_after_listing_post_excerpt' ,'geodir_my_new_listings_content'); function geodir_my_new_listings_content($tab_index) { if (geodir_is_page('listing')) { $post_details = geodir_get_post_info($entry['ID']); echo $post_details->post_tags; } }However adding the tags links as i believe you want, it much more complicated, because locations has to be taken into consideration to create the URLs, depending on which page the link is actually displayed.
In that case the function would be 20 times longer and I’ve tested for 10 minutes before giving up… Stiofan would be required to create something like that.
I’l lask him if he can have a look and provide a quick function to workaround this, but I can’t promise anything.
Thanks
info [at] wpgeodirectory.com
-
AuthorPosts