Question:
Is there a way to force align any element such as Button in my case. Where I want to force align it to right.
Product:
Wix Studio Editor
What are you trying to achieve:
I am building multi-language website, for Arabic specifically I want to force align few button from left to right.
What have you already tried:
import wixWindow from ‘wix-window’;
$w.onReady(function () {
const language = wixWindow.multilingual.currentLanguage;
if (language === ‘ar’) {
applyRtl();
}
});
function applyRtl() {
// GETTING THE BUTTON ELEMENT AND FORCE ALIGN TO RIGHT - CODE SHOULD GO HERE.
}
Additional information:
At the moment the feature is not available on Wix and we all are voting to get it ASAP.