Skip to content

Instantly share code, notes, and snippets.

$neat-grid: (
columns: 12,
gutter: 20px,
);
@joffff
joffff / 0_reuse_code.js
Created August 8, 2017 09:43
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@joffff
joffff / wordpress_disable_plugin.php
Created June 28, 2016 08:31
Disable WordPress plugin on specific page
<?php
add_filter( 'option_active_plugins', 'disable_plugins' );
function disable_plugins($plugins){
$key = array_search( 'wordpress-seo/wp-seo.php' , $plugins ); //Plugin path within /wp-content/plugins/
if ( false !== $key ) unset( $plugins[$key] );
return $plugins;
An Anonymous Pen
----------------
This combination of javascript and CSS will redirect tablet users from the mobile version of your Blackbaud NetCommunity website to the desktop version of the site. See notes inline for more information.
Updated: This update allows developers to test the site in a desktop browser by appending "&DeliveryChannelID=3F6B7EA0-73E8-462B-A075-DE89431816A4" (for PID= URLs) and "?DeliveryChannelID=3F6B7EA0-73E8-462B-A075-DE89431816A4" (for friendly URLs) to the current page's URL. Before, doing so triggered the redirect. Happy mobile BBNCing!
I'd be remiss without mentioning that the kind folks in Blackbaud NetCommunity Support do not officially support this approach, and may not be able to help you resolve potential or future issues related to this script.
Special thanks to Daniel Buzzell, J. Schultz and Matthew Cira for pair-programming this solution.
@joffff
joffff / Button block
Last active December 22, 2015 19:09
Button block.
<div class="grid_6 btn-block orange">
<h4>
<a href="#" title="" class="">Title</a>
</h4>
<p>
<a href="#" title="" class="">
<img src="http://placehold.it/224x110" alt="">
</a>
</p>
</div>
@joffff
joffff / Landing page Feature box
Last active December 22, 2015 14:19
Landing page feature box
<h3>Title</h3>
<a href="#">
<img height="185" src="http://placehold.it/350x185" width="350" />
</a>
<a class="btn" href="#">Read more</a>
<img alt="" height="350" src="http://placehold.it/704x350" width="704" />
<div class="featurebox purple">
<div class="content">
<a href="#">
<h2>Title</h2>
</a>
<p>Intro paragraph</p>
<a class="btn" href="#">Read more</a>
</div>
</div>
<a href="#">
<img height="160" src="http://placehold.it/244x160" width="244" />
</a>
<h3>
<a href="#">Block title</a>
</h3>
<p>intro paragraph</p>
<a class="btn" href="#">Read more</a>