I’ve set my google reviews widget and everything looks good except that I need the reviews to be RTL instead of LTR, I noticed that this feature is only available via CSS code but unfortunately I couldn’t find it. Can anyone please share the necessary code please?
Do you want to apply the RTL mode only to the review texts or maybe you’d like to align to the right the other widget’s elements like Reviewer’s name and photo, Google logo, etc?
Yeah, it’s possible! I see that you have 3 Google Reviews widgets. Could you please let me know which one you’d like to be customized (share widget name or widget ID)?
So the dev team will fix this widget so it will be RTL?
And one more issue I noticed when installing the widget on my Wix Studio website is that it wont scale proportionally as the section its attached to. (I have both on scale proportionally)
I keep getting a huge gap at the bottom of the section on larger screens.
The CSS for the RTL works great. However I couldn’t install the code without iFrame because Wix requires a plan in order to install custom code. I will tell my client to buy a plan next week, but until then can you please verify if the container ID and widget ID are the right ones?
(I created a grey container on the page I sent you)
Container ID:
#comp-lyss8tto
Widget ID:
elfsight-app-b95904de-af18-4953-9a5a-43764186a6d6
And this will be the complete code:
<script>
window.onload = () => {
let placeElement = document.querySelector('#comp-lyss8tto');
if (!placeElement) return;
let scriptElement = document.createElement('script');
let widgetElement = document.createElement('div');
scriptElement.setAttribute('src', 'https://static.elfsight.com/platform/platform.js');
scriptElement.setAttribute('defer', '');
scriptElement.setAttribute('data-use-service-core', '');
widgetElement.classList.add('elfsight-app-b95904de-af18-4953-9a5a-43764186a6d6');
setTimeout(() => {
placeElement.appendChild(scriptElement);
placeElement.appendChild(widgetElement);
}, 2500);
};
</script>
Great to see that this solution worked for you too. Thank you for the feedback!
By the way, we have a CSS Codes category where you can find the most popular codes for different apps, including Reviews - CSS Codes - Elfsight Community.
However, if you haven’t found the needed code, faced issues or got questions, we are always here for you to help