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?
How to modify widgets so that they're not 2-column?
10 posts from 3 voices-
Posted 1 year ago #
-
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%; }Posted 1 year ago # -
Thanks - it fixed the category box. Looks like the "ratings" widget is unaffected and the stars force themselves after a line break (?)
Posted 1 year ago # -
Can you post a link to your website please?
Posted 1 year ago # -
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 ArticlesMy new article
***** (0.00 out of 5)
------------------------------...instead of this, which is what I want:
-----------------------------
Highest Rated ArticlesMy 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!
Posted 1 year ago # -
Try to add following code to style.css (at the very bottom):
#top .sidebar .box.widget_ratings-widget ul li a { display: inline; }Posted 1 year ago # -
Hmm, didn't fix it...WP Ratings must be really stubborn :(
Posted 1 year ago # -
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?
Posted 1 year ago # -
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;
}Posted 1 year ago # -
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.Posted 1 year ago #
Reply
You must log in to post.














