Child pages
  • Blog - Magento 2

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Section

Once you are finished with installing the extension and registering Disqus application it is high time to proceed to your Magento 2 backend to finalize the Blog setup.

Before creating your first blog post we suggest running through the Blog extension settings and other options available to adjust the blog look and behavior. This will help in better understanding of how the extension functions and what can you expect your posts to look and feel like.

 

The fist step is to apply Disqus Forum Code and Secret Key at the General Settings section of the extension to finalize the installation.

General Settings


Stores > Configuration > aheadWorks extensions > Blog

This configuration section reflects the Blog functional aspects. These are the settings that affect the blog accessibility, content layout and other.

Here you have an access to the following configuration options:

  • Enabled - defines is the Blog is enabled on the store;

  • Route to Blog - defines the direct link to the main blog page of your store e.g. store.com/myblog;

  • Blog Title - defines the name of the blog page; either you want to add your company name or change the title completely, - feel free adjusting this field as you feel;

  • Posts per page - defines how many posts will be displayed per blog page;

  • Display Sharing Buttons At - defines where the social network sharing buttons should be displayed at;

  • Comments enabled - defines if customers can comment blog posts;
  • Disqus Forum Code - paste here the Disqus URL from the step 3 of Disqus setup;

  • Disqus Secret Key - paste here the Disqus Secret Key from the step 2 of Disqus setup.

You have just configured the main blog page and access to it. Now we suggest proceeding to adjusting the Blog sidebar and SEO.

Stores > Configuration > aheadWorks extensions > Blog

Sidebar

This configuration section reflects the Blog sidebar functional aspects. These settings define the post tags look, let you add a CMS block and configure the recent posts to display.

Here you have an access to the following configuration options:

  • Number of Recent Posts to Display - defines how many most recent blog posts should be displayed in the blog sidebar;
  • Number of Most Popular Tags to Display - defines how many popular tags should be displayed in the tag cloud of the blog sidebar;
  • Highlight Popular Tags - defines if the most popular tags should be highlighted with bold or with increased font size;
  • Sidebar CMS Block - allows chosing a CMS block to be displayed in the blog sidebar.
Info
Expand
titleClick here to see how the sidebar looks like...

SEO

Below the Sidebar configuration block you can find SEO configuration with a single filed Blog Meta Description. At this field you are suggested to type in few words for SEO identification of your Blog.

Related Products

Stores > Configuration > aheadWorks extensions > Blog

Starting from 2.0 version of Blog extension, store administrator can add related product blocks to the blog post pages. In addition, Blog tab is added to the product pages. Under the 'Blog' tab customers can find blog articles where this particular product has been mentioned as related.

This configuration section defines how the related product blocks that can be assigned to the blog posts should behave:

  • Display Blog Posts Tab on Product Page - defines if the 'Blog' tab should be displayed at product pages;
  • Display Related Products Block on Post Page - defines if and where the related products block should be displayed at the blog post page;
  • Related Products Block Layout - defines the related product block's layout;
  • Display "Add to Cart" Button - defines if 'Add to Cart' button should be displayed on the products featured in the related product blocks at blog post pages.

Once done with the settings click button.

Before continuing to creating your first blog post there is one other thing to consider - blog categories.

Wordpress Import

Stores > Configuration > aheadWorks extensions > Blog

Starting from 2.2.0 version of Blog extension, store administrator can import blog posts from wordpress blog.

The process behind migration is the following:

  1. Navigate to Tools > Export in the Wordpress administrator area;
  2. Choose 'Posts' option and click 'Download export file' button. An XML file contatining containing all blog posts should be downloaded;
  3. Navigate to your Magento backend Stores > Configuration > aheadWorks extensions > Blog;
  4. In the 'Wordpress Import' section of the Blog settings upload XML file via 'Import file';
  5. Set 'Override existing posts with the same URL' if you want the existing Magento 2 posts with the same URL overridden;
  6. Click 'Import Posts' button to begin post import;
  7. If imported successfully copy contents from Wordpress folder:
    wp-content/uploads/ 
    directly to Magento folder:
    /pub/media/wp-content/uploads/
    If this directory doesn't exist - create it manually. Make sure the file permissions are set properly.

Post migration is now complete.

Blog Categories

Content > Blog by aheadWorks > Categories

Blog Categories represent another navigation tool your customers may find helpful. Along with providing a navigation tool, categories ease the post management and let you highlight the post's theme.

Click button to add the first blog category to your store. Once at the New Category page decide on the following:

The configuration is pretty much straightforward with the options names speaking for themselves.

Now, when we are done with configuring the extension it is time to create your first blog post.

...