Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #898729
    erfekto
    Participant

    Hello,

    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&ordm; 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

    #899673
    Rupok
    Member

    Hi there,

    Thanks for writing in! Kindly follow our Translation article.

    Cheers!

    #899829
    erfekto
    Participant

    Thank you very much, I’ll try 🙂

    #900852
    Prasant Rai
    Moderator

    You are most welcome. Let us know how it goes. 🙂

    #995203
    erfekto
    Participant

    I’ve been with other work. I will tell you soon

    thanks

    #995243
    Christopher
    Moderator

    You’re welcome.

    #995261
    erfekto
    Participant

    HI,

    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&ordm; 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

    http://www.restaurantecaldeu.net/

    #995342
    Paul R
    Moderator

    Hi,

    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&ordm; 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

    #1001704
    erfekto
    Participant

    It 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

    #1002186
    Jade
    Moderator

    Please add this CSS in the style.css file of your child theme:

    x-icon-bars:before {
        content: "\f0c9";
    }

    Hope this helps.

    #1002706
    erfekto
    Participant

    Thanks works

    My problems are solved 🙂

    #1002794
    Thai
    Moderator

    You’re most welcome 🙂

    If you need anything else please let us know.

    #1018370
    erfekto
    Participant

    🙂 Thanks

    #1018402
    Prasant Rai
    Moderator

    You are most welcome. 🙂

  • <script> jQuery(function($){ $("#no-reply-898729 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>