View Single Post
  #11  
Old 03-20-2014, 08:05 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: X-Cart 5 Remove Categories from Homepae body

Quote:
Originally Posted by tony_sologubov
Hi!

Thanks for asking! First thing to try is to apply the following CSS code via the System Settings > Look & feel > Custom CSS section in your admin area:

Code:
ul.subcategory-list { display: none; }

Please, let me know if it works for you.

Note: this approach will hide the subcategories from all the pages, not from home page only.

I don't think "display:none" is a good practice to hide something unless it is being used to hide interactive element. This will make the element hidden for the user but it will still exist in the html code. Depending on content SE may consider the site is trying to serve different content to end users and bots (and Google for example will penalize if it thinks that's the case) or even think of it as spam...

If some element should not be shown on a page best to comment out the code or have conditional statement but to simply use display:none is not something you should recommend.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote