Snippets

A collection of (mostly) WordPress/ClassicPress-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.

CSS Border Radius

Can hardly remember what it was like in the old days when we wanted rounded corners.
CSS3 | Type: CSS

CSS-only Accordians

When javascript doesn’t make the grade. HTML <div class="wrapper">     <div class="half">         <p>Open multiple</p>         <div class="tab"><input id="tab-one" name="tabs" type="checkbox" /> <!--can open several tabs at once-->             <label [...]
CSS, Javascript | Type: CSS

CSS-only Mobile Menu

Mobile menu that doesn't use javascript. Uses hidden checkbox to toggle state.
CSS, Responsive | Type: CSS

CSS3 Multiple Columns

Unfortunately, this is buggy with uneven column lengths. There may be some javascript that does this better.
CSS3 | Type: CSS

Custom TinyMCE Styles

Consider replacing current approach with this plugin (still need to remove h1, blockquote, etc from formats)
Custom Admin, TinyMCE, Users | Type: PHP

We use cookies in order to give you the best possible experience on our website. By continuing to use this site, you agree to our use of cookies.
Accept