Translate virtue portfolio_link
-
Hi, I’m working around to get translated the portfolio link, which is the link for the All Projects Portfolio Page set in the theme options (Page/Post settings tab).
I’ve manually added the string to the Polylang table with the following, into /virtue_child/function.php :
// Virtue Portfolio Link translation pll_register_string('portfolio_link',$virtue['portfolio_link'],'virtue');I’m now able to set the page id for each language, but I’m not familiar yet with the pll_ functions and I can’t find how to properly modify the template to get the string translated in front. See Function Reference in Polylang Documentation: https://polylang.pro/doc/function-reference/
Into Virtue theme, ‘portfolio_link’ is called, for example, into /templates/content-singleportfolio.php line 7:
<a href="<?php echo get_page_link($virtue["portfolio_link"]); ?>">How can I get the translated string in this case?
Thanks in advance
The topic ‘Translate virtue portfolio_link’ is closed to new replies.
