WP Google Maps in Tabs

Add this to js/core.js around line 932 right after this: jQuery(‘body’).on(‘tabsactivate’, function(event, ui) { for(var entry in wpgmaps_localize) { InitMap(wpgmaps_localize[entry][‘id’],’all’,false); } });

Read More

jQuery Same Height Columns

This requires the CSS flag below to release the min-heights – assuming the divs stack.

Add this flag. Any Css property is fine and any @media is ok (just match CSS property in jQuery – line 20 above).

Read More

Javascript Detect Mobile

Read More

Add Light box (magnific popup) to ajax in Jumpstart

Inside the sucess function:

Read More

Options Page for Plugin

Original code: https://gist.github.com/hlashbrooke/9267467 First the Files (2) The Class:

Then the jquery (settings.js):

In the plugin root Setup Class autoload

Setting array example:

Instantiate the Class (with prefix, title and settings from above as arguments):

Read More

Modular Columns Same Height

Read More

Nivo Slider From ACF Gallery

Use this to create the html for the slider:

then this for shortcode (notice you can add the params to the shortcode directly). image ids will over-write gallery id and show the images directly:

or this to add to content:

and this to add the files for nivo slider (http://www.jqueryscript.net/slider/nivo-slider.html)

and […]

Read More

Suppress Related Videos on Popups

For lightbox videos:

Read More

Placeholder Text with jQuery

This is for the constant contact widget:

Read More

Accordion Sidebar Menu

Shows all the children under the current root item and all other root items.

This is the code for an accordion based on the portfolio_item post type (php):

and the css:

If we want to create an horizontal menu instead:

Then style it including current distinctions and going to vertical accordion […]

Read More