Skip to content

Instantly share code, notes, and snippets.

View ADSETTER's full-sized avatar
🎯
Focusing

ADSETTER ADSETTER

🎯
Focusing
View GitHub Profile
@mattclements
mattclements / function.php
Last active July 2, 2024 15:32
Wordpress Disable Comments (add to function.php)
<?php
add_action('admin_init', function () {
// Redirect any user trying to access comments page
global $pagenow;
if ($pagenow === 'edit-comments.php') {
wp_redirect(admin_url());
exit;
}
@mariovalney
mariovalney / jquery-slick-filterable.js
Created November 9, 2018 17:54
Filter a Slick carousel when using grid mode (rows).
(function( $ ) {
$.fn.slickFilterable = function( options ) {
/**
* A plugin to create a slick we can filter.
*
* If you are not using Rows you can use slickFilter
* (check documentation) otherwise we can provide a valid filter.
*
* options {
@anschaef
anschaef / bootstrap-5-sass-mixins-cheat-sheet.scss
Last active May 27, 2024 06:57
All New Bootstrap 5 Sass Mixins [Cheat sheet with examples]
/* -------------------------------------------------------------------------- */
// All Bootstrap 5 Sass Mixins [ Cheat sheet ]
// Updated to Bootstrap v5.1.x
// @author https://anschaef.de
// @see https://github.com/twbs/bootstrap/tree/main/scss/mixins
// @see https://github.com/twbs/bootstrap/blob/main/scss/_variables.scss
/* -------------------------------------------------------------------------- */
// Options
// @see https://getbootstrap.com/docs/5.1/customize/options/