Blog

  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>
              </action>
        </block>
    </referenceContainer>                  
    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 »
  3. Fixing issue with missing color option on search results

    Please follow the instructions to fix the issue.

    1. Create new layout XML file in you theme

    app/design/frontend/Vendor/theme/Magento_Swatches/layout/catalogsearch_result_index.xml

    2. Put content

    <?xml version="1.0"?>
    <!--
    /**
     * Copyright © 2015 Magento. All rights reserved.
     * See COPYING.txt for license details.
     */
    -->
    <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left" 
                    xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
        <head>
            <css src="Magento_Swatches::css/swatches.css"/>
        </head>
        <body>
            <referenceBlock name="category.product.type.details.renderers">
                <block class="Magento\Swatches\Block\Product\Renderer\Listing\Configurable" as="configurable"
                                 template="Magento_Swatches::product/listing/renderer.phtml" />
            </referenceBlock>
        </body>
    </page>

    Read more »
  4. Add "read more" tag to Magento 2 blog post content

    Add "read more" tag

    1. Please navigate to M2 Admin Panel > Content > Posts > Choose post > Open Content tab.
    2. Insert Pagebreak tag wherever you want.

    Read more »
  5. Installing Extension form Magento 2 using Web Setup Wizard

    Before installation

    Download extension and move folders from archive to your Magento 2 root directory.

    1. Login to your Magento 2 Admin Panel.

    2. Open Component Manager

    Read more »
  6. Installing Magento 2 Extension over SSH (terminal)

    Before installation

    Download extension and move folders from archive to your Magento 2 root directory.

    1. Connect to your magento webserver using ssh

    To do this, run the following command in the terminal and enter user password (please skip this step if you're installing expansion on the local machine):

    ssh [email protected]

    Read more »