ZC 1.55.5f Responsive_classic
Apache Version 2.4.34
PHP Version 7.0
MySQL Version 10.2.18-MariaDB
Plugins:
ColumnGridLayout_for_155f
CheckBoxTextBoxIconV1.0.3
(possible oversight) with the responsive_classic template.
I need a way to hide specific categories in the Mobile sidebox menu.
When using the below method to hide a category the designated Category [ID#2} gets hidden in the {full screen} sidebox menu but NOT in Category Tabs menu.
This causes the sidebox menu in Mobile to NOT hide the designated Category as I believe it uses the Category Tabs code.
Existing code:
Code:
/includes/templates/responsive_classic/sideboxes/tpl_categories.php
// to make a specific category stand out define a new class in the stylesheet example: A.category-holiday
// uncomment the select below and set the cPath=3 to the cPath= your_categories_id
// many variations of this can be done
// case ($box_categories_array[$i]['path'] == 'cPath=3'):
// $new_style = 'category-holiday';
// break;
case ($box_categories_array[$i]['path'] == 'cPath=2'):
$new_style = 'category_hide';
break;
case ($box_categories_array[$i]['path'] == 'cPath=1'):
$new_style = 'category_hide1';
break;
case ($box_categories_array[$i]['path'] == 'cPath=3'):
$new_style = 'category_hide2';
break;
Code:
CSS:
includes/templates/responsive_classic/css/stylesheet.css
/* Hide Categories but are clickable*/
A.category_hide {
color: #000000;
font-size:14px;
text-decoration: none;
}
/* Display but make specific categories unclickable */
A.category_hide1, A.category_hide2 {
cursor: pointer;
font-weight: normal;
line-height: 175%;
pointer-events: none;
text-decoration: none;
display: inline-block;
}
Thanks, for your time.
Bookmarks