Skip to content

Instantly share code, notes, and snippets.

View alexdeborba's full-sized avatar
:octocat:
DevOps

Alex de Borba alexdeborba

:octocat:
DevOps
View GitHub Profile
<script type="text/javascript">
var gptadslots = [];
var googletag = googletag || {};
googletag.cmd = googletag.cmd || [];
(function() {
var gads = document.createElement('script');
gads.async = true;
gads.type = "text/javascript";
var useSSL = "https:" == document.location.protocol;
gads.src = (useSSL ? "https:" : "http:") + "//www.googletagservices.com/tag/js/gpt.js";
TypeError: this.activateMode is not a function
at https://www.atmostfear-entertainment.com/wp-admin/load-scripts.php?c=0&amp;load%5B%5D=hoverIntent,common,admin-bar,heartbeat,jquery-ui-mouse,jquery-ui-sortable,postbox,backbone,wp-backbone,media-models,wp-plupload,&amp;load%5B%5D=wp-mediaelement,wp-api-request,media-views&amp;ver=5.0.3:35:24754
at s (https://www.atmostfear-entertainment.com/wp-content/plugins/atomic-blocks/dist/blocks.build.js?ver=1550091284:1:548907)
at Function.ss (https://www.atmostfear-entertainment.com/wp-content/plugins/atomic-blocks/dist/blocks.build.js?ver=1550091284:1:591312)
at n._createModes (https://www.atmostfear-entertainment.com/wp-admin/load-scripts.php?c=0&amp;load%5B%5D=hoverIntent,common,admin-bar,heartbeat,jquery-ui-mouse,jquery-ui-sortable,postbox,backbone,wp-backbone,media-models,wp-plupload,&amp;load%5B%5D=wp-mediaelement,wp-api-request,media-views&amp;ver=5.0.3:35:24714)
at n.initialize (https://www.atmostfear-entertainment.com/wp-admin/load-scripts.
// Remove Emojis
function ava_disable_emojis()
{
remove_action('wp_head', 'print_emoji_detection_script', 7);
remove_action('admin_print_scripts', 'print_emoji_detection_script');
remove_action('wp_print_styles', 'print_emoji_styles');
remove_action('admin_print_styles', 'print_emoji_styles');
remove_filter('the_content_feed', 'wp_staticize_emoji');
remove_filter('comment_text_rss', 'wp_staticize_emoji');
remove_filter('wp_mail', 'wp_staticize_emoji_for_email');
@alexdeborba
alexdeborba / gist:cbeb262deec58a0871d652e77fc8945f
Created January 17, 2017 04:33
Load Facebook Like Box Asynchronously
<?php
function fb_js() {
if(self::$script_loaded == 1) return;
self::$script_loaded = 1;
echo '
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.async = true;
add_filter('wp_mail_from','custom_wp_mail_from');
function custom_wp_mail_from($email) {
return 'mail@alexdeborba.com';
}
AddDefaultCharset UTF-8
<IfModule mod_mime.c>
AddCharset UTF-8 .atom .css .js .json .rss .vtt .xml
</IfModule>
<IfModule mod_headers.c>
Header unset ETag
</IfModule>
FileETag None