AbleCommerce Forums
»
AbleCommerce
»
General Questions
»
How can I remove the Categories option from the main menu?
Rank: Member
Groups: Authorized User, Developers Joined: 4/7/2021(UTC) Posts: 18
|
I would like to remove the Categories option from the main menu. How can I do this?
|
|
|
|
Rank: Advanced Member
Groups: Admin, Developers, Registered, HelpDesk, Authorized User Joined: 10/5/2018(UTC) Posts: 704
Thanks: 5 times Was thanked: 113 time(s) in 112 post(s)
|
You will have to remove the HTML manually.
You can change the original view files or you can override the view files by placing them in the theme folder following the same hierarchy and folder names.
To change original view files:
You may need to change one of these files based on the default header you are using 1- /Views/Shared/_StoreItemsMenu.cshtml 2- /Views/Shared/_StoreMenuLight.cshtml 3- /Views/Shared/_StoreMenu.cshtml
To override the view files: 1- Go to current theme folder and create a Views folder. 2- In the Views folder, create a folder named Shared 3- In Shared folder, copy and paste the cshtml view file that you want to edit. 4- Copy the original /Views/web.config file and paste it in /Themes/{CurrentTheme}/Views folder
|
|
|
|
Rank: Member
Groups: Authorized User, Developers Joined: 4/7/2021(UTC) Posts: 18
|
Perfect! Thank you for the quick reply and guidance. I got it taken care of! Thanks again!
|
|
|
|
Rank: Member
Groups: Developers, HelpDesk, Registered Joined: 11/1/2018(UTC) Posts: 29
|
Originally Posted by: shaharyar You will have to remove the HTML manually.
You can change the original view files or you can override the view files by placing them in the theme folder following the same hierarchy and folder names.
To change original view files:
You may need to change one of these files based on the default header you are using 1- /Views/Shared/_StoreItemsMenu.cshtml 2- /Views/Shared/_StoreMenuLight.cshtml 3- /Views/Shared/_StoreMenu.cshtml
To override the view files: 1- Go to current theme folder and create a Views folder. 2- In the Views folder, create a folder named Shared 3- In Shared folder, copy and paste the cshtml view file that you want to edit. 4- Copy the original /Views/web.config file and paste it in /Themes/{CurrentTheme}/Views folder Not sure why I am struggling here, but edits to the main navigation as you propose above are not working. I have created a custom theme (it was blank -- this is the FIRST customization that I've attempted to make!). I need to add other tabs into the main menu of the site and I've edited the _storeMenuLight.cshtml file (that's the widget that's being used on my design), but there are no changes being displayed. Am I missing something else?
|
|
|
|
Rank: Advanced Member
Groups: Authorized User, Developers Joined: 2/17/2019(UTC) Posts: 909
Thanks: 3 times Was thanked: 15 time(s) in 15 post(s)
|
Hi Steve, Under your custom theme, under views, under shared, you should have a copy of the "_StoreMenuLight.cshtml" file place there. Leave the other one alone, edit the one under theme, never the one in the main view. If memory serves me correct, the "_StoreMenuLight.cshtml" file will only override if the header is set to "Store Menu Light" under the proper Widget Boards. To make sure you're working with the proper file, go to Views/Shared/ and rename the original file to something else to make sure that the one being picked up is under your theme. I know, confusing at first, but will prevent numerous headaches down the road in the event of an upgrade. Hope this helps, -Ray Edited by user Friday, October 1, 2021 10:42:52 PM(UTC)
| Reason: Not specified
|
|
|
|
AbleCommerce Forums
»
AbleCommerce
»
General Questions
»
How can I remove the Categories option from the main menu?
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The AbleCommerce Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close