A Pen by Hans Spieß on CodePen.
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
.prevent-text-breakouts { | |
-ms-word-break: break-all; | |
word-break: break-all; | |
word-break: break-word; | |
-webkit-hyphens: auto; | |
-moz-hyphens: auto; | |
hyphens: 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
<?php | |
$pagekids = get_pages( "child_of=".$post->ID."&sort_column=menu_order" ); | |
if ( $pagekids ) { | |
$firstchild = $pagekids[0]; | |
wp_redirect( get_permalink( $firstchild->ID ) ); | |
} | |
?> |
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
/* set equal height on boxes */ | |
/* http://stackoverflow.com/questions/5052673/jquery-min-max-property-from-array-of-elements */ | |
Array.max = function( array ){ | |
return Math.max.apply( Math, array ); | |
}; | |
var heights = jQuery(".box").map(function() { | |
return jQuery(this).height(); | |
}).get(); | |
jQuery(".box").css("height", Array.max(heights)); |
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
SetEnvIf Request_URI "/uri.php$" test_uri | |
Order Deny,Allow | |
AuthUserFile /path/to/.htpasswd | |
AuthName "Bitte Anmelden" | |
AuthType Basic | |
<Limit GET> | |
require valid-user | |
</Limit> |
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 | |
/* | |
Template Name: Kontakt | |
*/ | |
?> | |
<?php /* other template code goes here... */ ?> | |
<?php |
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 | |
/* other function.php code goes here... */ | |
function my_custom_walker( $args ) { | |
return array_merge( $args, array( 'walker' => new My_Custom_Walker() ) ); | |
} | |
add_filter( 'wp_nav_menu_args', 'my_custom_walker' ); |
A Pen by Hans Spieß on CodePen.
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="coindesk js-coindesk"> | |
<p class="coindesk__price"> | |
€ <span class="js-eur-value"></span> | |
</p> | |
<p> | |
Zuletzt aktualisiert am <span class="js-last-updated"></span> | |
</p> | |
<p class="small">Powered by <a href="/price/">CoinDesk</a></p> | |
</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
;to be placed in ROOT/language/overrides/ | |
JLIB_HTML_START="<i class=\"fa fa-fast-backward\"></i>" | |
JPREV="<i class=\"fa fa-backward\"></i>" | |
JNEXT="<i class=\"fa fa-forward\"></i>" | |
JLIB_HTML_END="<i class=\"fa fa-fast-forward\"></i>" |