Sun. Jun 30th, 2024

4. Magento. How to add a new static block for the category drop down with Mega Menu

2 min read


Untitled Document

 

  1. In CMS->Static Blocks section press Add New Block button:

    Magento.-How-to-add-a-new-static-block-for-the-category-drop-down-with-mega-Menu-1

  2. Fill in the required fields with necessary information:
    • Add the Block Title.
    • Assign some Identifier to your block.
    • Select the Store View to which you want to assign the block. You can duplicate this block for each store view with different content translation in case you have several language store views.
    • Choose the Status for the block which will define whether the block is enabled or disabled.
    • Input the main information appearing in the block into the Content field.

      Note: Make sure to add the content in HTML code in order to avoid layout issues. Add some HTML class to your content in order to be able to assign some styles to it later. You can copy the class from the existing block. In case you want to add some image to the text content, upload it to some folder on your server, then type the source path to this image and its name.

  3. Press Save Block button in the top right:

    Magento.-How-to-add-a-new-static-block-for-the-category-drop-down-with-mega-Menu-3

  4. Go to Catalog->Manage categories menu and select the category to which you want to assign the newly created static block.
  5. In the Menu Top tab check the Static Block option:

    Magento.-How-to-add-a-new-static-block-for-the-category-drop-down-with-mega-Menu-2

  6. You will see 4 possible options appearing which define in which part of the drop-down menu the block should be displayed (top, left, bottom, right). Check the appropriate option and select the name of your new block from the drop-down list:

    Magento.-How-to-add-a-new-static-block-for-the-category-drop-down-with-mega-Menu-4

  7. Save the changes by clicking on the Save Category button.
  8. View your customization on the site front end.

Thank you for reading our tutorial. Now you know how to add a new static block for the category drop down with Mega Menu in Magento.

 

June 2024
M T W T F S S
« Jun    
 12
3456789
10111213141516
17181920212223
24252627282930