0

I created a CMS page from the adminpanel.

enter image description here

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 ?

Ekk4rd
5252 silver badges12 bronze badges
asked Nov 13, 2019 at 12:47
6
  • Provide more information about in details or provide the screenshot or video of the issue which you are facing. Commented Nov 13, 2019 at 12:55
  • When i was created new top menu. Commented 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. Commented 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. Commented Nov 13, 2019 at 13:01
  • yes right . How do that? Commented Nov 13, 2019 at 13:04

1 Answer 1

0

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.

answered Nov 13, 2019 at 13:16
4
  • I have one more issue, I want add default Contact Us into the Top menu but Not Working? Anyone idea how to configuration? Commented 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. Commented Nov 14, 2019 at 13:36
  • its working for me. Thanks for the solutions Commented Nov 22, 2019 at 8:35
  • Please accept this as solution if it is working for you. Commented Nov 22, 2019 at 9:23

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.