Hide category names (not product names)?

  • Posts: 15
  • Thank you received: 0
11 years 5 months ago #104559

How can I hide the category names from the listing page - only for categories, not for products too?
Thanks! :)

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 5 months ago #104763

Hi,

You can edit the view "category / listing_img_title" in the Display > Views menu in order to remove the category name display.

Please Log in or Create an account to join the conversation.

  • Posts: 15
  • Thank you received: 0
11 years 5 months ago #104841

Thanks Xavier! I've tried tweaking it but can't seem to figure out how to hide the title.
Also I'm having an issue with alignment, how can I fix this (see attached image).

Last edit: 11 years 5 months ago by Z_001.

Please Log in or Create an account to join the conversation.

  • Posts: 26151
  • Thank you received: 4027
  • MODERATOR
11 years 5 months ago #104858

Hi,

All your boxes does not have the same height (some products titles are display in two or three lines. The result height is not the same).
The boxes are aligned to the left, so because the last box (at the top right) is smaller than the two other, there is some available space where another box can be displayed below.
Finally, it result a strange display but for your browser, it is quite logical.

Please add a CSS rule for setting a height for all your boxes, they will be uniform and the design will be nice.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Last edit: 11 years 5 months ago by Jerome.

Please Log in or Create an account to join the conversation.

  • Posts: 15
  • Thank you received: 0
11 years 5 months ago #104864

Thanks Xavier and thanks for the fast replies - I will work on that.
How do I tweak the category / listing_img_title file to hide the category name?

Also I'm still having trouble aligning the images - I tried to set a height for the rows but they still collide.

Last edit: 11 years 5 months ago by Z_001.

Please Log in or Create an account to join the conversation.

  • Posts: 26151
  • Thank you received: 4027
  • MODERATOR
11 years 5 months ago #104909

Hi,

You can edit the view "category / listing_img_title" in the Display > Views menu in order to remove the category name display.

As Xavier said, you have to edit the view "category | listing_img_title".
www.hikashop.com/en/support/documentatio...-display.html#layout

You will see into the view this code:
echo $this->row->category_name;
You have to remove it (and only this) to not display the category_name.

regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Last edit: 11 years 5 months ago by Jerome.

Please Log in or Create an account to join the conversation.

  • Posts: 15
  • Thank you received: 0
11 years 5 months ago #105051

Thanks - unfortunately, removing this piece of code makes my entire category listings page go blank:

echo $this->row->category_name;

Please also help me with one more thing:
How can I edit the CSS to make all the product images aligned (as mentioned above)?

Your support is great, thanks so much!

Last edit: 11 years 5 months ago by Z_001.

Please Log in or Create an account to join the conversation.

  • Posts: 26151
  • Thank you received: 4027
  • MODERATOR
11 years 5 months ago #105056

Hi,

What do you mean with "go blank" ?
If it is a real blank and white page, it means that you remove too much or not enough content in the view and you created a PHP error.
You can remove your override by using the "trash" icon in the view listing. And re-do the override modification.

About the CSS, you can create a custom file in the HikaShop backend (in: Display > CSS)
You can edit the default HikaShop css file and create your custom one.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 15
  • Thank you received: 0
11 years 5 months ago #105067

Thanks for your response Jerome. No it's not a blank white page, my website loads but all the categories disappear. I removed only that code and it removes the entire category listings display.

For the 2nd issue, I have tried adding a height CSS for the image container but it doesn't solve the issue.

Please Log in or Create an account to join the conversation.

  • Posts: 26151
  • Thank you received: 4027
  • MODERATOR
11 years 5 months ago #105107

Hi,

If you just remove the display of the category name in the listing. You should still see the category image.

For the second point, You have to set an height for the main container or for the span which contains the product name.
I assure you that it will work.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 15
  • Thank you received: 0
11 years 5 months ago #105139

Sorry, I removed the code mentioned to hide category title and it doesn't work - it removes everything from the page.
I've tried to tweak the code by editing other parts too but I cannot seem to hide the title.

Please Log in or Create an account to join the conversation.

  • Posts: 26151
  • Thank you received: 4027
  • MODERATOR
11 years 5 months ago #105143

Hi,

Ok, please send a screenshot of what you want to hide exactly.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 15
  • Thank you received: 0
11 years 5 months ago #105144

Here - the part highlighted in red. Thanks!

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82760
  • Thank you received: 13346
  • MODERATOR
11 years 5 months ago #105154

There is no code to edit for that.

Simply change the "item box layout" HikaShop option of your categories listing menu item to "image" instead of "image and title" via the menu Display->content menus.

Please Log in or Create an account to join the conversation.

Time to create page: 0.092 seconds
Powered by Kunena Forum