Hardcode links in templates – not changing solution?
-
I’ve built a custom template for a client with translations being handled by MultiLang. I’ve got a problem where some hardcoded links (text, buttons) are not changing URLs when I change languages. How should I handle these hardcoded links?
Is this what
wpm_translate_url ($url, $language = '');
is for? If so, how to use it?My current code is like this:
<a href="/contact/" class="btn-outline"><i class="fa fa-chevron-right"></i><?php _e( 'Contact', 'mytheme'); ?></a>
The /contact/ is the link the needs to change to /ar/contact/
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Hardcode links in templates – not changing solution?’ is closed to new replies.