Skip to content

Instantly share code, notes, and snippets.

View oneblackcrayon's full-sized avatar

Frederick Polk oneblackcrayon

View GitHub Profile
@abelsaad
abelsaad / functions.php
Created May 19, 2021 23:09
Content Excerpt Limit
<?php
function excerpt($limit) {
$excerpt = explode(' ', get_the_excerpt(), $limit);
if (count($excerpt)>=$limit) {
array_pop($excerpt);
$excerpt = implode(" ",$excerpt).'...';
} else {
$excerpt = implode(" ",$excerpt);
}
@hmowais
hmowais / functions.php
Last active January 25, 2025 01:18
Google Page Speed [Manual-Updated]
<?php
/* cleaup*/
remove_action( 'wp_head', 'feed_links_extra', 3 ); // Display the links to the extra feeds such as category feeds
remove_action( 'wp_head', 'feed_links', 2 ); // Display the links to the general feeds: Post and Comment Feed
remove_action( 'wp_head', 'rsd_link' ); // Display the link to the Really Simple Discovery service endpoint, EditURI link
remove_action( 'wp_head', 'wlwmanifest_link' ); // Display the link to the Windows Live Writer manifest file.
remove_action( 'wp_head', 'index_rel_link' ); // index link
remove_action( 'wp_head', 'parent_post_rel_link', 10, 0 ); // prev link
@imagebox
imagebox / query-posts-sort-by-acf-year.php
Last active May 21, 2022 07:11
[WordPress | Query Posts, Show Upcoming Events Posts By ACF Date] #WordPress #ACF
// not for the Events Calendar posts but for an Events CPT or sommething similar that uses ACF fields for dates.
// example from https://idelic.com/resource-type/events/
<?php
$today = current_time('Ymd');
$post_query_args = array(
'post_type' => 'resources',
'posts_per_page' => -1,
@KittenCodes
KittenCodes / animate-waypoints.css
Last active February 11, 2023 06:16
jQuery for using Animate CSS & Waypoints JS with Oxygen
/* Add this to a stylesheet via Manage > Stylesheets in the top right of the builder */
.wp-embed-responsive .cssAnimate {
opacity: 0;
}
@mrwweb
mrwweb / readme.md
Last active September 27, 2024 22:29
The Events Calendar v2 Template Reset & Customizations - Now on Github
@Sovetnikov
Sovetnikov / original_theme.scss
Created November 26, 2020 10:13
Remove all unmodified css from customized buefy theme
// Import Bulma's core
@import "../../node_modules/bulma/sass/utilities/_all";
// Import Bulma and Buefy styles
@import "../../node_modules/bulma/bulma.sass";
@import "../../node_modules/buefy/src/scss/buefy";
@eightyfive
eightyfive / resources\sass\_bulma.scss
Last active January 4, 2022 23:18
Laravel App SASS (Bulma)
// Utilities
@import "../../node_modules/bulma/sass/utilities/functions";
@import "../../node_modules/bulma/sass/utilities/derived-variables";
@import "../../node_modules/bulma/sass/utilities/mixins";
@import "../../node_modules/bulma/sass/utilities/controls";
// Base
@import "../../node_modules/bulma/sass/base/minireset";
@import "../../node_modules/bulma/sass/base/generic";
@mfd
mfd / input.scss
Created October 18, 2020 17:41
Generated by SassMeister.com.
@function vw($width) {
@return 100 * $width / 1380 * 1vw;
}
@function vwM($width) {
@return 100 * $width / 420 * 1vw;
}
$breakpoints: (
'small': 767px,
'medium': 1000px,
/* 見出し全体
------------------------------*/
h2,
h3,
h4,
h5,
h6 {
}
@onlurking
onlurking / Design Systems 101 Syllabus.md
Created September 8, 2020 18:06
Design Systems 101 Syllabus

Design Systems 101 Syllabus

A 10-week course about design systems from SuperFriendly

Week 1: Introduction to Design Systems

Discussion

  • Introductions