This file contains hidden or 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
.div { | |
box-shadow: 0 1px 2px rgba(0,0,0,0.1); | |
transition: box-shadow 0.3s ease-in-out; | |
} | |
.div:hover { | |
box-shadow: 0 0px 30px rgba(13,115,142,0.2); | |
} |
This file contains hidden or 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 | |
/* Do not inlude the first 4 lines of this code. Only copy the code below this line. This should be | |
placed in your main functions.php to enable this globally, or on specific page templates */ | |
//* Allow shortcodes to execute in widget areas | |
add_filter('widget_text', 'do_shortcode'); | |
// Register function to allow shortcodes | |
function add_iframe($atts) { | |
extract(shortcode_atts(array( |
This file contains hidden or 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or 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
// Load Font Awesome | |
add_action( 'wp_enqueue_scripts', 'enqueue_font_awesome' ); | |
function enqueue_font_awesome() { | |
wp_enqueue_style( 'font-awesome', '//maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css' ); | |
} |
This file contains hidden or 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
$(".to-top-btn").click( function(){ | |
$("html, body").animate({ scrollTop: 0 }, "slow"); | |
}); |
This file contains hidden or 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
.class-name { | |
background: #ff6319; | |
background: -moz-linear-gradient(-45deg, #ff6319 0%, #ffa719 100%); | |
background: -webkit-linear-gradient(-45deg, #ff6319 0%, #ffa719 100%); | |
background: linear-gradient(135deg, #ff6319 0%, #ffa719 100%); | |
opacity: .93; | |
content: ""; | |
display: block; | |
position: absolute; | |
top: 0; |
This file contains hidden or 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 | |
// Set default color and store in function | |
function maker_customizer_get_default_primary_color() { | |
return '#57e5ae'; | |
} | |
// Hooks into customize_register to add the custom code we'll need | |
add_action( 'customize_register', 'maker_customizer_register' ); |
This file contains hidden or 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
<script> | |
(function($) { | |
function matchHeight() { | |
function setHeight(elementH) { | |
var maxH = 0; | |
var len = $(elementH).length; | |
$(elementH).css("min-height", ""); |