1. Resize Blog Post Images Programmatically

    To get resized post image you can use next code in your template files:

       $width = 100;
       $height = 150;
       $imageHelper = $this->helper(\Magefan\Blog\Helper\Image::class);
       src="<?php echo $imageHelper->init($_post->getFeaturedImg())->resize($width, $height); ?>"
       alt="<?php echo $block->escapeHtml($_post->getTitle(), null, true) ?>" />
    Read more »
  2. Change The Layout For All Magento 2 Blog Pages

    If you use Magefan Blog Extension for Magento 2 and need to change the layout e.g. from "2 columns with a right sidebar" to "2 columns with a left sidebar" for all blog pages, please do next:

    1. Create a file


    2. Add the code into it

    <?xml version="1.0"?>
    <page xmlns:xsi="" layout="2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">

    Read more »
  3. 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

    "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": [
    "autoload": {
    "files": [ "registration.php" ],
    "psr-4": {
    "Magefan\\BlogCustomField\\": ""


    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


    to your theme folder


    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:

    Read more »
  6. 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 »
  7. 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 »