Skip to content

Instantly share code, notes, and snippets.

@samu1241
Forked from aliaghdam/visual-composer-rtl-fix.js
Created December 1, 2016 03:19
Show Gist options
  • Save samu1241/cde7f40787dc75c554d4c7809a727d9d to your computer and use it in GitHub Desktop.
Save samu1241/cde7f40787dc75c554d4c7809a727d9d to your computer and use it in GitHub Desktop.
WordPress Visual Composer full width row ( stretche row ) fix for RTL
jQuery(document).ready(function() {
jQuery(document).on('vc-full-width-row', function () {
var $elements = jQuery('[data-vc-full-width="true"]');
jQuery.each($elements, function () {
var $el = jQuery(this);
$el.css('right', $el.css('left')).css('left', '');
});
});
});
@smayar
Copy link

smayar commented Mar 15, 2017

Where to put the above code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment