I use the Social Sharing code on a property details page, and the code works well. I have created a second version of the page, which is rendered in a div on a search results page. I would like to use the social sharing code on this page as well, but the social sharing icons will not render if the div is populated after the page load has completed. How can I accomplish this?
Answers
<div class="oas_box oas_box_count_v"> <span class="oas_btn oas_btn_facebook_like_but" title="Send to Facebook"></span> <span class="oas_btn oas_btn_twitter_tweet_but" title="Send to Twitter">/span> </div>
You can trigger the rending like this:
<script type="text/javascript"> var _oneall = _oneall || []; _oneall.push(['social_sharing', 'do_render_element', 'oas_box']); </script>