This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var | |
// NAV | |
navbutton = $('.menu-toggle'), | |
navWrap = $('.main-nav-wrapper'), | |
navmenu = $('.main-nav'), | |
servicemenu = $('.service-menu'), | |
// WATCHER | |
watcher = window.matchMedia("(max-width: 1179px)"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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;} |
NewerOlder