setup new freifunktheme (derived from FoundatioPress). Basic typography/styles

This commit is contained in:
Ulf Treger 2018-10-30 13:16:00 +01:00
commit d0bfff9ff2
317 changed files with 29524 additions and 29293 deletions

View file

@ -0,0 +1,19 @@
<?php
/**
* Change the class for sticky posts to .wp-sticky to avoid conflicts with Foundation's Sticky plugin
*
* @package FoundationPress
* @since FoundationPress 2.2.0
*/
if ( ! function_exists( 'foundationpress_sticky_posts' ) ) :
function foundationpress_sticky_posts( $classes ) {
if ( in_array( 'sticky', $classes, true ) ) {
$classes = array_diff( $classes, array( 'sticky' ) );
$classes[] = 'wp-sticky';
}
return $classes;
}
add_filter( 'post_class', 'foundationpress_sticky_posts' );
endif;