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
$(window).scroll(function() { | |
if ($(this).scrollTop() > 200) { | |
$('div').addClass('stickyheader'); | |
} else { | |
$('div').removeClass('stickyheader'); | |
} | |
}); |
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
.box { | |
width:350px; | |
height:150px; | |
} | |
.fade { | |
position: relative; | |
} | |
.fade:after { |
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 250 x 250 thumbnail to every image uploaded | |
add_image_size( 'gallery-thumbnail', 250, 250, true ); | |
// gallery_thumbnail is a custom size! It can have any name. | |
// Call it later in a gallery loop. | |
<section id="gallery_page"> | |
<ul class="gal columns-4"> | |
<?php | |
$args = 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
<?php $my_query = new WP_Query('page_id=87'); | |
while ($my_query->have_posts()) : $my_query->the_post(); | |
$do_not_duplicate = $post->ID;?> | |
<div class="entry"> | |
<?php the_content('read more »'); ?> | |
</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
if($post->ID == '4331') {} else {} |
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 | |
header("HTTP/1.1 301 Moved Permanently"); | |
header("Location: http://www.new.com"); | |
?> |
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
<meta property="og:image" content="img.jpg" /> | |
<meta property="og:title" content="Title" /> | |
<meta property="og:description" content="Desc." /> |
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
$("#fullname").bind('click keypress keyup change focus', function(){ | |
$("#note_email").fadeIn(); | |
}); | |
$("#fullname").bind('focus', function(){ | |
$("#note_email").fadeIn(); | |
}); | |
OR |
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
<link rel="icon" type="image/png" href="images/favicon.png"> |
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 | |
// No date is set if they didn't click a specific date | |
$eventDate = false; | |
// If 'date' is in the URL | |
if(isset($_GET[date])) { | |
// Date is set | |
$eventDate = true; |
OlderNewer