Skip to content

Instantly share code, notes, and snippets.

View FabioCarretti's full-sized avatar

Fabio Carretti FabioCarretti

View GitHub Profile
@FabioCarretti
FabioCarretti / overscroll-behavior.css
Created October 9, 2020 16:58
Remove overscroll
html, body {
overscroll-behavior: none;
}
@FabioCarretti
FabioCarretti / scroll-horizontal-list-mobile.css
Created August 14, 2020 15:24
When you have to swap a grid to an horizontal scrolling list on mobile, this CSS utility might be helpful.
.u-scroll-horizontal-mobile {
@media (max-width: 767px) {
white-space: nowrap;
-webkit-overflow-scrolling: touch;
overflow-x: auto;
&::-webkit-scrollbar {
display: none;
}
function lang_switcher() {
// current
$args = array(
'raw' => true
);
$languages = pll_the_languages($args);
if($languages) {
foreach ($languages as $key => $lang) {