limiting number of characters in post heading

Discussion in 'BlogsTrend WordPress Theme' started by honory2009, Dec 20, 2015.

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

    honory2009 Member

    Joined:
    Oct 10, 2013
    Messages:
    169
    Likes Received:
    3
    How can I restrict number of characters (with space) that will be inserted here - at post's title/header?
    Eg. I want all post's title/heading not to exceed say, 43 characters and spaces.
     

    Attached Files:

  2. priya

    priya Guest

    Hello,

    Greetings from InkThemes!

    Please follow the screenshot given below.

    blogstrend_limit_post_title.png

    For your information, I am using "WP-Editor" plugin to edit files.

    You can also download and use it from the link https://wordpress.org/plugins/wp-editor/.

    After activating this plugin, you will get the same screen as shown in the screenshot.

    Hope it will resolve your issue

    Do let me know if you need more assistance,

    Thanks & Regards!
    Priyanka
    InkThemes.com
     
  3. honory2009

    honory2009 Member

    Joined:
    Oct 10, 2013
    Messages:
    169
    Likes Received:
    3
    Hi Priyanka,
    can you pleasde send me the code? I tried to type it but some characters/letters are not clear to me?

    best regards
    Honory
     
    smith likes this.
  4. priya

    priya Guest

    Hello Honory,

    Sure!!

    Here;s the code,
    PHP:
    <?php if (strlen($post->post_title) > 43) {
    echo 
    substr(the_title($before ''$after ''FALSE), 043) . '...'; } else {
    the_title();
    ?>
    Do let me know if you need more assistance,

    Thanks & Regards!
    Priyanka
    InkThemes.com
     
  5. honory2009

    honory2009 Member

    Joined:
    Oct 10, 2013
    Messages:
    169
    Likes Received:
    3
    thanks Priyanka
     
  6. honory2009

    honory2009 Member

    Joined:
    Oct 10, 2013
    Messages:
    169
    Likes Received:
    3
    Blogs trend theme compatible with wordpress 4.4?
     
  7. priya

    priya Guest

    Yes Honory,

    The theme is fully compatible...

    Thanks & Regards!
    Priyanka
    InkThemes.com
     
    smith likes this.
  8. honory2009

    honory2009 Member

    Joined:
    Oct 10, 2013
    Messages:
    169
    Likes Received:
    3
    Thank you, Priyanka
     
Thread Status:
Not open for further replies.

Share This Page