This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: regarding autopopular on click

#44558
Ernest MarcinkoErnest Marcinko
Keymaster

Hi,

Thank you for the kind words!

1. Theoretically possible, but only via custom coding and the autopopulate must be disabled. You can try the code below, but I can’t promise it will work in every case as it should:

add_action('wp_footer', 'asp_add_footer_script', 99999);
function asp_add_footer_script() {
	?>
	<script>
	jQuery(function($){
		jQuery('input.orig').one('click', function(){
			ASP.api(jQuery(this).closest('.asp_m').data('id'), 
					jQuery(this).closest('.asp_m').data('instance'),
					'searchFor', '');
		});
	});
	</script>
	<?php
}

2. If you have a HTML code ready for the icon, then you could use the advanced title/content fields feature. It supports HTML, so you could add the icon to the title or the content fields.