Skip to content

Instantly share code, notes, and snippets.

View heyfletch's full-sized avatar
🏠
Working from home

Joe Fletcher heyfletch

🏠
Working from home
View GitHub Profile
//
// Package Name: DAT
// Package URI: https://www.dat.com
// Subpackage: Stylesheet
// Author: Exemplifi
// Author URI: https://www.dat.com
// Description: Elementor fixes
// Version: 1.0
// License: Creative Commons 3.0 Attribution
// License URI: https://creativecommons.org/licenses/by/3.0/us/
<?php
/**
* @package elementor-extend.php
* @subpackage datdev
* @author Exemplifi
* @created 29/10/20 - 6:30 PM
* @license Creative Commons 3.0 Attribution
* @licenseurl https://creativecommons.org/licenses/by/3.0/us/
* @desc Enter description
* @link http://www.dat.com
:root {
--body-font-family: Sequel Sans, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
--heading-font-family: Sequel Sans, Times New Roman, Times, Times CY;
--heading-font-weight: 500;
--scale-factor-xs: 0.5;
--scale-factor-sm: 0.75;
--scale-factor-md: 0.8;
--scale-factor-lg: 1;
--scale-factor-xl: 1;
--vertical-margin-xs: 0.5rem;
@nntrn
nntrn / espn-api-list.md
Last active May 8, 2024 17:50
List of nfl api endpoints from espn

List of NFL API Endpoints

This page has been updated a lot in the past 3 years. Older revisions you might like more than this one:

  • June 2021 - list of endpoints for other sports/leagues (i.e. basketball, baseball, lacrosse, rugby)
  • August 2021 - get historical fantasy league data
  • September 2021 - list of endpoints in plain text
  • May 2023 - collapsed endpoint response examples

Additional Resources

/*
*
* Start of disabling Search Functionality, in case the request blocker is not active
*
* see also: https://instance-factory.com/?p=1706#disableSearch
*/
function ifb_filter_query($query)
{
if (is_search()) {
@deckerweb
deckerweb / astra-remove-metaboxes-for-nonadmins.php
Last active June 10, 2021 06:07
Remove Meta Boxes on Post & Page Edit Screens from "Astra" Theme and "Astra Pro" Plugin for users who are not Administrators, so Editors and below. Inspired by user question: https://www.facebook.com/groups/wpastra/permalink/367143130421624/ -- below Code Snippet should go into "Code Snippets" plugin at best (please avoid functions.php)!
<?php
/** Do NOT include the opening php tag */
add_action( 'do_meta_boxes', 'ddw_remove_astra_metaboxes_for_non_admins' );
/**
* Remove Astra settings meta box for users that are not administrators
* Inspired by: https://www.facebook.com/groups/wpastra/permalink/367143130421624/?comment_id=367167440419193&comment_tracking=%7B%22tn%22%3A%22R1%22%7D
*
* @author David Decker - DECKERWEB
@lukecav
lukecav / functions.php
Created January 10, 2018 03:22
Disable Elementor overview dashboard widget in WordPress
function disable_elementor_dashboard_overview_widget() {
remove_meta_box( 'e-dashboard-overview', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'disable_elementor_dashboard_overview_widget', 40);
@daltonrooney
daltonrooney / acf-migrate-db-pro.php
Last active October 27, 2020 04:34
Prevent ACF Pro license key from being overwritten during WP Migrate DB Pro migration
<?php
/*
Based on http://github.com/deliciousbrains/wp-migrate-db-pro-tweaks
*/
class ACF_WP_Migrate_DB_Pro_Tweaks {
function __construct() {
add_filter( 'wpmdb_preserved_options', array( $this, 'preserved_options' ) );
}
@eversionsystems
eversionsystems / woocommerce-ajax-checkout-spinner.css
Last active March 27, 2023 11:49
WooCommerce Change AJAX Spinner Gif On Checkout
/*
* Custom AJAX spinner on WooCommerce checkout
* The class used to load the overlay is .blockUI .blockOverlay
* The class used to load the spinner is .woocommerce .loader:before
*
*/
.woocommerce .blockUI.blockOverlay:before,.woocommerce .loader:before {
height: 3em;
width: 3em;
position: absolute;
<?php
/*
Plugin Name: WPMDB Pro Migration Complete Notifications
Plugin URI: http://deliciousbrains.com
Description: Get notified when a migration completes
Author: Delicious Brains
Version: 0.0
Author URI: http://deliciousbrains.com
*/