Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Style in Line 238 (Solved) #6

Open
debrianruhut opened this issue Jul 27, 2019 · 0 comments
Open

Issue with Style in Line 238 (Solved) #6

debrianruhut opened this issue Jul 27, 2019 · 0 comments

Comments

@debrianruhut
Copy link

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.

@debrianruhut debrianruhut changed the title Issue with Style in Line 238 Issue with Style in Line 238 (Solved) Jul 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant