Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Sidebars & Widgets (http://forum.bytesforall.com/forumdisplay.php?f=14)
-   -   [SOLVED] Adding a blank line to separate the categories listing on the sidebar (http://forum.bytesforall.com/showthread.php?t=6466)

beach40 Mar 26, 2010 11:08 AM

[SOLVED] Adding a blank line to separate the categories listing on the sidebar
 
Hello
I would like to add a space between each category as they are listed in the sidebar widget. Anyone know how to do this either by editing the PHP directly or in a configuration somewhere.

PS I wanted to do this in a Twitter Widget and was able to do it by editing the PHP page that is used to send the info to a browser and adding a line break in the code.

Thanks

juggledad Mar 26, 2010 08:20 PM

the category widget is part of the wordpress code - I believe it is part of default-widget.php which is in the includes folder

beach40 Mar 27, 2010 07:28 AM

Thanks I think you are correct with that however I was unable to find the actual section that I need to edit :( Any Ideas?

juggledad Mar 27, 2010 07:36 AM

did you search thru the code for the word 'caterories'?

beach40 Mar 27, 2010 07:52 AM

Yes I did... category.php and category-template.php

There are many references but I can't seem to find the section that sends the list to the browser... :(

paulae Mar 27, 2010 08:37 AM

Use this in the CSS Inserts in theme options:

.cat-item {
line-height: 200%;
}

This is how it looks on my test site:
http://www.skilovers.com/wp/

beach40 Mar 27, 2010 08:49 AM

That's very close however I have categories that are more than one line in that they wrap around and the CSS insert increases the spacing of all the lines not just the spacing of each item. :)

beach40 Mar 27, 2010 09:01 AM

I added a border around the item .cat-item {border: solid 1px #000000;} and that worked like a charm!!

Thanks for the point in the right direction!!


All times are GMT -6. The time now is 12:33 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.