Tagged: 

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #5515

    Hello, the widgets in this theme (specifically Categories, Ratings, etc) are 2-column and it is creating too many line breaks, since my categories have long names. How can I modify these widgets so that they only display things in 1 column?

    #50652

    Hey,

    in style.css search for following code:

    #top .sidebar .widget_archive ul li, #top .sidebar .widget_meta ul li, #top .sidebar .widget_categories ul li, #top .sidebar .special_cat ul li{
    width:50%;
    }

    and replace it with:

    #top .sidebar .widget_archive ul li, #top .sidebar .widget_meta ul li, #top .sidebar .widget_categories ul li, #top .sidebar .special_cat ul li{
    width:100%;
    }

    #50653

    Thanks – it fixed the category box. Looks like the “ratings” widget is unaffected and the stars force themselves after a line break (?)

    #50654

    Can you post a link to your website please?

    #50655

    unfortunately its on a staging server – is there anything I can give you to help?

    Basically, even with 100% width, the Rating widget will look like this:


    Highest Rated Articles

    My new article

    ***** (0.00 out of 5)


    …instead of this, which is what I want:


    Highest Rated Articles

    My new article ***** (0.00 out of 5)


    If you edit the code to display 100% for widgets, then add that “Ratings” widget, you’ll see the same thing!

    #50656

    Try to add following code to style.css (at the very bottom):

    #top .sidebar .box.widget_ratings-widget ul li a {
    display: inline;
    }

    #50657

    Hmm, didn’t fix it…WP Ratings must be really stubborn :(

    #50658

    Not sure why the sidebar ratings don’t display correct. It works on my test server and localhost – can we wait until you’ve a live site where I can ivestigate the problem with firebug?

    #50659

    Hi again, actually – I see that WP Post Ratings has a new update. I updated the plugin and your fix actually worked; however, it is a little mis-aligned when the stars are on the same line as the page name. Also, the stars now have a 1 px border around them that won’t go away.

    I think it might be best to have the stars underneath the page name after the update….now, to figure out how to get rid of the border! I used this in the CSS, but the border is still there:

    /* attempt to fix star ratings so they appear to the right of a page title in the widget */

    #top .sidebar .box.widget_ratings-widget ul li a {

    display: inline;

    border:none;

    }

    #50660

    Hey,

    is it really not possible to link to an online version? It’s difficult to address your problem without seeing anything. You could install FireBug, a FireFox addon and inspect the element, then you can easily check for unwanted elements.

Viewing 10 posts - 1 through 10 (of 10 total)

The topic ‘How to modify widgets so that they're not 2-column?’ is closed to new replies.