Which code? Maybe You have to translate a text? For translating string use function ‘wpm_translate_string’.
Using WP’s core gettext functions like __() is much safer. Otherwise the theme will crash whenever WP Multilang is disabled.
See https://codex.wordpress.org/Plugin_API/Filter_Reference/gettext
I added a html for a custom link button, you can see it at the very top of the site here —> http://smartiumtech.com/ (the red button called “Acceso Cliente”)
This is the html:
<div class=”botonclientes”>
<i class=”fa fa-angle-right”> INGRESO CLIENTE</i>
</div>
-
This reply was modified 6 years, 4 months ago by CarlosDev.
Try:
<i class=”fa fa-angle-right”><?php _e('[:it]Ingreso cliente[:en]Client access[:]'); ?></i>
Thanks for your answer Soft79
“:it” is for italian?
The buttontext is in Spanish, so I think I should use “:es” right?
Please let me know, thanks!
-
This reply was modified 6 years, 4 months ago by CarlosDev.
I get a “nonce_failure” when I try to update header.php in the WordPress editor
Yes, should be :es. Try editing using ftp.
You are using a child theme, right? Otherwise changes will be lost on any update.
https://codex.wordpress.org/Child_Themes
No FTP access 🙁
Please check this part of the code [:en]Client access[:]
Is there something missing?
-
This reply was modified 6 years, 4 months ago by CarlosDev.
<i class=”fa fa-angle-right”><?php _e('[:es]Ingreso cliente[:en]Client access[:]'); ?></i>
No file access through cpanel or something similar? You take a risk if you don’t have file access. One typo and you can brick your site.
You did the trick Soft!
3 weeks trying this and it was so simple!
Thank you so much, I really appreciate your time 🙂
Thank the author of the plugin for making this possible!
@josk79
Thanks for sharing this valuable tip!