Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1112605

    Hi everyone, I have some problems in the Theme, some translation and other positioning elements. Can you help me? I will put the image here of each one so that you can help me.

    Problem 1:

    I use the Woocommerce plugin. On the product page are displayed these 2 texts “Sort By Default” and “Display 15 products per page”. I`m want translation this elements for Portuguese. Replace with “Organizado por padrão” and “Exibindo 15 produtos por pagina”. How to translate?

    Page: https://casazero.cz/loja/quero-comprar

    Problem 2:

    I inserted the “Product Slider” element on my homepage and inside the product column “Show Details” is displayed and I wanted to substitute “Mostrar Detalhes”, how to translate?

    Page: https://casazero.cz/loja/ – Section “Produtos”

    Problem 3:

    I chose in the WordPress settings that users can register, because my site has a points system and the points are registered in their account. However, on the login page, on the mobile phone in small screens (Iphone SE) the “Forgot Password” field, which in Portuguese is “Perdeu a senha?” appears broken, not on the same line. How do I resolve this? The registration page is below for you to access:

    Page: https://casazero.cz/loja/my-account/

    Problem 4:

    The register part appears the “First Name” and “Last Name” fields, I need to translate to “Nome” and “Sobrenome”. The “Registrar” button appears outside the square line, how to arrange to have the correct design?

    Problem 5:

    In the checkout page, in the version mobile on smaller screens (Iphone SE), the menu and the magnifying glass appear in the top glued together, how to solve?

    Page: https://casazero.cz/loja/checkout/

    Sorry guys, there are a lot of problems, if you guys will help me, I’ll be very grateful.
    I left temporary access data in the private part of the post so that if someone who can help needs is there.

    #1112687

    Hey LuizaCFranco,
    Thanks for the login, I see that you are not using any translating plugins, you may find it easier to manage these translations with a plugin such as Say What Plugin
    Try adding the text you would like to replace, and your new text, and use ‘avia_framework’ as the Text Domain. Or use ‘woocommerce’ as the Text Domain if it’s in your shop. This screenshot shows a example.
    setting_breadcrum
    I looked for the woocommerce portuguese translation files but it seems they are not done yet, please see here, but they are very close, perhaps if you have a little time to share you could join the group and help complete it.

    I took a look at your first issue, with the translation of the drop down options, but using jQuery to translate all of the options is not practical, please try using the plugin above.

    For your second issue, “Show Details” I recommend the plugin again, but I also wrote this jQuery code if you want to try it:
    Try adding this code to the end of your functions.php file in Appearance > Editor:

    function custom_script_one(){
      ?>
      <script>
    (function($){
      $(document).ready(function(){
      $('a.button.show_details_button').each(function() {
        var text = $(this).text();
        $(this).text(text.replace('Show Details', 'Mostrar Detalhes')); 
    });
    });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'custom_script_one');

    For issue 3, there is more text than room, so we could make the text very small or we can remove some margin with this css:
    Please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:

    @media only screen and (max-width: 426px) { 
    .woocommerce .login .button {
        margin: 0 !important; 
    }
    }

    It is still two lines, but it looks much better.
    Please try and clear your browser cache and check.

    Issue 4: Try adding this code to the end of your functions.php file in Appearance > Editor:

    function custom_script_two(){
      ?>
      <script>
    (function($){
      $(document).ready(function(){
      $('label[for=reg_sr_firstname]').each(function() {
        var text = $(this).text();
        $(this).text(text.replace('First Name', 'Nome')); 
    });
    $('label[for=reg_sr_lastname]').each(function() {
        var text = $(this).text();
        $(this).text(text.replace('Last Name', 'Sobrenome')); 
    });
    });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'custom_script_two');

    and add this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:

    #top form.register {
        padding: 20px 20px 40px 20px !important; 
    }

    For issue 5, we will need to make the logo a little smaller, Please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:

    @media only screen and (max-width: 767px) {
    .responsive .logo img {
        max-width: 70% !important; 
    }
    .responsive #top #wrap_all .main_menu {
        left: 60% !important; 
    }
    }

    Then clear your browser cache and any cache plugin, and check.

    Best regards,
    Mike

    #1113083

    Thanks for the response, you helped me a lot! Almost all my problems have been solved. The only thing that did not work was the javascript code to translate the fields “First Name” and “Last name” into Portuguese. Could you please look? But since I thank you, you have helped me a lot!
    I tried translating the fields using the plugin that you said by putting avia_framework or woocommerce in the text-domain, but it also did not work. I left a login and password in the private field on the top post if you need. Can you help me?

    #1113444

    Hi,

    Where did you add the script? I can’t find it in the functions.php file. It’s not working because it’s being loaded before the jQuery library.

    FYI, you have to create a child theme if you want to preserve those modifications on theme update.

    // https://kriesi.at/documentation/enfold/child-theme/

    Best regards,
    Ismael

    #1113671

    The code is there in the functions.php file, but it does not work

    #1114145

    Hi,
    Thanks for the feedback, I found that your “Load jQuery in your footer” option was checked so the script was not running correctly.
    Please see the screenshot in Private Content area and Please clear your browser cache and check.
    I also disabled your css file merging temporarily to clear the site cache, you can restore if you with but I recommend not enabling until your site is done so it won’t cause you issues.

    Best regards,
    Mike

    #1120314

    Thank you! You can close this post

    #1120342

    Hi,

    I’m glad this was resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘Help me’ is closed to new replies.