Original code to show user rating in user.js
//SHOW USER RATING
$('body').on('click', 'a.show-rating', function(e) {
e.preventDefault();
$.get(
$(this).attr('data-ajax-url'),
function(response) {
$('#ur-fancy-dialog').html($(response).contents().parent('.show-rating-wrap').html()).removeClass('ur-fancy-add').addClass('ur-fancy-show').addClass('show-rating').removeClass('new-rating');
$('#ur-fancy-dialog').fadeIn(200).css('top', ($(document).scrollTop() + Math.round($(window).height()/20)) + 'px');
$('#ur-fancy-overlay').fadeIn(200);
}
);
});
For some reason I need to user in such way:
$(".show-rating").click(function(e) {
e.preventDefault();
var height = 540;
var url = $(this).attr('data-ajax-url');
if (!!$.prototype.fancybox) {
$("a.show-rating").fancybox({
'padding': 0,
'width': 400,
'height': height,
'scrolling': 'yes',
'wrapCSS': '',
'closeBtn': true,
'type': 'iframe',
'href': url
});
}
});
But in my way in pop up window I can see contact from page too
Do you know how to achieve and hide this contact.php
it is getting contact page url link to create this staff in function.php
May be I can insert something i contact.php ?