-
AuthorPosts
-
April 13, 2021 at 7:37 pm #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.jpg2.
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.jpgThanks and Best Regards
Joao CasanovaApril 16, 2021 at 5:00 am #1294670Hey 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,
IsmaelApril 16, 2021 at 12:59 pm #1294789Hi 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.
April 18, 2021 at 9:32 pm #1295024Hi 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.
April 19, 2021 at 5:45 am #1295085Hi,
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.
Best regards,
IsmaelApril 19, 2021 at 12:56 pm #1295262Hi 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
JoaoApril 20, 2021 at 11:20 am #1295499Hi 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
JoaoApril 20, 2021 at 12:16 pm #1295510Hi 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.
April 20, 2021 at 1:34 pm #1295536the 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 : langthen 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.phpfunction 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);
April 20, 2021 at 5:01 pm #1295589Hi,
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.
April 20, 2021 at 5:03 pm #1295591and 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);
April 20, 2021 at 5:39 pm #1295599Hi 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ãoApril 20, 2021 at 6:16 pm #1295601try 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; }
April 21, 2021 at 2:18 am #1295647April 21, 2021 at 5:26 am #1295667Hi João,
Guenni’s code should still work on the site you pointed out. :)
@Guenni007 thanks for helping out :)Best regards,
NikkoApril 21, 2021 at 6:14 am #1295682yes 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; }
April 21, 2021 at 11:14 am #1295765Hi Nikko,
Guenni007, solved a problem for me that I’ve been trying to solve for at least 1 year.
Look This PostThanks Guenni again.
Best Regards
Joao- This reply was modified 3 years, 7 months ago by bigamist.
April 21, 2021 at 11:37 am #1295780Hi 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 -
AuthorPosts
- The topic ‘Icon Boxes & Read More on Blog’ is closed to new replies.