nomad411
(nomad411)
June 29, 2015, 1:42pm
1
Hi again. Following up on http://forum.wpbeaverbuilder.com/support/q/how-do-i-adjust-the-layout-for-the-header/ , how can I make that Header text box translatable by WPML?
I sometimes use PHP code to read the present language and show a French or English string based on it. I’ll go find that code and try it, to see if the box will take PHP, but in case not, or if it’s even simpler than that, I’d be glad to hear.
Thanks
billy
(Billy Young)
June 29, 2015, 1:59pm
2
Hey Gerard,
I am unfortunately pretty unfamiliar with WPML, but I would imagine there has to be an easier way. Have you looked through the WPML settings/documentation?
Best,
Billy
nomad411
(nomad411)
June 29, 2015, 2:04pm
3
With WPMl there are many ways… That text box content could probably be picked up and appear in the String Translations…
Ohhhh! What if I use the site title from WP? Can I use PHP in that box?
<?php $blog_title = get_bloginfo('name'); ?>
. hmmm Nope.
I guess I could do my own template for header.php then? If I wanted it to display the WP code for the title in the header?
billy
(Billy Young)
June 29, 2015, 2:06pm
4
I was actually going to mention going the header.php route or at least that is what first came to mind!
nomad411
(nomad411)
June 29, 2015, 2:08pm
5
I’m no PHP genius though. It,s not as I expected, seems like the code is generated by functions?
So I’d have to override that function in my child functions.php?
Thanks for your time, I’m sure you guys are very busy on that coming update
nomad411
(nomad411)
June 29, 2015, 2:10pm
6
nomad411
(nomad411)
June 29, 2015, 2:17pm
7
YES!!
We Are Awesome! hehe
billy
(Billy Young)
June 29, 2015, 3:09pm
8
Yes, Robbie and I were searching for that, haha.