Menu icon Foundation

Developer

My Posts


My Comments

Artem commented on David Brandl's post about 5 years

Thank you! It worked!

Artem commented on Jeff Mackey's post over 5 years

The following function will stop WordPress from using the sticky class, and style WordPress sticky posts using the .wordpress-sticky class instead. Thanks to envex for this one. It’s simpler than modifying Foundation to use a different class.

function remove_sticky_class($classes) {
$classes = array_diff($classes, array("sticky"));
$classes[] = 'wordpress-sticky';
return $classes;
}
add_filter('post_class','remove_sticky_class');

Artem commented on Artem's post over 5 years

Thank you, but I already solved this problem! The problem was in double initialization javascript function.

Posts Followed

No Content

Following

    No Content

Followers

My Posts


My Comments

You commented on David Brandl's post about 5 years

Thank you! It worked!

You commented on Jeff Mackey's post over 5 years

The following function will stop WordPress from using the sticky class, and style WordPress sticky posts using the .wordpress-sticky class instead. Thanks to envex for this one. It’s simpler than modifying Foundation to use a different class.

function remove_sticky_class($classes) {
$classes = array_diff($classes, array("sticky"));
$classes[] = 'wordpress-sticky';
return $classes;
}
add_filter('post_class','remove_sticky_class');

You commented on Artem's post over 5 years

Thank you, but I already solved this problem! The problem was in double initialization javascript function.

Posts Followed

No Content

Following

  • No Content

Followers

  • No Content