How to expand title length

Discussion in 'WordPress' started by wwe9112, Apr 20, 2011.

  1. #1
    OK, another problem I have been having is when i type in a title after a few characters it goes ... and you can't see the whole title. How do I make it show the whole title? If you look at my site you will see what I am meaning.

    Thanks.
     
    wwe9112, Apr 20, 2011 IP
  2. kiramanic

    kiramanic Peon

    Messages:
    205
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It'll be a theme function somewhere. Have you edited the theme yourself already? I only ask because it looks different to the demo on the theme site but I guess this could be an alternative layout.

    First place to check is probably functions.php, see if you can spot any fucntions with a likely looking name and a number somewhere in it! I am specific :)
     
    kiramanic, Apr 20, 2011 IP
  3. wwe9112

    wwe9112 Guest

    Messages:
    186
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I dont see anything about a title length in there. And it was an alternitive layout for the theme.
     
    wwe9112, Apr 20, 2011 IP
  4. kiramanic

    kiramanic Peon

    Messages:
    205
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Downloaded the theme and I think I've found it, it's a bit of a weird structure which is why you couldn't see it :)

    As far as I can tell there are two instances of this, both in index.php.

    Search for

    echo truncate($title, 40, '...');
    Code (markup):
    and just change the 40 to whatever you want the character limit to be. Make it some huge number if you don't want to set an upper limit. Change both instances of that (they're pretty close together in index.php) and fingers crossed that'll be it.
     
    kiramanic, Apr 20, 2011 IP
  5. wwe9112

    wwe9112 Guest

    Messages:
    186
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    It worked thank you soo much for your help. I am going to send you a pm.
     
    wwe9112, Apr 20, 2011 IP