X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Categories on Home Page (https://forum.x-cart.com/showthread.php?t=75954)

rowdybunny 01-31-2018 10:02 PM

Categories on Home Page
 
1 Attachment(s)
OK I am stumped. I want to remove the category icons on the home page. I am viewing my home page and using the webmaster mode. I've tried both the template editor and the layout editor. When I comment out the categories in the twig file it does remove the categories from the whole page BUT it also removes them from the category pages. Same with the layout editor, when I hide that block it hides it on all pages.

I've attached a screen shot showing the block I want to move.

Any help is appreciated.

cflsystems 02-01-2018 05:55 AM

Re: Categories on Home Page
 
You probably have a module that shows these there. You need to modify this module. XC5 is not like XC4 where you can just do some changes with webmaster mode. While still possible to use it for some modifications the modular structure of XC5 actually goes against that.
You need to dig into the code and modify it with your own module most likely.
It may be better to get a pro do it for you

qualiteam 02-08-2018 10:32 PM

Re: Categories on Home Page
 
When editing the template, you can make it appear on category pages only by wrapping the code into the "if" statement.

Please check this forum thread:
https://forum.x-cart.com/showthread.php?p=405151#postcount405151

The "target" for the home page is "main".

rowdybunny 02-11-2018 03:46 PM

Re: Categories on Home Page
 
For anyone who wants to remove the category icons from the home page, x-cart support has provided a MUCH easier method.

Go to the "Content" / "Front page" page from the menu in the admin area and then set "Root category listings format" to "Hide".


All times are GMT -8. The time now is 08:44 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.