-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels