I want categories in my search bar but I don’t wan’t sub-cats in it.				
							
			
	
		
		
		
			
			
	
	- 
		
			
				
	
	
		
			
			Hi, I am using woodmart header builder search widget and it includes an option to include categories but actually it brings all categories including subcategories.
I just want parent categories.
	- 
		This topic was modified 1 year ago by 
aijaz.
	 
Attachments:
You must be 
logged in to view attached files.
 
					
			
			
		 
	 
 
			
				
	
	
		
			
			Hello,
Can you please share the page URL so I will check and give you a possible solution?
Best Regards
					
			
			
		 
	 
 
			
				
	
	
		
			
			trendyleatherjackets.com it’s in header everywhere
					
			
			
		 
	 
 
			
				
	
	
		
			
			Hello,
Please add the below Custom CSS code to Theme Settings > Custom CSS > Global Custom CSS.
.wd-dropdown-search-cat .children li a {
    display: none !important;
}
Best Regards
					
			
			
		 
	 
 
			
				
	
	
		
			
			Lazy asses, bruh Just add the feature. I could have applied CSS myself ufff!
					
			
			
		 
	 
 
			
				
	
	
		
			
			And you know it’s not a good practice to include HTML code and hide it with CSS. Bots can still read the html code and they often call it misrepresentation. this is not good for SEO too. OMG how you guys claim to be SEO friendly?
					
			
			
		 
	 
 
			
				
	
	
		
			
			Hello,
Unfortunately, There is no other way that you can hide the subcategories from the search bar dropdown.
It requires customization and this is beyond our limitations and support policy.
Best Regards
					
			
			
		 
	 
 
			
				
	
	
		
			
			How can I mark this topic closed? it is still showing status as “in progress”
					
			
			
		 
	 
 
			
				
	
	
		
			
			Hello,
No worries. I will close this topic.
Thanks for contacting us.
Have a great day.
Topic Closed.
Best Regards.
					
			
			
		 
	 
 
			
		
	 
	
			
			
		
		
	
		
			The topic ‘I want categories in my search bar but I don’t wan’t sub-cats in it.’ is closed to new replies.