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

#   Remove Category Image from Product Listing

##

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

Less More

- Posts: 2
- Thank you received: 0
-
-

12 years 5 months ago [\#157457](#157457) by [gatis](/forum/user/32244-gatis "View gatis's Profile")  *[Remove Category Image from Product Listing](/forum/26-product-category-display/868505-remove-category-image-from-product-listing#157457 "I have recently started to work with HikaShop and I am trying to figure out how it is possible to do the following.  I have created a category listing menu, which have 2 levels of categories. Similar as described in here:http://www.hikashop.com/support/documentation/67-hikashop-content-display-front-end.html#categories&#95;menu  When I click on top level Category the page displays: 1) Category Image 2) Category Description 3) All direct subcategories And that is all fine.  But the when I click any of the subcategories it also shows Category Image and Description + products list.  Changing image setting for the menu item either shows or hides on both pages, but i want to show only on top category.  How can I remove Category Image and Description in product listing page? Which way should I be looking? I had a look into CSS, but all the classes are the same and I don't see a way to do it with CSS.  Thanks.")* was created by *[gatis](/forum/user/32244-gatis "View gatis's Profile")*

I have recently started to work with HikaShop and I am trying to figure out how it is possible to do the following.

I have created a category listing menu, which have 2 levels of categories. Similar as described in here:http://www.hikashop.com/support/documentation/67-hikashop-content-display-front-end.html#categories_menu

When I click on top level Category the page displays:
1) Category Image
2) Category Description
3) All direct subcategories
And that is all fine.

But the when I click any of the subcategories it also shows Category Image and Description + products list.

Changing image setting for the menu item either shows or hides on both pages, but i want to show only on top category.

How can I remove Category Image and Description in product listing page? Which way should I be looking?
I had a look into CSS, but all the classes are the same and I don't see a way to do it with CSS.

Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Njg1MDUtcmVtb3ZlLWNhdGVnb3J5LWltYWdlLWZyb20tcHJvZHVjdC1saXN0aW5nP3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14270
-
-

12 years 5 months ago [\#157482](#157482) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Remove Category Image from Product Listing](/forum/26-product-category-display/868505-remove-category-image-from-product-listing#157482 "I have recently started to work with HikaShop and I am trying to figure out how it is possible to do the following.  I have created a category listing menu, which have 2 levels of categories. Similar as described in here:http://www.hikashop.com/support/documentation/67-hikashop-content-display-front-end.html#categories&#95;menu  When I click on top level Category the page displays: 1) Category Image 2) Category Description 3) All direct subcategories And that is all fine.  But the when I click any of the subcategories it also shows Category Image and Description + products list.  Changing image setting for the menu item either shows or hides on both pages, but i want to show only on top category.  How can I remove Category Image and Description in product listing page? Which way should I be looking? I had a look into CSS, but all the classes are the same and I don't see a way to do it with CSS.  Thanks.")*

Hi,

There is no option to do that and you can't do it in CSS.
You need to edit the file "listing" of the view "category" of the frontend via the menu Display&gt;Views and change the code: Code:

if(($this-&gt;params-&gt;get('show_image') &amp;&amp; !empty($this-&gt;element-&gt;file_path))&#124;&#124; ($this-&gt;params-&gt;get('show_description')&amp;&amp;!empty($this-&gt;element-&gt;category_description))){

to: Code:

if(in_array($this-&gt;element-&gt;category_id, array(XXX,YYY,ZZZ)) &amp;&amp; ($this-&gt;params-&gt;get('show_image') &amp;&amp; !empty($this-&gt;element-&gt;file_path))&#124;&#124; ($this-&gt;params-&gt;get('show_description')&amp;&amp;!empty($this-&gt;element-&gt;category_description))){

where XXX,YYY and ZZZ are to be replaced with the id of the categories where you want to display the description and image.

The following user(s) said Thank You: [gatis](/forum/user/32244-gatis "View gatis's Profile")

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

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

Less More

- Posts: 2
- Thank you received: 0
-
-

12 years 5 months ago [\#157510](#157510) by [gatis](/forum/user/32244-gatis "View gatis's Profile")  Replied by *[gatis](/forum/user/32244-gatis "View gatis's Profile")* on topic *[Remove Category Image from Product Listing](/forum/26-product-category-display/868505-remove-category-image-from-product-listing#157510 "I have recently started to work with HikaShop and I am trying to figure out how it is possible to do the following.  I have created a category listing menu, which have 2 levels of categories. Similar as described in here:http://www.hikashop.com/support/documentation/67-hikashop-content-display-front-end.html#categories&#95;menu  When I click on top level Category the page displays: 1) Category Image 2) Category Description 3) All direct subcategories And that is all fine.  But the when I click any of the subcategories it also shows Category Image and Description + products list.  Changing image setting for the menu item either shows or hides on both pages, but i want to show only on top category.  How can I remove Category Image and Description in product listing page? Which way should I be looking? I had a look into CSS, but all the classes are the same and I don't see a way to do it with CSS.  Thanks.")*

I was really looking for a solution where I don't need to specify category IDs as they might change.

I went through the category table and found that I could use category_depth, which I have added to the same if condition you mentioned. If the number of category levels will remain the same I will go with it. If not will use your solution provided.

Anyway thank you for a quick response.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84Njg1MDUtcmVtb3ZlLWNhdGVnb3J5LWltYWdlLWZyb20tcHJvZHVjdC1saXN0aW5nP3RtcGw9bWFya2Rvd24=) 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.143 seconds

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

[](#top)
