I want to create static block in Magento 2.3.5 and call that block in footer content. please anyone can have idea then please share with me.

Thank you in Advance.

2 Answers 2


If you want to call static block in the phtml file then please add below code.

echo $this->getLayout()

If you want to add it in the CMS page then please add below code.

{{block class="Magento\\Cms\\Block\\Block" block_id="YOUR_BLOCK_ID"}}

And if you want to add through XML then please add below code.

<referenceContainer name="content"> 
    <block class="Magento\Cms\Block\Block" name="YOUR_BLOCK_ID"> 
            <argument name="block_id" xsi:type="string">YOUR_BLOCK_ID</argument> 

Happy Coding.


You can add in footer_links block

<referenceBlock name="footer_links">
      <block class="Magento\Framework\View\Element\Html\Link\Current" ifconfig="catalog/seo/search_terms" name="search-term-popular-link">
            <argument name="label" translate="true" xsi:type="string">Search Terms</argument>
            <argument name="path" xsi:type="string">search/term/popular</argument>

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.