I have a problem title post homepage language link?

Discussion in 'InkThemes-Support Working Hours' started by thanawit, Jan 27, 2015.

Thread Status:
Not open for further replies.
  1. thanawit

    thanawit New Member

    Joined:
    Jan 16, 2015
    Messages:
    8
    Likes Received:
    0
    My website is Thai language. I have a problem title post homepage language link?
    - where i go to edit file?
    Thank you.
     

    Attached Files:

    • 111.png
      111.png
      File size:
      84.6 KB
      Views:
      3
  2. Pramod

    Pramod Guest

    Joined:
    Aug 8, 2014
    Messages:
    2,847
    Likes Received:
    63
    Hello !


    You can find these in index.php file in between <h6>.....</h6> tag.
    Like this
    <h6 class="title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
    <?php
    $max_length = 50;
    $title = get_the_title( $post->ID );
    echo substr( $title, 0, $max_length );
    if ( strlen( $title ) > $max_length )
    echo "...";
    ?>
    </a></h6>

    Thanks & Regards
    Pramod
     
  3. thanawit

    thanawit New Member

    Joined:
    Jan 16, 2015
    Messages:
    8
    Likes Received:
    0
    Ok Perfect. I went to edit function substr to mb_substr it's very good. Thank you very much.
     
Thread Status:
Not open for further replies.

Share This Page