×

php up to date

Remove Category from home page osclass

Remove Category from home page  osclass

 

Open theme folder and edit functions.php file,
 find out h1 tag with categories under div with class name row 
remove from there  to closing tab of row div...
that's all categories now removed from your home page completely. 
Eg:
   <h1 class="title"><?php _e('Categories', OSCLASSWIZARDS_THEME_FOLDER);?></h1>
<div class="row">
<?php

    $total_categories   = osc_count_categories();
    $col1_max_cat       = ceil($total_categories/1);
    osc_goto_first_category();
    $catcount    =    0;
    while ( osc_has_categories() ) {
?>
<ul class="col-sm-6 col-md-3 grid_list">
  <li>
   -----
   -----
</li></ul>
<?php } ?>
</div>
It will change based on your theme. Mostly common.some customized themes may different.
SHARE

blogger

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment

Thanks for your valuable feedback