Skip to content

Instantly share code, notes, and snippets.

@Bicarbona
Forked from cliffordp/row-closed-columns.js
Created October 27, 2016 22:50
Show Gist options
  • Save Bicarbona/900e5bd9393ef5173fa69d36dfe98f06 to your computer and use it in GitHub Desktop.
Save Bicarbona/900e5bd9393ef5173fa69d36dfe98f06 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