I created a CMS page from the adminpanel.
After that i created a CMS block using the admin panel. Both worked fine. Then i created a new Category and inside the category form i added the previous generated CMS Block in the "Add CMS Block" Dropdown. In "Display Mode" i selected "Static block only".
The static Block and the Top menu is created like expected, but the Category Title is displayed below of the CMS Block. I want to show the Category Title above the CMS Block.
How can i achieve this ?
-
Provide more information about in details or provide the screenshot or video of the issue which you are facing.Nits– Nits2019年11月13日 12:55:58 +00:00Commented Nov 13, 2019 at 12:55
-
When i was created new top menu.Praful– Praful2019年11月13日 12:57:10 +00:00Commented Nov 13, 2019 at 12:57
-
Please provide a screenshot, this information is not enough. If you want to display category in the top navigation menu then there is a feature call displaying menu at category edit page in the backend, once you enable, it will display in the frontend top navigation.Nits– Nits2019年11月13日 12:59:15 +00:00Commented Nov 13, 2019 at 12:59
-
i've edited the post, now its more understandable and the information is far enough now. The issue is that the category title is displayed below the cms block instead of above.Ekk4rd– Ekk4rd2019年11月13日 13:01:53 +00:00Commented Nov 13, 2019 at 13:01
-
yes right . How do that?Praful– Praful2019年11月13日 13:04:24 +00:00Commented Nov 13, 2019 at 13:04
1 Answer 1
Please search catalog_category_view.xml or create a new file:
app/design/frontend/Package/theme in that create a file with name catalog_category_view.xml at below location
app/design/frontend/Package/theme/Magento_Catalog/view/frontend/layout
And put this code there in the file catalog_category_view.xml
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<move element="columns.top" destination="content" before="-"/>
</body>
</page>
Note: Please run the below commands.
php bin/magento cache:flush
php bin/magento setup:static-content:deploy -f
Please let me know if you still facing the same issue.
-
I have one more issue, I want add default Contact Us into the Top menu but Not Working? Anyone idea how to configuration?Praful– Praful2019年11月14日 06:58:51 +00:00Commented Nov 14, 2019 at 6:58
-
This is the answer to your question then, Please accept this as an answer so it will help others.Nits– Nits2019年11月14日 13:36:36 +00:00Commented Nov 14, 2019 at 13:36
-
its working for me. Thanks for the solutionsPraful– Praful2019年11月22日 08:35:37 +00:00Commented Nov 22, 2019 at 8:35
-
Please accept this as solution if it is working for you.Nits– Nits2019年11月22日 09:23:04 +00:00Commented Nov 22, 2019 at 9:23