Documentation/GDPR Cookie Consent/Redirect the “Read More” Link According to the Selected Language Using GDPR Cookie Consent Plugin

Redirect the “Read More” Link According to the Selected Language Using GDPR Cookie Consent Plugin

The GDPR Cookie Consent plugin helps you to make your website comply with the GDPR Cookie Law. The plugin displays a cookie notice bar that allows the users to accept or reject the cookies. The plugin also allows you to link the users to the Privacy Policy page using the Read More link.

Currently, the plugin allows you to provide the link to only a specific privacy policy page. However, to redirect the Read More link to different pages based on the selected language of the website, follow the steps below:

  1. Go to GDPR Cookie Settings > Settings > Customise buttons > Read More link.
  2. Set the URL of the page for the default language. Save the settings.
  3. Then, go to WPML>String translation and under the domain ‘admin_text_CookieLawInfo-0.9’ search for [CookieLawInfo-0.9]button_2_url. Learn more on translating using WPML.
  4. Add the other links as translations.

Follow the same steps to redirect Read more links to different pages using Polylang.

  • Was this article helpful?
  • YesNo