Add ‘Click to Show’ phone number button on PremiumPress Directory/Classified Themes

This will add a button Click to Show on Listing details table to show Phone Number

Add this to Theme’s Custom Javascript wp_footer section

[javascript]
<script>
jQuery(‘#TableCustomFieldsBig .val_phone a’).hide();
jQuery(‘#TableCustomFieldsBig .val_phone’).append(‘<span class="btn btn-primary" onclick="jQuery(this).hide();jQuery(this).parent().find(\’a\’).show();">Click to Show</span>’);
</script>
[/javascript]

Demo:

Website Link Visit Link Here
Phone Number 123-456-789Click to Show
Country India
State/Province West Bengal
City Atialdanga
Spread the love