By Fred on Friday, 14 March 2014
Posted in General Issues
Replies 2
Likes 0
Views 796
Votes 0
How can I hide the 2nd Sub Category so there is only one SubCategory showing?

Something like:
-Parent
--Child1

I was trying to add this code through the Categories.php file which I semi got it to work but it still puts the divs there for the child2 categories and continuing the Line that links the categories. http://puu.sh/7tUBa.png


<?php if( $category->depth >= '2' ){ ?>
<div style="display:none;">
<?php }else{ ?>
Well, I sorta found a solution for this but it still is writing the divs for Child-2 which I'd like it not to write them if at all possible. The solution I found for right now is to decrease the margin-bottom to 3px on child-1. So if there is a way to completely not write the 2nd child that would be awesome.
·
Friday, 14 March 2014 01:46
·
0 Likes
·
0 Votes
·
0 Comments
·
You can try something like this just after the for loop


<?php if ($category->dept ) { continue; } ?>
·
Friday, 14 March 2014 02:06
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post