Tutorial: How To Add a Blog In Magento 2

signals living styles

Tutorial: How To Add a Blog In Magento 2

Magento 2 is an ecommerce platform loaded with many awesome features. To run a Magento store with amazing speed and performance, a managed cloud hosting, like Cloudways, is required.

The word Blog was derived from ‘web log’. A blog is basically a type of website with posts appearing in a reverse chronological order. If you have a running blog, you’d have noticed that it is easier to update posts on a blog and it’s also great for marketing your product or services. One of the most useful uses of a blog is that it helps you generate traffic for your website. It also makes it more SEO friendly and builds a better sales strategy. All in all, a blog will make the tie between you and your customers much stronger.

121516_0113_TutorialHow1

By default, Magento 2 does not provide the blog functionality. However, you can easily integrate a blog in Magento 2. All you need is a Blog extension and you can find many according to your need.

In this tutorial, we are going to learn how to integrate a Blog in Magento 2. I’ll use Magefan Blog for this review, and you can download it from here.

Step 1

After downloading the file, extract it to a temporary directory.

Step 2

In the root directory of your Magento, create folders app/code/Magefan/Blog. Your root directory will now look like this:

121516_0113_TutorialHow2

Step 3

Now in the Blog folder, copy all the files and folders from archive(Magefan Blog). You can use FileZilla for this action. The structure will now look like this:

121516_0113_TutorialHow3

Step 4

Go to the Admin Panel of the Magento Store and navigate to the System tab from the left corner of the page. Next, click the Cache Management option.

121516_0113_TutorialHow4

Now flush the cache by clicking Flush Magento Cache.

121516_0113_TutorialHow5

Now disable the cache.

121516_0113_TutorialHow6

Step 5

Launch the SSH terminal and then run these commands in the root directory of Magento:

php bin/magento setup:upgrade

php bin/magento setup:db-schema:upgrade

php bin/magento setup:di:compile

php bin/magento setup:static-content:deploy

Step 6

Navigate to the Stores tab from the left corner of the page and click the Configuration option.

121516_0113_TutorialHow7

Now go to ADVANCED ? Advanced

121516_0113_TutorialHow8

You can now see the Magefan_Blog module here.

121516_0113_TutorialHow9

On the left side, you can see the Magefan Blog extension as shown below:

121516_0113_TutorialHow10

Step 7

Navigate to the Content tab from the left corner of the page. Next, click the Posts option.

121516_0113_TutorialHow11

One post is already added by default: Hello World. You can add more posts by clicking Add New Post.

121516_0113_TutorialHow12

Step 8

Launch your application and click on Blog.

121516_0113_TutorialHow13  This is your Blog page:

121516_0113_TutorialHow14

Final Words

Blog is a crucial part of a store and it is helpful in many aspects. It is a marketing strategy that brings traffic to the store. After this tutorial, you should now be able to integrate a Blog to the Magento 2. If you have any questions or would like to add to the discussion, please leave a comment below.

If you need help with your magento web design or magento development we are here to help.

Author Bio

Syed Muneeb Ul Hasan is a Magento Community Manager at Cloudways. An expert in PHP and Magento, he prefers to educate users in the implementation and usage of cloud based Magento Hosting Solutions. When not working, he loves to watch cricket. You can email him at [email protected]

Leave a Reply

Get me More Sales and Profits

Categories