Get rid of 3rd party includes (google font rawgit facebook stuff) in Poll Maker
-
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 ??
- The topic ‘Get rid of 3rd party includes (google font rawgit facebook stuff) in Poll Maker’ is closed to new replies.