chrisboggs
Member
Posted 1 year ago #
Hi Codex,
I have a site that I am putting together for a friend using the "Evander" Theme located here:http://www.jwaterexecutiverecruiter.com/
I want to know how to lengthen the post titles under "Popular Posts" in the left hand column. Seems like it must be a php solution I am looking for but I don't know. Any ideas?
chrisboggs
Member
Posted 1 year ago #
I waited 3 days and didn't hear from anyone so I had enough time to figure it out for myself. Here is what I found and maybe it will help someone else.
The titles of my "Popular Posts" in the sidebar of a child theme based upon the them called "Evander" were far too short making ugly titles. In 'sidebar.php" look for this code:
<h3>" title="<?php the_title(); ?>"><?php echo substr($post->post_title,0,20); ?></h3>
and change the second parameter of "post_title" (where it says "20" in my example) to whatever length/# of characters you desire.
-c-