I hereby claim:
- I am brendonwbrown on github.
- I am brendonwbrown (https://keybase.io/brendonwbrown) on keybase.
- I have a public key ASDT5NtnOt7AZGeZOtNp3b6WnfrtN9G2dK5KrYSVi8SViQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
WDD Animated Sitcky Header. | |
http://www.webdesignerdepot.com/2014/05/how-to-create-an-animated-sticky-header-with-css3-and-jquery/ | |
HTML | |
<header><h1>Sticky Header</h1></header> | |
<img src="large-image.jpg" width="782" height="2000" alt="Big Image" /> | |
<div id='something'>Something! </div> | |
#something { | |
position:relative; | |
} | |
$(window).scroll(function(){ | |
if ($(window).scrollTop() > 50){ | |
$("#something").css({"top": ($(window).scrollTop()) -50 + "px"}); | |
} |
<script type="text/javascript"> | |
Shadowbox.init({ | |
skipSetup: true | |
}); | |
window.onload = function () { | |
Shadowbox.setup("a.shadowboxclass", {}); | |
}; | |
$(document).ready(function(){ | |
$('a.shadowboxclass').live('click',function(e){ | |
# WP-Config File Changer | |
## Credit to Konstantin Kovshenin, a complete stranger who publishes nice things on the web. | |
### Nutshell: customize this code with various DB information and place it in wp-config.php file instead of corresponding config information. It instructs Wordpress to look for a different (empty) file in parent directory of local, development or production servers and serves up the appropriate config to wordpress. | |
### You will have to create empty env_local, env_development files in parent directories of your websites on corresponding servers. | |
<?php | |
if ( file_exists( dirname( __FILE__ ) . '/../env_local' ) ) { | |
// Local Environment |
<?php | |
$children = wp_list_pages('title_li=&child_of='.$post->ID.'&echo=0'); | |
if ($children) { ?> | |
<h4>Additional Resources</h4> | |
<ul> | |
<?php echo $children; ?> | |
</ul> | |
<?php } ?> |