newby question: modifying child theme functions.php, truncated title

I’m totally new to wordpress and modifying a child theme.

I see that my theme has a function that abbreviates the blog post titles to 40 characters or less, when displaying the titles on the main page. This is the context of the code:

<?php if ( get_the_title() ){ $title = the_title('', '', false); echo evltruncate($title, 40, '...'); } ?>

Specifically, it is the evltruncate function that is abbreviating the title and adding the ellipses.

I want this fully removed, and just put the full title names. What is the code that I would add to the child theme’s function.php?

The website can be seen here:
http://translations.nickblockphd.com/yiddish-translations/

Try changing this…

[php]echo evltruncate($title, 40, ‘…’); }[/php]

to:

[php]echo $title; [/php]

Like topcoder said, remove the entruncate funtion.
[php]echo $title;[/php]

The reason this helps is because [php]echo entruncate($title, 40);[/php]
is saying “Tell the browser (the first 40 letters of the $title)”, as opposed to [php]echo $title;[/php] “Tell the browser (the $title)”

Sponsor our Newsletter | Privacy Policy | Terms of Service