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
<div class="container"> | |
<div class="item">item</div> | |
<div class="item">item</div> | |
<div class="item">item</div> | |
<div class="item">item</div> | |
<div class="item">item</div> | |
<div class="item">item</div> | |
<div class="item">item</div> | |
<div class="item">item</div> | |
<div class="item">item</div> |
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
// 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 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
/** | |
* Filter the genesis_seo_site_title function to use an image for the logo instead of a background image | |
* | |
* The genesis_seo_site_title function is located in genesis/lib/structure/header.php | |
* @link http://blackhillswebworks.com/?p=4144 | |
* | |
*/ | |
add_filter( 'genesis_seo_title', 'bhww_filter_genesis_seo_site_title', 10, 2 ); |
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 include_page($path) { | |
$post = get_page_by_path($path); | |
$content = apply_filters('the_content', $post->post_content); | |
echo $content; | |
} |
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
.sidebar .widget-title:before { | |
border-bottom: 15px solid #005D87; | |
border-left: 20px solid rgba(0, 0, 0, 0); | |
content: ""; | |
display: block; | |
height: 0; | |
left: 0; | |
position: absolute; | |
top: -15px; | |
width: 0; |
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
.morph1 { | |
background: url(/wp-content/uploads/2014/01/but-webdesign-01.png); | |
-webkit-transition: all 0.5s ease; | |
-moz-transition: all 0.5s ease; | |
-o-transition: all 0.5s ease; | |
-ms-transition: all 0.5s ease; | |
transition: all 0.5s ease; | |
} | |
.morph1:hover { |
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_action( 'wp_enqueue_scripts', 'enqueue_dev_style' ); | |
/** | |
* Enqueue development css file which will be in uploads > themes > dynamik/gen root folder. | |
*/ | |
function enqueue_dev_style() | |
{ | |
wp_enqueue_script( 'dev', dynamik_get_stylesheet_location( 'url' ) . 'dev.js', array( 'jquery' ), CHILD_THEME_VERSION, true ); | |
wp_enqueue_style( 'dev', dynamik_get_stylesheet_location( 'url' ) . 'dev.css', CHILD_THEME_VERSION, 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
//* Remove the header right widget area in functions.php | |
unregister_sidebar( 'header-right' ); | |
css: | |
.header-image .title-area, .header-image .site-title, .header-image .site-title a, .header-image .site-header .wrap .title-area { | |
float:none; | |
margin: 0 auto; | |
} |
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 jqUpdateSize(){ | |
// Get the dimensions of the viewport | |
var width = jQuery(window).width(); | |
var height = jQuery(window).height(); | |
// jQuery('#jqWidth').html(width); // Display the width | |
jQuery('.bodywrapper').css('height',height-45); // Set the height | |
}; | |
jQuery(document).ready(jqUpdateSize); // When the page first loads | |
jQuery(window).resize(jqUpdateSize); // When the browser changes size |