Skip to content

Instantly share code, notes, and snippets.

View dennis-kurochkin's full-sized avatar
🏠
Working from home

Dennis Kurochkin dennis-kurochkin

🏠
Working from home
View GitHub Profile
@dennis-kurochkin
dennis-kurochkin / r-debug.php
Created May 27, 2020 16:59 — forked from Rarst/r-debug.php
R Debug (set of dump helpers for debug)
<?php
/*
Plugin Name: R Debug
Description: Set of dump helpers for debug.
Author: Andrey "Rarst" Savchenko
Author URI: https://www.rarst.net/
License: MIT
*/
@dennis-kurochkin
dennis-kurochkin / custom-nav-walker-usage.php
Created April 29, 2020 15:37 — forked from kosinix/custom-nav-walker-usage.php
WordPress: Using a custom nav walker to create navigation menus in plain <a> tags. That is the <ul> and <li> tags are not present. Very useful if you want to create simple links that can be centered with a simple text-align:center on the containing element.
<?php
// In your template files like footer.php
// The items_wrap value ('%3$s') removes the wrapping <ul>, while the custom walker (Nav_Footer_Walker) removes the <li>'s.
wp_nav_menu(array('items_wrap'=> '%3$s', 'walker' => new Nav_Footer_Walker(), 'container'=>false, 'menu_class' => '', 'theme_location'=>'footer', 'fallback_cb'=>false ));
?>
.slick-list,
.slick-track {
height: 100%;
}
@dennis-kurochkin
dennis-kurochkin / common.js
Created June 23, 2019 10:48
Slick Slider Same Height Slides
$('.js-slider').slick({
...
rows: 0
})
.on('setPosition', function (event, slick) {
slick.$slides.css('height', slick.$slideTrack.height() + 'px');
}
);
@dennis-kurochkin
dennis-kurochkin / style.css
Last active June 23, 2019 10:49
Slick Slider Slides Vertical Align
.slick-initialized .slick-slide {
float: none;
display: inline-block;
vertical-align: middle;
}