CreateIT
CreateIT
BLOG

RTL Compatibility for the Ultimate GDPR plugin

Blog RTL
TAGS: developers

RTL Compatibility for the Ultimate GDPR plugin

SHARE

CHALLENGE:
we would like to secure uploaded files, so Media Library will be accessible only to users that are logged in
SOLUTION:
use htaccess to redirect requests to wp-content/uploads/ files to PHP script.

The Ultimate GDPR plugin, the best selling toolkit for GDPR & CCPA Compliance for WordPress, is an all-in-one solution for meeting privacy requirements. With a 4.5/5 star rating and nearly 7k copies sold at codecanyon.net, the plugin is considered a trusted and reliable tool. You may know the GDPR under different names, like: AVG, RODO, “Cookie law”, DSG, DSGVO, RPDG, RGDP or “data protection law” – all those names refer to the same law and are covered by the plugin.

One of the most important features is: Cookie consent – a dedicated box for cookie consent and a cookie blocker until the consent is given, also known as a “cookie bar”.

Your website might be using an RTL language like: Arabic, Hebrew, Persian or Urdu. Right to left means that writing starts from the right of the page and continues to the left. Websites need a special HTML markup and an additional style-rtl.css to be compatible with RTL languages.

Cookie Bar RTL Ready

To make Cookie Bar working correctly for Right-to-left websites – you need to add custom CSS:

  • go to Wp-admin / Ultimate GDPR & CCPA / Cookie Consent / Preferences / Custom style CSS
  • and paste the custom styles:
.rtl .ct-ultimate-gdpr-cookie-modal-slider [type=radio]:checked, 
.rtl .ct-ultimate-gdpr-cookie-modal-slider [type=radio]:not(:checked) {
    position: absolute;
    left: auto;
    opacity: 0;
}

.rtl .ct-ultimate-gdpr--Groups-4 .ct-slider-cookie2 .ct-ultimate-gdpr-slider, 
.rtl .ct-ultimate-gdpr--Groups-4 .ct-slider-cookie3 .ct-ultimate-gdpr-slider, 
.rtl .ct-ultimate-gdpr--Groups-4 .ct-slider-cookie4 .ct-ultimate-gdpr-slider {
    margin-left: auto;
    margin-right: 25%;
}

That’s it! Make sure you follow us for other useful tips.

 

___

About the article Author:

Maciej Brzeziński

Techleader of createIT, working in the IT sector for over 14 years. Innovator, author, and owner of an e-shop that he has been continuously developing for over 10 years. Currently, with his team of over 20 developers, he supervises all kinds of e-commerce projects of varied structure, characteristics, and size: from simple on-line shops for retail clients to advanced B2B platforms with support of multiple shopping carts, multiple languages, and integration with external systems. His work also involves modifying and expanding the existing platforms with millions of products in their databases, platforms that support variable pricing (several variants of the same product), dropshipping modules, integration with storage systems, integration with courier delivery services, and the last but not least, the optimization of scripts. By participating in a multitude of projects, he had the opportunity to “test out” all kinds of platforms (open-source, SaaS – Cloud-Hosted eCommerce Platforms) and dedicated platforms.

About us:

Hi, we are createIT!

As a passionate group of professionals with a love for Web and mobile technologies, we have been successfully serving our clients for the past 15 years. Through these years we have continuously striven to create the best IT solutions our clients seek.

Our 70+ developer team creates cutting-edge complex B2B and B2C web systems and apps as well as delivers top-notch direct outsourcing services.

We work in multiple frameworks but we hold special feelings and are experts in PHP (Symfony, OXID, WordPress), JavaScript (React, AngularJS), Flutter and Blockchain. We do enjoy working in the scalable cloud environment like AWS.

We are located in Warsaw, Poland, in the heart of Europe. Concentrated on delivering durable web solutions of high integrity, we do not always try to be the cheapest. However, thanks to our location you will be surprised how reasonable our prices are.

Fluent in English we offer services worldwide. Among others, in countries such as the U.S.A., Great Britain, Germany, Australia, Sweden and Poland.

Need help?

  • Looking for support from experienced programmers?

  • Need to fix a bug in the code?

  • Want to customize your webste/application?

ADD COMMENT

Your email address will not be published. Required fields are marked *

createIT Contact