Tagged: x
-
AuthorPosts
-
April 25, 2016 at 9:51 am #898729
erfektoParticipantHello,
Please, I would like to translate the extra content side menu.
<p class="horario-inicio man" style="text-align:center; font-size:15px; line-height:18px; padding:0;">Reservas - 963 248 677<br/>Playa de Pinedo nº 20<br/>46012 Valencia<br/>Abierto de Martes a Domingo <br/>de 10:30h a 18:00h</p>http://www.restaurantecaldeu.net/
I have added the text in the file:
mychildtheme/framework/views/global/_nav-primary.php
and I like it to be translatable
Thanks
April 25, 2016 at 11:20 pm #899673
RupokMemberApril 26, 2016 at 2:11 am #899829
erfektoParticipantThank you very much, I’ll try 🙂
April 26, 2016 at 2:26 pm #900852
Prasant RaiModeratorYou are most welcome. Let us know how it goes. 🙂
May 17, 2016 at 5:39 am #995203
erfektoParticipantI’ve been with other work. I will tell you soon
thanks
May 17, 2016 at 6:23 am #995243
ChristopherModeratorYou’re welcome.
May 17, 2016 at 6:48 am #995261
erfektoParticipantHI,
I think POEDIT is not the solution. WPML neither recognizes the string. The problem is that I have written html?
How I can write a string of translatable text?
THANKS
This is my file:
<?php // ============================================================================= // VIEWS/GLOBAL/_NAV-PRIMARY.PHP // ----------------------------------------------------------------------------- // Outputs the primary nav. // ============================================================================= ?> <a href="#" class="x-btn-navbar collapsed" data-toggle="collapse" data-target=".x-nav-wrap.mobile"> <i class="x-icon-bars"></i> <span class="visually-hidden"><?php _e( 'Navigation', '__x__' ); ?></span> </a> <nav class="x-nav-wrap desktop" role="navigation"> <?php x_output_primary_navigation( 'desktop' ); ?> </nav> <div class="x-nav-wrap mobile collapse"> <?php x_output_primary_navigation( 'mobile' ); ?> </div> <!--ADDED TEXT--> <p class="horario-inicio man" style="text-align:center; font-size:15px; line-height:18px; padding:0;">Reservas - 963 248 887<br/>Playa de Pinedo nº 20<br/>46012 Valencia<br/>Abierto de Martes a Domingo <br/>de 10:30h a 18:00h</p> <?php x_social_global(); ?> <!--Up to this point-->This is the result
May 17, 2016 at 8:00 am #995342
Paul RModeratorHi,
You can try this code instead.
<p class="horario-inicio man" style="text-align:center; font-size:15px; line-height:18px; padding:0;"><?php _e( 'Reservas - 963 248 677<br/>Playa de Pinedo nº 20<br/>46012 Valencia<br/>Abierto de Martes a Domingo <br/>de 10:30h a 18:00h', '__x__' ); ?></p>The make sure to translate the text in your poedit.
Thanks
May 20, 2016 at 10:59 am #1001704
erfektoParticipantIt does not work in poedit. No is the string in the file 🙁
But I found something:
<?php _e( “String that I want to translate” ); ?>
https://wpml.org/forums/topic/adding-strings-in-the-theme/
RESOLVED.
another question, please:
Why can not see three stripes. It is in this way from day one.
Thanks
May 20, 2016 at 5:28 pm #1002186
JadeModeratorPlease add this CSS in the style.css file of your child theme:
x-icon-bars:before { content: "\f0c9"; }Hope this helps.
May 21, 2016 at 2:50 am #1002706
erfektoParticipantThanks works
My problems are solved 🙂
May 21, 2016 at 5:17 am #1002794
ThaiModeratorYou’re most welcome 🙂
If you need anything else please let us know.
May 31, 2016 at 11:09 am #1018370
erfektoParticipant🙂 Thanks
May 31, 2016 at 11:21 am #1018402
Prasant RaiModeratorYou are most welcome. 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-898729 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
