I have made the custom category layout update named as catalog_category_view_selectable_3_Test.xml in Magento_Catalog/layout.
When I checked in admin panel in custom layout update the options is not showing.
Kindly provide a solution to custom layout update for category for magento 2.4.
- 
 1hi there, can you also share the content of your custom layout file?Diana– Diana2021年03月16日 13:58:19 +00:00Commented Mar 16, 2021 at 13:58
 - 
 Sure @DianaBotean <?xml version="1.0"?> <!-- /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ --> <page xmlns:xsi="w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body> <referenceBlock name="breadcrumbs" remove="true"/> </body> </page>Haerriz– Haerriz2021年03月17日 04:01:01 +00:00Commented Mar 17, 2021 at 4:01
 - 
 looks good, i can't see anything wrong with that content.Diana– Diana2021年03月17日 06:47:10 +00:00Commented Mar 17, 2021 at 6:47
 - 
 @DianaBotean yes, but the custom update handle is not working. Any possible other solutions?Haerriz– Haerriz2021年03月17日 07:17:07 +00:00Commented Mar 17, 2021 at 7:17
 - 
 at the moment i don't see anything wrong with the content or the filename tbh. did you try to add this for another category ID? see if the behavior is still the same?Diana– Diana2021年03月17日 08:18:17 +00:00Commented Mar 17, 2021 at 8:18
 
3 Answers 3
I had some "issue" with Magento-2.4.2 and I had spent about 2 hours before I understood what I was Pinocchio )) I was checking the wrong scope - All Stores Views instead of current store with applied theme ))). Maybe my bad experiences save time anybody
- 
 Right, I had the same issue. What this answer means is: The custom layout update is not shown while editing the category in the "All store views" scope. Instead we must switch to the store view for which we want to apply the custom layout update.Louis B.– Louis B.2025年06月04日 09:08:28 +00:00Commented Jun 4 at 9:08
 
If the custom selectable layout is not being shown in the custom layout dropdown then the layout file is not being recognized.
Make sure your catalog_category_view_selectable_3_Test.xml file does not have any additional or trailing spaces in the filename.
Tested with 2.4.2
app/design/frontend/Vendor/Theme/Magento_Catalog/layout/catalog_category_view_selectable_3_Test.xml
If you can't see the option in the dropdown, then try after clearing the cache.
- 
 Hey @Paj , The file name doesn't have any additional space or trailing spaces in the filename.Haerriz– Haerriz2021年03月17日 04:02:34 +00:00Commented Mar 17, 2021 at 4:02
 - 
 1I tested the exact same filename on 2.4.2 and it worked correctly. Are you adding this to a theme or module? I tested with App/Design/FrontendVendor/Theme/Magento_Catalog/layout/catalog_category_view_selectable_3_Test.xmlpaj– paj2021年03月17日 07:36:28 +00:00Commented Mar 17, 2021 at 7:36
 - 
 I have added it in the theme.Haerriz– Haerriz2021年03月17日 08:41:15 +00:00Commented Mar 17, 2021 at 8:41
 
This may be related to: How to add/update custom layout update on magento 2.3.4
I am using the Porto child theme on 2.4.2 and the no options were displayed in the category Custom Layout Dropdown (Not even - No Update). Applied @Marrbacca solution and it got the options to display - although so far, the selection does not seem to behave an effect on the frontend. :/
Explore related questions
See similar questions with these tags.