Advertisement:

Author Topic: Solved!! Sidebar Search parent categories font-weight Bold  (Read 300 times)

Ansel

  • Newbie
  • *
  • Posts: 7
Solved!! Sidebar Search parent categories font-weight Bold
« on: November 26, 2017, 10:12:31 am »
Hi guys, i need some help on the sidebar search.

What i try is to have the parent categories font-weight: bold
the subcategories like there are already font-weight: normal

How to do this?

Code: [Select]
      <?php 
      
if(isset($sCategory)) {
        
$category = array("pk_i_id" => $sCategory);
      } else {
        if(
osc_is_home_page() && osc_is_search_page()){
  $category 'null';
        } else {
$category = array("pk_i_id" => '0');}
      }
      
osc_categories_select('sCategory'$category __('All property types...''ctg_housing')) ; ?>


Thanks
« Last Edit: November 26, 2017, 03:42:39 pm by Ansel »

Ansel

  • Newbie
  • *
  • Posts: 7
Re: Sidebar Search parent categories font-weight Bold
« Reply #1 on: November 26, 2017, 11:50:45 am »
here how to solve the problem!

past this in the sidebar search and change only the values

Code: [Select]
<style type="text/css">
  option:nth-child(2), option:nth-child(12), option:nth-child(21), option:nth-child(29), option:nth-child(33), option:nth-child(38), option:nth-child(42), option:nth-child(45){
    color: #000000;
    font-weight: bold;
  }
</style>