NEW extensions are available!   Magento 2 CMS Display Rules and Magento 2 Dynamic Categories. Check them now.

Monthly Archives: July 2017

  1. Resent Blog Posts On Magento 2 Homepage Sidebar

    1. Please navigate to M2 Admin Panel > Content > Pages, then start edit Home Page.
    2. Change the field Layout Update XML in Design section by adding the next code:

    <referenceContainer name="sidebar.additional">
        <block class="Magefan\Blog\Block\Sidebar\Recent" name="blog.sidebar.recent" template="sidebar/recent.phtml" after="wishlist_sidebar">
              <action method="setCacheLifetime">
                  <argument name="time" xsi:type="string">86400</argument>
    3. Save the page.
    4. Flush magento cache.

    Read more »
  2. Resent Blog Posts On Magento 2 Homepage

    1. Please navigate to M2 Admin Panel > Content > Widgets and click Add Widget button.
    2. Select "Recent Blog Posts" in Type field and your theme in Design Theme field. Then press Continue button
    3. After page refresh enter Widget Title you wish (e.g.: Recent blog posts on Homepage) and specify the sore view if neaded.
    3. Navigate to Widget Options tab
    4. Set Title field - it will displayed on frontend as title of recent posts blog
    5. Set the Number of Posts you wish to show
    6. If needed you can show post only from specific category by setting Blog Category field.

    Read more »