• Resolved sakarya

    (@sakarya)


    I’ve a css problem with wp_list_categories.

    if there are sub-categories height:200px; or height:0;

    How can i do it?
    Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • please post a link to your site to illustrate the problem.

    Thread Starter sakarya

    (@sakarya)

    URL with sub-categories: https://connect16.com/firma/alisveris/
    URL without sub-categories: https://connect16.com/firma/alisveris/alisveris-merkezleri/

    if the category doesn’t have a sub-category, becomes an empty place under the category title.

    How can i remove it?

    Thanks.

    please post the code of that category section –

    everything from:

    <div id="sol">
    		<div id="kategori">

    to:

    </div>
    		<div class="clear"></div>
    		<div id="icerik">

    a: the ul tags are missing;
    b: it might help to add another <div class="clear"></div> bit there;
    c: style.css needs changing to an automatic height in the style of #sol #kategori

    Thread Starter sakarya

    (@sakarya)

    Can i check, it’s a main category or sub-category?

    Thread Starter sakarya

    (@sakarya)

    Category Listing Code;

    <?php
     $cat = get_query_var('cat');
     wp_list_categories('child_of='.$cat.'&title_li=&show_option_none=&depth=0');
    ?>

    try to change the respective section to:

    <div id="sol">
    		<div id="kategori">
    <h1>????use the existing code here??????</h1>
    <ul>
    <?php
     $cat = get_query_var('cat');
     wp_list_categories('child_of='.$cat.'&title_li=&show_option_none=&depth=0');
    ?>
    </ul>
    <div class="clear"></div>
    </div>
    		<div class="clear"></div>
    		<div id="icerik">
    .......

    (hopefully you should be able to identify and change that above section)

    and change the styles to:

    #sol #kategori {
      width:730px;
      height:auto;
    padding-bottom: 10px;
      background-image:url(images/alt-arkaplan.jpg);
      border-bottom:1px solid #ddd;
      border-top:1px solid #ddd; }

    Thread Starter sakarya

    (@sakarya)

    Oh yesss. Thanks alchymyth..

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘A CSS Problem with wp_list_categories’ is closed to new replies.