Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #1294205

    Hi,

    1.
    In my recent website: https://brancadeneve.org/inicio
    On front page, I have a Blog Post, but I can’t translate the “Read More” button.
    Can you please tell me where to go to have it translated?
    https://brancadeneve.org/Blog_ReadMore.jpg

    2.
    I have 5 Icon Boxes in a Row, and I would like to have all with the same Eight. But due to the length of the text it’s impossible. Can you please tell me what I can do to have it correct at the same eight?
    Do I have to use a PlugIn, type MatchEight? If so, what is the Item class to use?
    https://brancadeneve.org/IconBoxes.jpg

    Thanks and Best Regards
    Joao Casanova

    #1294670

    Hey João,

    Thank you for the inquiry.

    1.) It is possible that the translation file is incomplete, so you will have to add the missing translations manually using the following plugin.

    // https://wordpress.org/plugins/loco-translate/

    Or edit the includes > loop-single.php file directly, and edit this code around line 123.

    $current_post['content'] 	= $blog_content == 'excerpt_read_more' ? $current_post['content'].'
    <div class="read-more-link"><a href="' . get_permalink() . '" class="more-link">' . __( 'Read more', 'avia_framework' ) . '<span class="more-link-arrow"></span></a></div>
    ' : $current_post['content'];
    

    2.) We could use this css code to apply a minimum height to the iconbox content container.

    .iconbox_content {
        min-height: 115px;
    }
    

    Best regards,
    Ismael

    #1294789

    Hi Ismael,

    Thanks,

    Concerning 2.) Icon Box, solved and working nice.

    But 1). I can’t find the includes/loop-single.php anywere in the server. Already made a search on entire Public Html folder and nothing.
    Installed Loco-Translate and nothing too, I can’t find the Read More to translate.
    Can you please check the php file to be edited?

    You can find the Read More button here on this page: https://brancadeneve.org/inicio

    Thanks & Regards
    Joao Casanova

    • This reply was modified 3 years, 7 months ago by bigamist.
    #1295024

    Hi Ismael,

    I found the file in Includes named “loop-portfolio-single.php”, I changed the “Read more” but even changed to portuguese “Leia mais” it always show the “Read more” on front.

    Can you please help? I really need to translate those 2 words.

    Regards
    Joao

    • This reply was modified 3 years, 7 months ago by bigamist.
    #1295085

    Hi,

    Thank you for the update.

    Try to edit the themes/enfold/config-templatebuilder/avia-shortcodes/postslider/postslider.php file, and look for this code around line 712.

    	$permalink = '
    <div class="read-more-link"><a href="' . get_permalink( $the_id ) . '" class="more-link">' . __( 'Read more', 'avia_framework' ) . '<span class="more-link-arrow"></span></a></div>
    ';
    

    You can also use the POEdit software and add the translations to the language files manually.

    // https://poedit.net/

    Best regards,
    Ismael

    #1295262

    Hi Ismael,

    I will take the opportunity and go to translate the entire PO to pt.PT.
    How do I then insert it into the program? Just put the files in the Languages folder?
    Do you want the translation for you to insert in the next update?

    It will take a few days, because it’s a huge File.

    Best Regards
    Joao

    #1295499

    Hi Ismael , again

    Sorry, but no matter what we translate the “Read More” in the PO files, never work.

    As you said I changed the PHP file postslider.php as follows but not working too

    $permalink = '<div class="read-more-link"><a href="' . get_permalink( $the_id ) . '" class="more-link">' . __( 'Leia mais', 'avia_framework' ) . '<span class="more-link-arrow"></span></a></div>';
    				$prepare_excerpt = ! empty( $entry->post_excerpt ) ? $entry->post_excerpt : avia_backend_truncate( $entry->post_content, apply_filters( 'avf_postgrid_excerpt_length', $excerpt_length ) , apply_filters( 'avf_postgrid_excerpt_delimiter' , ' ' ), '…', true, '' );

    Any more ideas. This is really frustrating.

    Regards
    Joao

    #1295510

    Hi Ismael,

    I managed to change something there in the crazy “Read more” button:
    I used this code, but the result is not the expected since the Button disappear and remain only the Letters:

    
    .more-link {
        visibility: hidden;
        position: relative;
    }
    
    .more-link:after {
        visibility: visible;
        position: absolute;
        top: 0;
        left: 0;
        content: "Leia mais";
    }

    Look the result image here: https://brancadeneve.org/MoreLink2.jpg

    Can you please help?

    Thanks & Regards

    Joao

    • This reply was modified 3 years, 7 months ago by bigamist.
    #1295536

    the po – mo file ( both had to be edited)
    if you have changed the po file with poedit for example – the mo file is generated by that program by default – both files had to be uploaded.
    best would be to upload them into a subfolder of your child-theme – name it : lang

    then to use a child-theme lang file you had to put this in child-theme functions.php:

    function overwrite_language_file_child_theme() {
        $lang = get_stylesheet_directory().'/lang';
        return $lang;
    }
    add_filter('ava_theme_textdomain_path', 'overwrite_language_file_child_theme');

    but quick and dirty can be that solution – without the above said: ( give it a try )
    again this is placed in child-theme functions.php

    function my_text_strings( $translated_text, $text, $domain ){
    switch ( $translated_text ){
        case 'Read more':  $translated_text = __( 'Leia mais', $domain ); break ;   //for more translations duplicate this line to the next one
      }
      return $translated_text;
    }
    add_filter('gettext', 'my_text_strings', 20, 3);
    #1295589

    Hi,

    I use Poedit PRO, and both files were uploaded, but nothing works concerning the “Read more” button.
    It’s frustrating not to find a solution to something like this. But with CSS I’m very near, I only need someone, CSS expert, to see what I did wrong on the code.

    Thanks for all cooperation
    Best Regards
    Joao

    • This reply was modified 3 years, 7 months ago by bigamist.
    #1295591

    and you did not check that only on your child-theme functions.php:

    function my_text_strings( $translated_text, $text, $domain ){
    switch ( $translated_text ){
        case 'Read more':  $translated_text = __( 'Leia mais', $domain ); break ;   //for more translations duplicate this line to the next one
      }
      return $translated_text;
    }
    add_filter('gettext', 'my_text_strings', 20, 3);
    #1295599

    Hi Guenni,

    Sorry, I really do not know if I have a Child -Theme. I use Enfold with no Theme at all and make my websites from there.
    I read some literature about the Child-Theme but goes a bit beyond my knowledge.

    How do I know if I have a Child-Theme? Is the Child-Theme, already there? Not using any Theme, just using the Avia-Builder and the Theme Options / General Layout / General Styling / Advanced Styling, what theme am I using? If I work on Theme Option, logic I will have a Theme there, maybe the Child one?

    Thankful in advance for the help!

    Regards
    João

    #1295601

    try this only in quick css:

    .more-link {
      border: none !important;
    }
    
    .more-link::after {
      content: "Leia mais";
      display: block;
      width: 250px;
      height: auto;
      position: absolute !important;
      top: auto;
      bottom: 42px;
      background-color: #a22137;
      color: #fff;
      padding: 10px 0;
      margin: 30px auto 20px auto;
      border: 2px solid #fff;
      transition: all 0.5s ease
    }
    
    .more-link:hover:after {
      background-color: green;
      transition: all 0.5s ease;
    }
    #1295647

    Hi Guenni,

    You are the man, thanks a lot. Works wonderful. I have another website, from 2019 with the same problem that I had never been able to solve, but I go to solve it now.
    Look here

    Best Regards
    João

    • This reply was modified 3 years, 7 months ago by bigamist.
    #1295667

    Hi João,

    Guenni’s code should still work on the site you pointed out. :)


    @Guenni007
    thanks for helping out :)

    Best regards,
    Nikko

    #1295682

    yes and if you change content of hover it will do that too:

    .more-link:hover:after {
      content: "click";
      background-color: green;
      transition: all 0.5s ease;
    }
    #1295765

    Hi Nikko,

    Guenni007, solved a problem for me that I’ve been trying to solve for at least 1 year.
    Look This Post

    Thanks Guenni again.

    Best Regards
    Joao

    • This reply was modified 3 years, 7 months ago by bigamist.
    #1295780

    Hi Joao,

    I see, I’m happy to hear that :)
    Then, we’ll be closing this thread.
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 18 posts - 1 through 18 (of 18 total)
  • The topic ‘Icon Boxes & Read More on Blog’ is closed to new replies.