How to Hide Subcategories on Homepage ( Mainpage ) on Osclass

How to Hide Subcategories on Homepage ( Mainpage ) on Osclass? My site has plenty of subcategoaries and it appears on homepage. According to GOOGLE policy it is not good to have more than 100 URL in a page. Therefore I would like to hide subcategories on homepage. Only main categories need to be shown / appear.

How to do this?
Theme : Bender or Osclasswizards

Find this section in functions.php ( For Bender )

if ( !function_exists('bender_draw_categories_list') ) {
    function bender_draw_categories_list()
    {
        //With all php code
    }
}

Replace it with

if( !function_exists('bender_draw_categories_list') ) {
        function bender_draw_categories_list(){ ?>
        <?php if(!osc_is_home_page()){ echo '<div class="resp-wrapper">'; } ?>
         <?php
         //cell_3
        $total_categories   = osc_count_categories();
        $col1_max_cat       = ceil($total_categories/3);

         osc_goto_first_category();
         $i      = 0;

         while ( osc_has_categories() ) {
         ?>
        <?php
            if($i%$col1_max_cat == 0){
                if($i > 0) { echo '</div>'; }
                if($i == 0) {
                   echo '<div class="cell_3 first_cel">';
                } else {
                    echo '<div class="cell_3">';
                }
            }
        ?>
        <ul class="r-list">
             <li>
                 <h1>
                    <?php
                    $_slug      = osc_category_slug();
                    $_url       = osc_search_category_url();
                    $_name      = osc_category_name();
                    $_total_items = osc_category_total_items();
                    if($_total_items > 0) { ?>
                    <a class="category <?php echo $_slug; ?>" href="<?php echo $_url; ?>"><?php echo $_name ; ?></a> <span>(<?php echo $_total_items ; ?>)</span>
                    <?php } else { ?>
                    <a class="category <?php echo $_slug; ?>" href="#"><?php echo $_name ; ?></a> <span>(<?php echo $_total_items ; ?>)</span>
                    <?php } ?>
                 </h1>
             </li>
        </ul>
        <?php
                $i++;
            }
            echo '</div>';
        ?>
        <?php if(!osc_is_home_page()){ echo '</div>'; } ?>
        <?php
        }
    }

Didn’t checked much but above modification will work.

I can confirm Navjot’s solution removes display of subcategories on the main page.

what file do we find this?

It says functions.php.

oc_content/themes/bender or osclasswizards/functions.php

Okay problem solved, thank you so much!