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.
Responsive Data Tables»
Brilliant responsive trick for data tables, when you have no choice but to use them.
CSS, Responsive, Tables | Type: CSS
Responsive Embedding»
Website app generates responsive embedding code for all types of media, including generic iframes.
Media | Type: Other
Responsive Image Map»
Use image map in a responsive environment. See cremationsnm.net for implementation.
Images, Responsive | Type: Javascript
Responsive jQuery Accordions (vertical expansion)»
Nice responsive accordian.
CSS, jQuery, Responsive | Type: Javascript
Responsive Table 2»
View at link at bottom. This table does not show active CSS and javascript.
CSS, Javascript, Responsive, Tables | Type: CSS
Responsive Tabs to Accordian»
At chosen break point, tabs become an accordian.
CSS, Responsive | Type: Javascript
Responsive Video Embeds»
One of the ways to make video pasted into the editor responsive.
Responsive | Type: PHP
Restore Gravity Forms Embed Button on TinyMCE»
Add to your theme functions file. Display on every WYSIWYG field /*****Restore Gravity Forms Embed Button on TinyMCE*********/ add_filter( 'gform_display_add_form_button', '__return_true' ); Display only for pages (I can’t get this…
Forms, TinyMCE | Type: PHP
Saving ACF Options Field results in 404»
Temporarily disable ModSecurity (cPanel) and save the field. Once the option field is saved, you should re-enable ModSecurity!!!
ACF | Type: PHP
Search Form for CPT»
To add a search form that searches only a particular post type, not your entire website. <form id="cptsearch" action="<?php echo home_url(); ?>" method="get"><input name="s" type="text" /> <input name="post_type" type="hidden" value="POSTTYPENAME"…
Search | Type: PHP