Skip to content

Instantly share code, notes, and snippets.

@kristof
kristof / invisionBookmarklet.js
Last active February 15, 2018 01:45
Bookmarklet for hiding the Invision UI + hotspots
javascript: (function() {
var bottomBar = document.getElementById('bottom_bar');
var trayToggle = document.getElementsByClassName('hide-tray-toggle');
var screensViewerNav = document.getElementById('screens_viewer_nav');
var poweredBy = document.getElementsByClassName('powered-by');
var toolbar = document.getElementsByClassName('toolbar');
var slideshowNav =document.getElementsByClassName('slideshow-nav');
var hotspots = document.getElementsByClassName('hotspot');
@teybannerman
teybannerman / UX-&-UI-Design-Resources.md
Last active April 10, 2024 09:41
UX & UI Design Resources

UX & UI Design Resources on the Web

Index

  1. Online Prototyping
  2. User Testing & Feedback
  3. UI Design Patterns
  4. Colours & Gradients
  5. User & Profile Photos
  6. Stock Photography
  7. Icons
@mikejolley
mikejolley / gist:3206230
Created July 30, 2012 11:10
Woo Breadcrumbs product categories, by Matt
// Add product categories to the "Product" breadcrumb in WooCommerce.
// Get breadcrumbs on product pages that read: Home > Shop > Product category > Product Name
add_filter( 'woo_breadcrumbs_trail', 'woo_custom_breadcrumbs_trail_add_product_categories', 20 );
function woo_custom_breadcrumbs_trail_add_product_categories ( $trail ) {
if ( ( get_post_type() == 'product' ) && is_singular() ) {
global $post;
$taxonomy = 'product_cat';