Advertisement:

Author Topic: [SOLVED] Remove Category count in OsclassWizards Theme  (Read 832 times)

sarlonga

  • Newbie
  • *
  • Posts: 10
[SOLVED] Remove Category count in OsclassWizards Theme
« on: August 30, 2018, 07:05:11 am »
Hello guys, i´m having trouble with hiding or removing the category count from main page. I was able to do it with the sub categories but I can´t with categories.

Thanks in advance.
« Last Edit: September 10, 2018, 11:27:52 pm by sarlonga »

Abhi

  • Jr. Member
  • **
  • Posts: 78
  • Love what you do :)
Re: Remove Category count in OsclassWizards Theme
« Reply #1 on: August 30, 2018, 10:25:17 pm »
Hi


May i know which theme you are using

WEBmods

  • Hero Member
  • *****
  • Posts: 937
  • github.com/webmods-croatia/love-osclass/ | patrick
Re: Remove Category count in OsclassWizards Theme
« Reply #2 on: August 31, 2018, 12:00:30 am »
Hi


May i know which theme you are using

Hello,

He literally said it in the title... It's Osclasswizards.

Regards.

sarlonga

  • Newbie
  • *
  • Posts: 10
Re: Remove Category count in OsclassWizards Theme
« Reply #3 on: August 31, 2018, 06:20:53 am »
Hi


May i know which theme you are using

Hi digital, as Patrick said, I´m using osclasswizards.

Thanks

Abhi

  • Jr. Member
  • **
  • Posts: 78
  • Love what you do :)
Re: Remove Category count in OsclassWizards Theme
« Reply #4 on: August 31, 2018, 06:55:08 am »
ahh my bad I just read description and text remove category count


here you go in your theme folder and find file functions.php line no 302


  <a class="category <?php echo $_slug; ?>" href="<?php echo $_url; ?>"><?php echo $_name ; ?></a> <span><?php echo $_total_items ; ?></span>


change to


  <a class="category <?php echo $_slug; ?>" href="<?php echo $_url; ?>"><?php echo $_name ; ?></a>


same thing for sub categories on line no 311



        <?php if( osc_category_total_items() > 0 ) { ?>
        <a class="category sub-category <?php echo osc_category_slug() ; ?>" href="<?php echo osc_search_category_url() ; ?>"><?php echo osc_category_name() ; ?></a> <span>(<?php echo osc_category_total_items() ; ?>)</span>
        <?php } else { ?>
        <a class="category sub-category <?php echo osc_category_slug() ; ?>" href="#"><?php echo osc_category_name() ; ?></a> <span>(<?php echo osc_category_total_items() ; ?>)</span>
        <?php } ?>


to



        <?php if( osc_category_total_items() > 0 ) { ?>
        <a class="category sub-category <?php echo osc_category_slug() ; ?>" href="<?php echo osc_search_category_url() ; ?>"><?php echo osc_category_name() ; ?></a>
        <?php } else { ?>
        <a class="category sub-category <?php echo osc_category_slug() ; ?>" href="#"><?php echo osc_category_name() ; ?></a>
        <?php } ?>

sarlonga

  • Newbie
  • *
  • Posts: 10
Re: Remove Category count in OsclassWizards Theme
« Reply #5 on: September 04, 2018, 09:39:05 pm »
Thanks Digital!

Abhi

  • Jr. Member
  • **
  • Posts: 78
  • Love what you do :)
Re: Remove Category count in OsclassWizards Theme
« Reply #6 on: September 05, 2018, 01:24:57 pm »
you are welcome please add solved at the title of thread so people will know the solution has been found.