Skip to content

Instantly share code, notes, and snippets.

@cliffordp
Created June 5, 2014 20:55
Show Gist options
  • Save cliffordp/1c8cc34a400b3f827237 to your computer and use it in GitHub Desktop.
Save cliffordp/1c8cc34a400b3f827237 to your computer and use it in GitHub Desktop.
Adds .row-closed to PageLines DMS Canvas Area section so columns within don't have spacing between columns. CHANGE your jQuery selector. Could choose to add .row-squared instead.
<script>
jQuery(document).ready(function() {
//from http://www.pagelinestheme.com/adding-jquery-code-dms-editor/
//CHANGE the jQuery selectors using your Canvas Area's Section ID
jQuery('#pl_areaukh0pxs .pl-area-wrap .editor-row').addClass('row-closed'); //for when using DMS Editor non-preview mode
jQuery('#pl_areaukh0pxs .pl-area-wrap .row.grid-row').addClass('row-closed'); //for when not
})
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment