With last update the new mobile atribute options looks very nice. Will be cool if hidded information is included and no indexed in google for mobile
Please send more details, do you mean the “reveal on click” functionality? You can try customizing the attribute display format to ask Google not to index this part of the page, there seem to be a few ways Tell Google to Not Index Certain Parts of Your Page | Perishable Press
Yes, but if i tell google to no index i got issues also for listings , so hide and reveal mobile number will be cool option
Thanks, we’ll consider adding this feature. Setting noindex may be possible for just a part of the page (instead of excluding the whole URL), but I can’t say for sure.
Thanks, Ihor
Its posible only if u make new pages from phone numbers. i wil weit for the update
Hi Nikolay, this feature is actually already available, but it requires the paid “Memberships” addon - see this (short) video:
hope this helps,
regards Karen
Hi Karen, does this plugin allow to obfuscate the phone number without requiring any payment or login (reveal for free) ? thanks
May be this code will help you:
// Wrap each phone number in the ad in a span with a unique class
document.querySelectorAll('.hp-listing__attribute--phone').forEach(function(phone) {
const phoneText = phone.textContent;
phone.innerHTML = '<span class="hidden-phone" rel="nofollow">' + phoneText + '</span><button class="show-phone-button" rel="nofollow">Show Phone</button>';
});
// Add event handlers for "Show Phone" buttons
document.querySelectorAll('.show-phone-button').forEach(function(button) {
button.addEventListener('click', function() {
const phone = this.previousSibling;
phone.classList.remove('hidden-phone');
button.remove();
});
});
and css for this:
.hidden-phone {
display: none;
}
.show-phone-button {
background-color: #05abff;
color: #fff;
border: none;
border-radius: 3px;
padding: 12px 0px;
cursor: pointer;
font-size: 1.1rem;
width: 100%;
}