How to translate and how to make a widget

Hi, 

how can I translate "Read more" in a blog to czech language? And what about comments, how can I translate for example: Leave a Reply, Post comment etc.?

And How can I do widget for the Recent posts as you have in the theme: with small picture and name of the article and calendar icon etc.?

Thanks a lot

KaterinaCern

Comments

  • edited January 2016
    Hey katerina

    follow given instruction 

    /* for make read more button translation 

    1. go to in your theme directory >> functions.php an go to line number 100 and replace old code with new given code 

    this

    return ' <a href="' . get_permalink() . "#more-{$post->ID}\" class=\"hc_blog_btn\">Read More<i class='fa fa-long-arrow-right'></i></a>";


    with given new 

    return ' <a href="' . get_permalink() . "#more-{$post->ID}\" class=\"hc_blog_btn\">".__("
      Read more","health")."<i class='fa fa-long-arrow-right'></i></a>";


    /* for change text Leave a Reply, Post comment etc.  */

    go to in your theme directory >> comments.php  and go to line number 46,48

    and change text as your need 


    let me know did it work 

    Thanks
    Abhishek

  • for widget 

    go to in your  wordpress admin panel  >> appreance >> widget 

    here you can drag and drop widget in your appropriate section 

    for any more clear have a look in attached screen shot

    Thanks
    Abhishek
    widgetiamgesss.png
    214K
  • about widget

    I did it like you write, but I still have it as you can see in Attach - without photo, without date etc.
    Recent Post.JPG
    29K
  • use text and tag cloud widget

    have a look in attached screen shot 

    Thanks
    Abhishek


    secondwidget.png
    177K
  • I don´t think so that you understand me. I can use widget and I know where. I just want to have Recent posts in design as you have in demo. That means when I put widget Recent post - it should be in this design - but it is not. That is the problem which I have. 

    When I put this widget it shows only name of article but it does not show small picture, date etc. 



  • Let see the attach. I wanna make this to this ;)
    3.jpg
    70K
  • So with the widget is everything okay - I did it. ;) 

    But with this code I have got problem: return ' <a href="' . get_permalink() . "#more-{$post->ID}\" class=\"hc_blog_btn\">".__("
       Read more","health")."<i class='fa fa-long-arrow-right'></i></a>";

    It disapeared a button. As you can see in attach. How can I repair it?
    And what to do for our language characters? 

    Thx a lot for your advice.
    Zobrazit.JPG
    102K
    Výstřižek_1.JPG
    58K
  • Hey

    kindly share your site url 

    Thanks
    Abhishek


  • Hi,

    www.jednicka-v-kancelari.cz
  • oops my mistak

    use this code 

    return ' <a href="' . get_permalink() . "#more-{$post->ID}\" class=\"blog-post-btn\">".__("
       Read more","quality")."<i class='fa fa-long-arrow-right'></i></a>";

    for your comments

    let me know you are using any special character in comment string 

    Thanks
    Abhishek 
  •  
    post button.png
    31K
  • Hi, 

    as you can see there is still some problem: http://jednicka-v-kancelari.cz/category/office-365/ ;

    Yes, in our language we have special characters like: ř, š, í, ě, č, etc. I know that for this characters is possible to put somewhere html code which is showing these characters correct. But which html code and where? :) 

    Thx for your support. 
  • If you can - just send me a full original html of function page and I will fix it by myself. I just need the original Html code (because I am stupid and I did not save it).

    Thx a lot
  • edited January 2016
    Hey 

    you can use this special characters html code table 

    also use this 

    let me know

    Thanks
    Abhishek
  • Cool it works! Thank you for your support.

    And the next, and I hope last question - on my page disappear stripes between clients logo: www.jednicka-v-kancelari.cz

    Do you know why?

    Thanks
  • Glade to know that it works!!

    Kindly create a new ticket 

    closing this 

    Thanks
    Abhishek



This discussion has been closed.