Settings icon

This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 2 years, 2 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #27784
    ColeValleyGirl05
    ColeValleyGirl05
    Participant

    Is it possible to configure the Settings icon to display the settings on hover?

    #27789
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    I’m afraid that is not possible via settings. It is however possible via custom coding.

    Try adding this custom code to the functions.php in your theme/child theme directory. Before editing, please make sure to have a full site back-up just in case!

    add_action('wp_footer', 'asp_open_settings_on_hover');
    function asp_open_settings_on_hover() {
    	?>
    	<script>
    	jQuery(function($){
    		$('.prosettings').on('hover', function() {
    			ASP.api(
    				$(this).closest('.asp_w').data('id'),
    				$(this).closest('.asp_w').data('instance'), 
    				'toggleSettings', 'show'
    			);
    		});
    	});
    	</script>
    	<?php
    }

    Please note that I cannot guarantee this is going to work in all cases correctly.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #27792
    ColeValleyGirl05
    ColeValleyGirl05
    Participant

    Thank you — that works for me.

    #27793
    Ernest Marcinko
    Ernest Marcinko
    Keymaster
    You cannot access this content. Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.