Skip to content

Instantly share code, notes, and snippets.

View fabianjaehnke's full-sized avatar

Fabian Jaehnke fabianjaehnke

View GitHub Profile
@WerdsWords
WerdsWords / wp_terms_checklist_args.php
Last active December 19, 2015 21:39
#6: wp_terms_checklist_args
<?php
/**
* Disable 'checked_ontop' for Media Categories taxonomy
*
* @see wp_terms_checklist()
*
* @param array $args An array of arguments.
* @param int $post_id The post id.
*
* @return array The arguments array.
// assets/scripts/customizer.js
(function($) {
// Primary colour
wp.customize('primary_colour', function(value) {
value.bind(function(to) {
$('head').append('<style>.Primary-bg-c{background-color:'+ to +' !important;}</style>');
$('head').append('<style>.Primary-c{color:'+ to +' !important;}</style>');
$('head').append('<style>.Primary-c--hover:hover{color:'+ to +' !important;}</style>');
@smutek
smutek / Bootstrap4Nav-Sage9.md
Last active July 30, 2022 06:50
Bootstrap 4 Walker for Sage 9

Credit

This is a frankensteind version of the current Soil nav walker, by the Roots team, and Michael Remoero's Sagextras walker. All credit goes to those good folks. :)

Use

  • Replace the contents of header.blade.php with the attached header.
  • Copy the walker.php file to the /app directory.
  • Add walker.php to the Sage required files array in resources/functions.php - eg. on a stock Sage install the entry would look like:
/**