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
AddType image/svg+xml svg | |
AddType image/svg+xml svgz |
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
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^([^\.]+)$ $1.php [NC,L] |
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 toggleNav() { | |
if ($('#wrapper').hasClass('show-nav')) { | |
// Do things on Nav Close | |
$('#wrapper').removeClass('show-nav'); | |
} else { | |
// Do things on Nav Open | |
$('#wrapper').addClass('show-nav'); | |
} | |
//$('#wrapper').toggleClass('show-nav'); | |
} |
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
/* | |
the_ and get_the are two different queries. For example, the_title(); will echo out the title field into your HTML document, and get_the_title(); can be inserted into a value. | |
*/ | |
<?php the_title(); ?> // Title | |
<?php the_content(); ?> // Full entry | |
<?php the_excerpt(); ?> // Partial entry | |
<?php the_permalink(); ?> // Calls a specific link | |
<?php the_category(); ?> // Calls the category |
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 | |
$random = rand(0, 2); | |
$picture = array( | |
'pic.jpg', | |
'other-pic.png', | |
'something.gif' | |
); | |
?> | |
<img src="<?php echo $picture[$random];?>"></a> |
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 | |
$include = get_pages('include=6'); // Insert page number here | |
$content = apply_filters('the_content',$include[0]->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
$(function() { | |
$('.classname').click(function() { | |
// Calling a function in case you want to expand upon this. | |
clickFunction(); | |
}); | |
}); |
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
// register your custom meta box | |
function my_slider_properties_meta_box() { | |
add_meta_box('my_slider_properties', 'Link Format Title URL', 'my_slider_properties', 'page', 'side', 'default'); | |
} | |
add_action('add_meta_boxes', 'my_slider_properties_meta_box'); | |
// echo your custom meta box | |
function my_slider_properties() { | |
global $post; |
OlderNewer