Skip to content

Issue with Style in Line 238 (Solved) #6

@debrianruhut

Description

@debrianruhut

For this issue the float style makes the categories layout overflow, so I just remove the style because it's not necessary at all:

echo "<style>.dcw_c1 {float:left; width:100%} .dcw_c2 {float:left; width:50%} .dcw_c3 {float:left; width:33%}</style>";
echo "<ul class='dcw'>";
wp_list_categories('orderby='.$sort_order_by.'&order='.$sort_order_as.'&use_desc_for_title='.$use_desc_for_title.'&show_count=' . $showcount_value . '&child_of=' . $cat_id . '&hide_empty=' . $display_empty_categories . '&title_li=&number=' . $dcw_limit . '&exclude=' . $dcw_exclude . '&depth=' . $dcw_depth);
echo "</ul>";
$class_definer = "dcw_c" . $dcw_column;
echo "<script>jQuery('ul.dcw').find('li').addClass('$class_definer');</script>";    

Replace to:

// echo "<style>.dcw_c1 {float:left; width:100%} .dcw_c2 {float:left; width:50%} .dcw_c3 {float:left; width:33%}</style>";
echo "<ul class='dcw'>";
wp_list_categories('orderby='.$sort_order_by.'&order='.$sort_order_as.'&use_desc_for_title='.$use_desc_for_title.'&show_count=' . $showcount_value . '&child_of=' . $cat_id . '&hide_empty=' . $display_empty_categories . '&title_li=&number=' . $dcw_limit . '&exclude=' . $dcw_exclude . '&depth=' . $dcw_depth);
echo "</ul>";
// $class_definer = "dcw_c" . $dcw_column;
// echo "<script>jQuery('ul.dcw').find('li').addClass('$class_definer');</script>";

I just comment the code that not functional for me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions