WordPress.org

Ready to get started?Download WordPress

Forums

Long Titles won't wrap in Recent Post Sidebar (4 posts)

  1. scottficek
    Member
    Posted 6 years ago #

    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: http://www.minnesotainvestmentrealestate.com/. 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.

  2. sasch9r
    Member
    Posted 6 years ago #

    #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.

  3. whooami
    Member
    Posted 6 years ago #

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

  4. scottficek
    Member
    Posted 6 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic