Skip to content

Instantly share code, notes, and snippets.

@geckoseo
geckoseo / functions.php
Created October 29, 2018 13:58 — forked from rilwis/functions.php
Optimize BB for loading
<?php
add_action( 'wp_enqueue_scripts', function() {
wp_dequeue_style( 'font-awesome' );
wp_dequeue_script( 'jquery-magnificpopup' );
wp_dequeue_style( 'jquery-magnificpopup' );
wp_dequeue_script( 'jquery-waypoints' );
wp_dequeue_script( 'imagesloaded' );
wp_dequeue_script( 'jquery-throttle' );
<?php
/**
* *whitelabel* Beaver Builder
* Please support Beaver Builder by buying the product at wpbeaverbuilder.com
*/
class FLBuilderWhiteLabel {
public static function is_white_labeled() {
return true;
@geckoseo
geckoseo / README.md
Created June 27, 2017 21:52 — forked from barneycarroll/README.md
Lock and unlock a page's scroll position.

jquery.scrollLock.js

Useful for when a blocking user experience is needed (in my case, didn't want people unwittingly loosing their place by scrolling while a modal required their attention): $.scrollLock() locks the body in place, preventing scroll until it is unlocked.

// Locks the page if it's currently unlocked
$.scrollLock();

// ...or vice versa
// SmoothScroll for websites v1.2.1
// Licensed under the terms of the MIT license.
// People involved
// - Balazs Galambosi (maintainer)
// - Michael Herf (Pulse Algorithm)
(function(){
// Scroll Variables (tweakable)