• Resolved just0nequestion

    (@just0nequestion)


    This is an awesome plugin! Thanks for developing and maintaining it!

    What I really dislike is the use of using google fonts and facebook sdk. In europe it’s not legal to use these US based services without opt in from the user.

    So if you want to get rid of 3rd party integrations like facebook, google fonts and fontawesome within the Poll Maker plugin just change the files accordingly:

    File /poll-maker/public/class-poll-maker-ays-public.php

    Find line:
    wp_enqueue_style('ays_poll_font_awesome', 'https://use.fontawesome.com/releases/v5.6.3/css/all.css', array(), '5.6.3', 'all');

    replace with:
    wp_enqueue_style('ays_poll_font_awesome', '//', array(), '5.6.3', 'all');

    find line:
    wp_enqueue_style('ays_poll_font_awesome', 'https://use.fontawesome.com/releases/v5.6.3/css/all.css', array(), '5.6.3', 'all');

    replace with:
    wp_enqueue_style('ays_poll_font_awesome', '//', array(), '5.6.3', 'all');

    File /poll-maker/public/js/poll-maker-ays-public.js

    Find line

    window.fbAsyncInit = function() {	
    	        FB.init({	
    	            appId: '1204514392893219',	
    	            xfbml: true,	
    	            version: 'v3.0'	
    	        });	
    	    };	
    	    (function(d, s, id) {	
    	        var js, fjs = d.getElementsByTagName(s)[0];	
    	        if (d.getElementById(id)) return;	
    	        js = d.createElement(s);	
    	        js.id = id;	
    	        js.src = 'connect.facebook.net/en_US/sdk.js';

    replace with:

    window.fbAsyncInit = function() {
    	        FB.init({
    	            appId: '',
    	            xfbml: true,
    	            version: 'v3.0'
    	        });
    	    };
    	    (function(d, s, id) {
    	        var js, fjs = d.getElementsByTagName(s)[0];
    	        if (d.getElementById(id)) return;
    	        js = d.createElement(s);
    	        js.id = id;
    	        js.src = '//';

    File: /poll-maker/public/css/poll-maker-ays-public.css

    Find line:
    @import url('https://fonts.googleapis.com/css?family=Roboto');
    Delete it!

    Find line (appears 2x times)
    font-family: 'Roboto', sans-serif;

    Find line:

    @font-face {	
    	    font-family: 'share-buttons';	
    	    src: url('https://cdn.rawgit.com/sunnysingh/share-buttons/v1.0.0/build/fonts/share-buttons.eot?gpra60');	
    	    src: url('https://cdn.rawgit.com/sunnysingh/share-buttons/v1.0.0/build/fonts/share-buttons.eot?#iefixgpra60') format('embedded-opentype'), url('https://cdn.rawgit.com/sunnysingh/share-buttons/v1.0.0/build/fonts/share-buttons.woff?gpra60') format('woff'), url('https://cdn.rawgit.com/sunnysingh/share-buttons/v1.0.0/build/fonts/share-buttons.ttf?gpra60') format('truetype'), url('https://cdn.rawgit.com/sunnysingh/share-buttons/v1.0.0/build/fonts/share-buttons.svg?gpra60#share-buttons') format('svg');	
    	    font-weight: normal;	
    	    font-style: normal;	
    	}

    replace with:

    @font-face {
    	    font-weight: normal;
    	    font-style: normal;
    	}

    You could even self host the fonts by changing their locations. However, to completely get rid of this stuff just follow the advise given above.

    I hope this is helpful to some people ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Ays Pro

    (@ays-pro)

    Hi Dear @just0nequestion ,

    Thank you for the topic.
    We sincerely appreciate the information and advice you have shared and value the insights and guidance you provide.

    Unfortunately, we can not just delete those code parts mentioned by you as we have thousands of active users. Our developers will do their best to find another solution to the case, which will be suitable and acceptable for all users including old ones, the new ones, the ones from Europe and all over the world.

    Thanks.

    Plugin Author Ays Pro

    (@ays-pro)

    Hi Dear @just0nequestion,

    Thank you for your patience.

    We’re excited to announce that a new update of the Poll Maker plugin has been released. It includes your requested points as well.

    Thank you.

    Plugin Author Ays Pro

    (@ays-pro)

    Hi Dear @just0nequestion,

    Thank you for your patience.

    We’re excited to announce that a new update of the Poll Maker plugin has been released. It includes your requested points as well.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Get rid of 3rd party includes (google font rawgit facebook stuff) in Poll Maker’ is closed to new replies.