Download Monitor compatible workaround to Polylang
-
Hi and thanks for the plugin.
I found the information, that Polylang and Download Monitor are not compatible. But no soloution.
For my private blog there might be an very easy workaround, but I don’t get it working.
Workaround Goal:
Instead of
https://domain.tld/download/123
I want to link to
https://domain.tld/en/download/123
I don’t need a difference of the langauges in the download-link and it works with any used language (de, fr …)
I can think of three aproches and an last resort.
1. custom download format
add a content-download-websitename.php to the theme-folder and adjust the code.<a class="download-link" href="<?php $dlm_download->the_download_link(); ?>" rel="nofollow">
no idea how :/
2. functions.php
no idea where to start at all.3. .htaccess redirect.
my idea wasOptions +FollowSymLinks RewriteEngine On rewriterule ^download/(.*)$ https://domain.tld/en/download/$1 [r=301,nc]
but it didn’t work
last resort:
manually set ink in the editor.
<a href="https://domain.tld/en/download/123">Button-Text</a>
I just almost don’t need the plugin than ??thanks for your help and hints you might have for me.
Kristof
- The topic ‘Download Monitor compatible workaround to Polylang’ is closed to new replies.