Support » Themes and Templates » Long Titles won’t wrap in Recent Post Sidebar

  • I have searched for this answer, but I think it is unique. I am using a theme called YourBlog 2.0. Most of my titles are very long. The theme puts a small gif (that looks like a bullet) in front of the title in the “Recent Posts” sidebar widget (standard WP one). Unfortunately, because many of my titles are long, it puts a bullet on the 2nd line of the title. See: I need to put in something like(psduecode): if len(title)>25 then no bullet on 2nd line.

    I am somewhat familiar with coding, but I can’t seem to find the code where it builds the Sidebar of Recent Posts (which I believe is considered an Archive Sidebar). It appears to be calling a function called: wp_get_archives. Where is that?

    Thanks in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • #sidebar ul ul{
    	padding: 0px;
    	margin: 0px;
    	background-image: url("images/list1.gif");
    	background-repeat: repeat-y;
    	width: 186px;
    	padding-bottom: 3px;
    	border: 1px solid #DFE882;

    Remove the background-repeat: repeat-y;. I think this will fix your problem.




    in 2.2.x wp_get_archives is defined inside wp-includes/general-template.php

    Unfortunately removing the repeat did not work. The other file does contain the code to pull the data for Recent Posts. I finally found the place the HTML is generated which is the Widgets.php code.

    Now I just need to learn php!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Long Titles won’t wrap in Recent Post Sidebar’ is closed to new replies.