This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

harsha2012

  • **
  • 9 posts
how to remove category in search page
« on: April 01, 2018, 10:02:57 PM »

<?php
  // SHOW OR HIDE TOP CATEGORIES BLOCK
  $cat_home = zara_current('zc_home_cat');
  $cat_item = zara_current('zc_item_cat');
  $cat_reg = zara_current('zc_reg_cat');
  $cat_pub = zara_current('zc_pub_cat');
  $cat_user = zara_current('zc_ua_cat');


  if(
    (!osc_is_home_page() || $cat_home == 1)
    && (!osc_is_ad_page() || $cat_item == 0)
    && ((!osc_is_register_page() && !osc_is_contact_page()) || $cat_reg == 0)
    && ((!osc_is_publish_page() && !osc_is_edit_page()) || $cat_pub == 0)
    && (osc_get_osclass_location() <> 'user' || $cat_user == 0)


how to remove category in search page 

home page want to see category i only need to remove category in search page  thank you



*

MB Themes

Re: how to remove category in search page
« Reply #1 on: April 02, 2018, 12:13:32 AM »
Hide it via css
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

harsha2012

  • **
  • 9 posts
Re: how to remove category in search page
« Reply #2 on: April 02, 2018, 06:10:07 AM »
/* TOP CATEGORIES */

.top-cat-ul-wrap {float:left;clear:both;width:100%;max-width:100%;min-width:100%;position:relative;padding:0 40px;}
.top-cat-ul-wrap .ul-box {float:left;clear:both;width:100%;overflow:hidden;}
#top-cat .arrows {display:none;position:absolute;background:transparent;top:0;height:110px;margin-top:0px;width:35px;cursor:pointer;}
#top-cat .arrows .fa {float:left;clear:both;width:100%;text-align:center;font-size:40px;line-height:60px;color:#4b0082;}
#top-cat .arrows:hover .fa, #top-cat .arrows:active .fa {color:#000;}
#top-cat .arrows.left-arrow {left:0;}
#top-cat .arrows.left-arrow:hover {left:-5px;}
#top-cat .arrows.right-arrow {right:0;}
#top-cat .arrows.right-arrow:hover {right:-5px;}
.top-cat-wrap {display:none!important;}


home CATEGORIES page also hide,without hide home page CATEGORIES hide, i only want to hide CATEGORIES in search page how i do plese in whare?

Marked as best answer by harsha2012 on April 02, 2018, 10:46:22 PM
*

MB Themes

Re: how to remove category in search page
« Reply #3 on: April 02, 2018, 12:54:40 PM »
Use body#body-search as identificator for search page
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

harsha2012

  • **
  • 9 posts
Re: how to remove category in search page
« Reply #4 on: April 02, 2018, 10:46:53 PM »
thank you its works your awsome  :) :)