Documentation

Magefan Extensions Documentation

  1. Blog Extension Installation

    To install Magento 2 Blog Extension by Magefan, please use one of these installation methods.

    Installation Method 1 - Installing via Composer (recomended)

    1. Open command line
    2. Using command "cd" navigate to your Magento 2 root directory
    3. Run commands (Magento 2.1.x):
    composer require magefan/module-blog
    # Authentication required (repo.magento.com)
    # Get your Magento Marketplace authentication keys or use these:
    # Username: 7c018006799466c681ad507e27904677
    # Password: 289077c86e811661a8f7751828485d3a
    php bin/magento setup:upgrade
    php bin/magento setup:di:compile
    php bin/magento setup:static-content:deploy

    If you use Magento

    Read more »
  2. Apptrian Facebook Pixel on Magefan Blog pages

    If you use Apptrian Facebook Pixel extension on your Magento 2 store and the Facebook pixel is missing on the Magefan Blog pages, please copy the file:

    app/code/Apptrian/FacebookPixel/view/frontend/layout/cms_page_view.xml

    into

    app/design/frontend/ThemeVendor/themename/Magefan_Blog/layout/blog_default.xml

    After that don't forget to flush Magnto cache via admin panel or CLI command:

    php bin/magento cache:clean
    Read more »
  3. Fix: Element 'block', attribute 'class' is not accepted by the pattern

    If you use Magefan Blog Extension on Magento 2.2.x or greater and receive the error message:

    1 exception(s):
    Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'block', attribute 'class': [facet 'pattern'] The value '\Magento\Framework\View\Element\Text\ListText' is not accepted by the pattern '[A-Z][_a-zA-Z\d]*(\\[A-Z][_a-zA-Z\d]*)*'.
    Line: 982
    
    Element 'block', attribute 'class': '\Magento\Framework\View\Element\Text\ListText' is not a valid value of the atomic type 'blockClassType'.
    Line: 982
    
    
    Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'block', attribute 'class': [facet 'pattern'] The value '\Magento\Framework\View\Element\Text\ListText' is not accepted by the pattern '[A-Z][_a-zA-Z\d]*(\\[A-Z][_a-zA-Z\d]*)*'.
    Line: 982
    
    Element 'block', attribute 'class': '\Magento\Framework\View\Element\Text\ListText' is not a valid value of the atomic type 'blockClassType'.
    Line: 982
    

    First please make sure that you have updated the blog extension to the newest version.

    Read more »
  4. Add Custom Field To Magento 2 Blog Post

    If you need to extend Magento 2 Blog Module by Magefan and add a new custom text field to Blog Post edit page in Magento 2 Admin panel (Content  > Blog > Posts) you must to create a simple custom Magento 2 Extension.

    You can download a sample extension from our GitHub page or you can create it manually using the steps below:

    1. Create composer.json file

    app/code/Magefan/BlogCustomField/composer.json
    {
    "name": "magefan/module-blog-custom-field",
    "description": "Implements Blog functionality on Magento 2 store",
    "require": {
    "magefan/module-blog" : ">=2.8.0"
    },
    "type": "magento2-module",
    "version": "2.0.0",
    "license": [
    "OSL-3.0",
    "AFL-3.0"
    ],
    "autoload": {
    "files": [ "registration.php" ],
    "psr-4": {
    "Magefan\\BlogCustomField\\": ""
    }
    }
    }

     

    Read more »
  5. Magefan Magento 2 Blog Comments Missing

    If you use a third-party theme for your Magento 2 store and have enabled "Use Magefan Blog Comments" as a blog comment option and flushed the Magento cache

    Magneto 2 Blog Comments

    but you still cannot see the comments on the blog post page on the storefront, please compare layout file blog_post_view.xml in your theme folder

    Read more »
  6. Display Tag Count In The Magento 2 Blog Tag Cloud Sidebar

    If you need to display tag count in the Magento 2 Blog tag cloud sidebar, you need to extend the tags sidebar template.

    To do this:

    1. Copy the template file from the Blog extension folder

    view/frontend/templates/sidebar/tag_claud.phtml

    to your theme folder

    app/design/frontend/ThemeVendor/themename/Magefan_Blog/templates/sidebar/tag_claud.phtml

    Read more »
  7. Remove Blog Top Link In SmartWave Porto Theme

    SmartWave Porto Theme for Magneto 2 includes Magefan Blog Extension out of the box and adds the blog link to the header top links.

    If you want to remove the blog from the top links, please follow these steps:

    1. Create a new file in your child theme (ThemeVendor/theme-name) directory:

    app/design/frontend/ThemeVendor/theme-name/Magefan_Blog/layout/default.xml 
    Read more »
  8. Magento 2 Blog Permalink Settings

    With free Magefan Blog Extension for Magento 2, you can set up different types of SEO-friendly URLs. To do this please go to:

    Magento 2 Admin Panel > Stores > Configuration > Blog > Permalink Settings

    Blog Route

    By default all blog pages accessible via URL

    https://mystore.com/blog/

    To change this, edit "Blog Route" option. Via this parameter, you can make blog pages accessible throw URLs like:

    https://mystore.com/news/
    https://mystore.com/stories/
    Read more »
  9. Magento2 Ultimo Theme Blog Link in Menu

    If you have already installed Magento 2 Blog Module v2.6.2 (or later) you can easily add a blog link to the Menu on your Ultimo theme.

    Read more »
  10. The Blog Links in SmartWave Porto Mega Menu

    If you have already installed Magento 2 Blog Module v2.6.2 (or later) you can easily add a blog and blog categories links to the SmartWave Mega Menu.

    Read more »
Posts loader