When your website means business.

Snippets

A collection of (mostly) WordPress-related snippets and references I’ve found useful and worth keeping where I can find them. Feel free to use what you like, and point me to some better snippets or references.

Disallow File Edit»

Disable theme and plugin editor in admin.
Custom Admin, Users, wp-config | Type: PHP

Display Featured Image on Listing»

How to add featured image to other post types. ADD TO THEME FUNCTIONS // This theme uses post thumbnails add_theme_support( 'post-thumbnails', array( 'plans','listings','news','post' ) ); ON POST-TYPE SPEC 'supports' =>…
Images, PHP, WP/CP | Type: PHP

Divs Same Height»

Make divs in a container equal heights.
Javascript, jQuery | Type: Javascript

Fix to Top Onscroll»

Positions element at top on scrolling using jQuery scrollTop.
Javascript, jQuery | Type: Javascript