Blog Extension

  1. 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 »
  2. 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 »
  3. 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 »
  4. 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 »
  5. 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 »
  6. 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 »
  7. 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 »
  8. 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 »
  9. Manage Magento 2 Blog Sidebar

    In order to manage Blog Sidebar in Magefan Blog Extension for Magento 2, please go to the 'Admin' panel > 'Stores' tab  > 'Configuration'  > 'Magefan Extensions'  > 'Blog' and find 'Sidebar' group.

    Read more »
  10. How to create a blog category in Magento 2

    In order to manage blog category in Magento 2, first of all, make sure that Magefan Blog Extension is installed on your Magento 2 instance.

    Follow these steps to learn how to create a blog category in Magento 2:

    1. Log in to your Magento 2 admin panel.
    2. Go to the Content’ tab > ‘Blog’ > ‘Categories’.
    3. Press the ‘Add new Category’ button.

    Read more »
Posts loader