Hi,
in child-theme/assets/js I created childapp.js with:
j = jQuery.noConflict();
j(document).ready(function () {
var map = j(‘.geodir-sidebar-wrap section.geodir-map-listing-page’);
map.before(‘<div class=”top-send-inquiry” style=”display:flex; width:auto;”>Send Enquiry</div>’);
j(‘a.b_send_inquiry’).css(‘display’, ‘none’);
j(‘.geodir-sidebar-wrap .geodir-i-email’).first().contents().filter(function() {return this.nodeType == 3;}).remove();
map.after(j(‘.geodir-sidebar-wrap div.geodir-details-sidebar-user-links’));
map.after(j(‘.geodir-sidebar-wrap div.geodir-details-sidebar-sharethis’));
map.after(j(‘.geodir-sidebar-wrap div.geodir-details-sidebar-social-sharing’));
map.after(j(‘.geodir-sidebar-wrap div.geodir-details-sidebar-rating’));
map.after(j(‘.geodir-sidebar-wrap div.geodir-details-sidebar-listing-info’));
j(‘div.top-send-inquiry’).click(function () {
j(‘a.b_send_inquiry’).click();
});
});
Thanks!