Skip to content

Instantly share code, notes, and snippets.

@Jamiewarb
Jamiewarb / menus.php
Created May 7, 2021 15:48 — forked from jamesfacts/menus.php
This adds tailwind classes to the output of navwalkers
<?php
namespace App;
/**
* Custom fork of WP's native Walker functionality revised so we can output
* classes for tailwind
*
*/
/**
@SpiZeak
SpiZeak / search.php
Last active February 24, 2021 03:26
Search filter for wordpress
<?php
/**
* [list_searcheable_acf list all the custom fields we want to include in our search query]
* @return [array] [list of custom fields]
*/
function list_searcheable_acf(){
$list_searcheable_acf = array("title", "sub_title", "excerpt_short", "excerpt_long", "xyz", "myACF");
return $list_searcheable_acf;
}
@yankiara
yankiara / fluid-fonts-and-icons.css
Last active October 9, 2024 00:28
Fluid fonts and icons in CSS
body {
--base: 20;
--scale-headings: 1.44;
--scale-mobile: 0.7;
--scale-mobile-headings: 0.4;
--scale-icons: 1.4;
--min-viewport: 480;
--max-viewport: 1600;
--max-size: var(--base);
}
@nfhipona
nfhipona / pldt-home-fibr-an5506-04-fa-rp2627-advanced-settings.md
Created October 29, 2019 05:20 — forked from kleo/backspace.md
PLDT HOME FIBR AN5506-04-FA RP2627 Advanced Settings

PLDT HOME FIBR AN5506-04-FA RP2627 Advanced Settings


[Notice]

Project moved to https://gitlab.com/kbeflo/fiberhomesuperadmin due to excessive amount of unicorns.
Gist here will not be updated anymore
Discussion here on Gist is still allowed but I strongly recommend going over to Gitlab or Discord chat

.oxygen-vsb-responsive-video-wrapper {padding-bottom:0!important}
.oxygen-builder-body .oxygen-vsb-responsive-video-wrapper, .admin-bar .oxygen-vsb-responsive-video-wrapper {padding-bottom: 56.25%!important;}
@gaambo
gaambo / acf.js
Last active November 18, 2024 18:33
ACF Block with Innerblocks
import { Fragment } from "@wordpress/element";
import { InnerBlocks } from "@wordpress/editor";
/**
* Changes the edit function of an ACF-block to allow InnerBlocks
* Should be called like this on `editor.BlockEdit` hook:
* ` addFilter("editor.BlockEdit", "namespace/block", editWithInnerBlocks("acf/block-name"));`
*
* @param {string} blockName the name of the block to wrap
* @param {object} innerBlockParams params to be passed to the InnerBlocks component (like allowedChildren)
@Xilonz
Xilonz / field.php
Created June 21, 2019 11:13
Sage 9 Carbon Field Blocks
<?php
namespace App;
use Carbon_Fields\Field;
use Carbon_Fields\Block;
Block::make( __( 'Gutenberg Block' ) )
->set_icon( 'format-chat')
->add_fields( array(
Field::make( 'rich_text', 'text', __( 'text', 'my-theme' ) )
@dinhchi27
dinhchi27 / Key Sublime Text 3.2.1 Build 3207 - Sublime Text 3 License Key
Last active April 23, 2025 21:24
Key Sublime Text 3.2.1 Build 3207 - Sublime Text 3 License Key
Key Sublime Text 3.2.1 Build 3207
----- BEGIN LICENSE -----
Member J2TeaM
Single User License
EA7E-1011316
D7DA350E 1B8B0760 972F8B60 F3E64036
B9B4E234 F356F38F 0AD1E3B7 0E9C5FAD
FA0A2ABE 25F65BD8 D51458E5 3923CE80
87428428 79079A01 AA69F319 A1AF29A4
A684C2DC 0B1583D4 19CBD290 217618CD
@knolaust
knolaust / filter-gutenbergblocks-cpt.php
Last active August 6, 2024 02:32
Allow/disallow certain blocks for specific post types and custom post types in WordPress' Gutenberg Editor
<?php
/**
* Allowed Block Types Configuration
* Gist Keywords: wordpress, editor, gutenberg, blocks
*
* @category WordPress
* @author Knol Aust
* @version 1.0.0
* @description Limit the blocks allowed in Gutenberg for improved content control.
@loorlab
loorlab / remove_body_class_WP.php
Last active July 10, 2024 09:20 — forked from kavyagokul/remove_body_class
Remove a particular body class in WordPress
<?php
// functions.php
/**
* Exclude body_class for front page - Remove CSS class : page
*/
function mp_remove_body_classes($classes, $class){
foreach($classes as &$str){
if(strpos($str, "page") > -1 && is_front_page()){
$str = "";
}