• I want the loading gif to be at center when loading.
    (vote loading gif, view results loading gif, Back to top loading gif)

    vote and back to top gif are right now start at the left postion and view results loading gif starts at right postition. I want them center.

    https://ww.wp.xz.cn/plugins/yop-poll/

Viewing 1 replies (of 1 total)
  • Plugin Author YOP

    (@yourownprogrammer)

    Hi imransilvake,

    For the Back to vote gif edit js/yop-poll-public.js file and in yop_poll_back_to_vote function replace

    jQuery('#yop_poll_back_to_vote_loading_img-'+ poll_id + unique_id ).css( 'border', 'none' ); with

    jQuery('#yop_poll_back_to_vote_loading_img-'+ poll_id + unique_id ).css( {'border': 'none','display': 'block','margin-left': 'auto','margin-right': 'auto'} );

    For the vote loading gif edit js/yop-poll-public.js and in yop_poll_show_loading function, after the line below

    var target_loading_image = document.createElement('img'); add

    jQuery(target_loading_image).css('margin-left','40%');

    For the view results gif edit js/yop-poll-public.js and in yop_poll_view_results function, after

    jQuery('#yop_poll_result_link_loading_img-'+ poll_id + unique_id ).css( 'border', 'none' );

    add

    jQuery( result_link_loading_image).css(
            'margin-right', '70%');
        jQuery( result_link_loading_image).css(
            'margin-top', '22px');

    Let us know if you need more help.

    Regards,

    YOP Team

Viewing 1 replies (of 1 total)

The topic ‘Loading image at center’ is closed to new replies.