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
/* Smaller than standard 960 (devices and browsers) */ | |
@media (max-width: 959px) {} | |
/* Tablet Portrait size to standard 960 (devices and browsers) */ | |
@media (min-width: 768px) and (max-width: 959px) {} | |
/* All Mobile Sizes (devices and browser) */ | |
@media (max-width: 767px) {} | |
/* Mobile Landscape Size to Tablet Portrait (devices and browsers) */ |
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 | |
function add_parent_styles() { | |
wp_enqueue_style('parent-style', get_template_directory_uri().'/style.css'); | |
} | |
add_action('wp_enqueue_scripts', 'add_parent_styles'); |
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
#fancybox-left, #fancybox-right {position: fixed !important; visibility: visible !important;} | |
#fancybox-right span { left: auto; right: 20px; } | |
#fancybox-left span { left: 20px; } | |
#fancybox-close {position: fixed !important; top: 20px !important; right: 20px !important;} |
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
// Add custom link to WordPress menu | |
add_filter( 'wp_nav_menu_items', 'my_nav_menu_custom_link' ); | |
function my_nav_menu_custom_link($menu) { | |
// generate the link in a variable | |
$customLink = '<li class="menu-item"><a href="#">Custom Link Text</a></li>'; | |
// convert the standard menu to an array |
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
jQuery(document).ready(function($) { | |
// load form elements in vars for ease of use | |
var frm = $('#contact-form'); | |
var formMessages = $('#form-messages'); | |
var loadingAnimation = $('#loading-container'); | |
frm.submit(function (e) { |
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
## EXPIRES CACHING ## | |
# In apache, be sure to enable mod_headers and mod_expires | |
# sudo a2enmod headers | |
# sudo a2enmod expires | |
# | |
# Then restart apache | |
# service apache2 restart | |
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
// Put site into maintenance mode | |
function eastsideCode_maintenance_mode(){ | |
if(!current_user_can('edit_themes') || !is_user_logged_in()){ | |
wp_die('<h1 style="color:purple">Website under Maintenance</h1><br />We are performing scheduled maintenance, and will be back online shortly. If you think you've received this notice in error, please contact your website administrator. Thanks!'); | |
} | |
} | |
add_action('get_header', 'eastsideCode_maintenance_mode'); |
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
function wpb_add_google_fonts() { | |
wp_enqueue_style( 'wpb-google-fonts', 'http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,700italic,400,700,300', false ); | |
} | |
add_action( 'wp_enqueue_scripts', 'wpb_add_google_fonts' ); |
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
// remove the default css | |
add_action( 'wp_enqueue_scripts', 'remove_layer_slider_stylesheet'); | |
function remove_layer_slider_stylesheet() { | |
wp_dequeue_style( 'layerslider' ); | |
} | |
// load layer slider styles on the page |
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
/* | |
# Table of contents | |
# Normalize / reset | |
# Header | |
# Footer | |
# Menu | |
# Home | |
# Page and Post | |
# Page Specific Content |
OlderNewer