[Skip to main content](#vessel-content)

#   Sub Cats not Hiding in Category Listing

##

- **[ninjab](/forum/user/33534-ninjab "View ninjab's Profile")**
- [![ninjab's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/33534-ninjab "View ninjab's Profile") Topic Author
- [ Offline](/forum/user/33534-ninjab)

Less More

- Posts: 62
- Thank you received: 0
-
-

11 years 1 month ago -  11 years 1 month ago [\#212976](#212976) by [ninjab](/forum/user/33534-ninjab "View ninjab's Profile")  *[Sub Cats not Hiding in Category Listing](/forum/25-install-update/879041-sub-cats-not-hiding-in-category-listing#212976 "-- HikaShop version -- : 2.5.0  Hi there,  I am trying to get the sub categories to not show when in a category listing. Originally I had it as a product listing content but need to change it to a category listing, but seems the option to 'Show Sub Categories' to 'No Child' doesnt seem to be working.  Theres a specific reason as to why I need to change it to a category listing, and I need the sub cats to not show as they are not supposed to for a specific reason.  I dont have a URL because its a local server dev only. But have attached a screen shot to show my settings if I have not done it properly.  I thought it may of been template overrides to my files, so I got rid of those temporarily to use the default hikashop ones, but didnt change anything.  Many thanks.")* was created by *[ninjab](/forum/user/33534-ninjab "View ninjab's Profile")*

-- HikaShop version -- : 2.5.0

Hi there,

I am trying to get the sub categories to not show when in a category listing. Originally I had it as a product listing content but need to change it to a category listing, but seems the option to 'Show Sub Categories' to 'No Child' doesnt seem to be working.

Theres a specific reason as to why I need to change it to a category listing, and I need the sub cats to not show as they are not supposed to for a specific reason.

I dont have a URL because its a local server dev only. But have attached a screen shot to show my settings if I have not done it properly.

I thought it may of been template overrides to my files, so I got rid of those temporarily to use the default hikashop ones, but didnt change anything.

Many thanks.

- [ ![Capture&#95;subcats.png](/forum/attachment/26215) ](/forum/attachment/26215 "...re&#95;subcats.png") [ ](/forum/attachment/26215?download=1 "...re&#95;subcats.png")

Last edit: 11 years 1 month ago by [ninjab](/forum/user/33534-ninjab "View ninjab's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg3OTA0MS1zdWItY2F0cy1ub3QtaGlkaW5nLWluLWNhdGVnb3J5LWxpc3Rpbmc/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

11 years 1 month ago [\#212982](#212982) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Sub Cats not Hiding in Category Listing](/forum/25-install-update/879041-sub-cats-not-hiding-in-category-listing#212982 "-- HikaShop version -- : 2.5.0  Hi there,  I am trying to get the sub categories to not show when in a category listing. Originally I had it as a product listing content but need to change it to a category listing, but seems the option to 'Show Sub Categories' to 'No Child' doesnt seem to be working.  Theres a specific reason as to why I need to change it to a category listing, and I need the sub cats to not show as they are not supposed to for a specific reason.  I dont have a URL because its a local server dev only. But have attached a screen shot to show my settings if I have not done it properly.  I thought it may of been template overrides to my files, so I got rid of those temporarily to use the default hikashop ones, but didnt change anything.  Many thanks.")*

Hi,

I suppose that you want to remove the categories listing of your menu while that option is for displaying or not the subcategories of each of the categories on the listing.
So changing that option won't do what you want.
In that case, the best would be to add a line of CSS to hide the whole area displaying the categories.
The exact CSS will depend on how is configured your website so hard to tell you without looking at the page with firebug. But if you know CSS, you should be able to do that on your own.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg3OTA0MS1zdWItY2F0cy1ub3QtaGlkaW5nLWluLWNhdGVnb3J5LWxpc3Rpbmc/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[ninjab](/forum/user/33534-ninjab "View ninjab's Profile")**
- [![ninjab's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/33534-ninjab "View ninjab's Profile") Topic Author
- [ Offline](/forum/user/33534-ninjab)

Less More

- Posts: 62
- Thank you received: 0
-
-

11 years 1 month ago -  11 years 1 month ago [\#213039](#213039) by [ninjab](/forum/user/33534-ninjab "View ninjab's Profile")  Replied by *[ninjab](/forum/user/33534-ninjab "View ninjab's Profile")* on topic *[Sub Cats not Hiding in Category Listing](/forum/25-install-update/879041-sub-cats-not-hiding-in-category-listing#213039 "-- HikaShop version -- : 2.5.0  Hi there,  I am trying to get the sub categories to not show when in a category listing. Originally I had it as a product listing content but need to change it to a category listing, but seems the option to 'Show Sub Categories' to 'No Child' doesnt seem to be working.  Theres a specific reason as to why I need to change it to a category listing, and I need the sub cats to not show as they are not supposed to for a specific reason.  I dont have a URL because its a local server dev only. But have attached a screen shot to show my settings if I have not done it properly.  I thought it may of been template overrides to my files, so I got rid of those temporarily to use the default hikashop ones, but didnt change anything.  Many thanks.")*

Hi Nicholas, thanks for confirming that it was not something I had not done or a bug.

From your response, I done a work around to the listing_div file to this below. It does require me to add in categories in the PHP files if I add new ones in the future however
Code:

&lt;? if($this-&gt;element-&gt;category_id==36 &#124;&#124; $this-&gt;element-&gt;category_id==43 &#124;&#124; $this-&gt;element-&gt;category_id==50 &#124;&#124; $this-&gt;element-&gt;category_id==55): ?&gt; (insert all the code from listing_div in the PHP here) &lt;? else: ?&gt; (blank) &lt;? endif; ?&gt;

Last edit: 11 years 1 month ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile"). Reason: remove quote content

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg3OTA0MS1zdWItY2F0cy1ub3QtaGlkaW5nLWluLWNhdGVnb3J5LWxpc3Rpbmc/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.199 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
