Skip to content

Instantly share code, notes, and snippets.

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

Dustin Leer dustinleer

🏠
Working from home
View GitHub Profile
@nroca
nroca / gist:511ef1d287ba7121f596
Created October 9, 2014 05:39
ACF Options Page (Icon/Position)
// http://support.advancedcustomfields.com/forums/topic/change-menu-position-of-options-page/
acf_add_options_page( array(
'page_title' => 'Home Page Sliders',
'menu_title' => 'Sliders',
'menu_slug' => 'home-page-sliders',
'capability' => 'edit_posts',
'icon_url' => 'dashicons-images-alt2',
'position' => 7
@dustinleer
dustinleer / script-file.js
Last active September 17, 2021 14:12
Moving Nav Items
var
// NAV
navbutton = $('.menu-toggle'),
navWrap = $('.main-nav-wrapper'),
navmenu = $('.main-nav'),
servicemenu = $('.service-menu'),
// WATCHER
watcher = window.matchMedia("(max-width: 1179px)");
@srikat
srikat / functions.php
Last active July 20, 2021 18:11
How to set up smooth scrolling for hash links in WordPress. https://sridharkatakam.com/set-smooth-scrolling-hash-links/
// Enqueue site-wide scripts
add_action( 'wp_enqueue_scripts', 'sk_enqueue_scripts' );
function sk_enqueue_scripts() {
wp_enqueue_script( 'global', get_stylesheet_directory_uri() . '/js/global.js', array( 'jquery' ), '', true );
}
@georgestephanis
georgestephanis / login_page_mods.php
Created September 5, 2012 16:58
Login page mods for Dustin
<?php
add_action( 'login_head', 'my_login_head' );
function my_login_head(){
?>
<style>
html,body.login {background:#222;}
.login h1 a {background-image:url(<?php echo get_stylesheet_directory_uri() ?>/img/logo.png);}
.login form {box-shadow:none;}
.login #nav, .login #backtoblog {text-shadow:none;}