Yearly Archives: 2017
Use the following code to insert the template block in WYSIWYG:
Once you start a blog on your store, one of the first things to do is to promote it across your website. You can add blog posts to homepage, add related posts to product pages or try some other way. But the simplest of all is to add a blog link to the Magento navigation menu.
That's what you'll learn to do with the
. Since the process differs depending on the theme you use, we'll describe a few different cases.Add/Remove Blog Link from Magento Navigation Menu
- Navigate to the Stores > Configuration > Magefan Extensions > Blog and find the Category Top Navigation section.
- Choose whether to Display Blog Link in a corresponding select box.
- Add the Link Text that will be displayed on the frontend.
- Select whether to Include Blog Categories in the menu and specify the Maximal Depth of the subcategory levels.
Note: you can define whether to include a blog category in a menu directly on the blog category page.
Don't forget to Save the settings once you finish and check
Magento 2 blog index page or blog homepage is the first blog page your readers land on. So, you should configure it in a way that makes their navigation through your blog as seamless as possible. However, it should also be optimized for SEO to drive clicks from search.
In this article, we'll cover both to help you configure your Magento 2 blog homepage.
To manage blog homepage in Magento 2 Blog Extension, navigate to Stores > Configuration > Magefan Extensions > Blog and find Blog Index Page section.
Title and Description
Enter the Title of the blog homepage and set the description that will be displayed on the frontend.
Display Mode
Choose a Display Mode to define how posts will be displayed on the blog index page. You can select Recent Blog Posts, Featured Blog Posts or simply leave it Blank if you want to build custom blog homepage with widgets.
Note: if you choose to display the featured posts on blog index page set the post IDs. If you choose to leave it blank you need to create CMS
Your store position in Google or other search engines depends on your SEO strategy. There are a lot of factors SEO is based on and even more things that depend on SEO, website traffic in particular.
Magento 2 Blog is one of the best ways to drive more traffic to your website. So we added the best SEO practices to our Blog Extension to make your blog pages rank.
And in this article, you're going to learn about blog permalink settings — SEO-friendly blog URLs.
When running a blog, navigation is one of the most important things you need to keep in mind. It's essential that your readers can browse through your publications easily and find information fast.
The
offers you an advanced instrument for that — a sidebar. Here you can configure various elements, such as the search form, category tree, related products, tags cloud and more.You only need to press a few buttons to manage the Magento 2 blog sidebar. And today you'll learn how to do that.
To manage the Magento 2 blog sidebar, navigate to Stores > Configuration > Magefan Extensions > Blog and unfold the Sidebar section, Here you'll find all the available widgets. Let's have a look at each of them in particular.
Note: you need to set the Sort Order to determine the position of each widget. The larger the number, the lower the widget is displayed in the sidebar.
Search Form
Here you just need to Enable the search form and specify its Sort Order. Once done, the search
Magento 2 blog categories are a great way to improve blog navigation and organize your posts according to different criteria. Creating categories in
, you improve customer experience and allow readers to find things they are interested in faster and more effectively.So, in this guide, you'll learn how to create blog categories and manage them.
Note: before we start, note that some of the options described here are available only in the Blog Plus and Extra.
Create Blog Categories in Magento
We recommend creating categories before you create posts. However, you can also add a new category when creating blog posts. First, navigate to the Content > Blog > Categories and press the Add New Category button.
1. Fill out general information
Enable your category and enter a Title. Then assign a category to Parent Category, if any. Set the Position of the category in the sidebar and choose whether to Include a category in the top navigation Menu.
Additionally, you can set whether
Before you install Magento 2, make sure that the webserver (such as LAMP) and Elasticsearch are configured and meet Magento 2 requirements.
Install the virtualhost script for the LAMP server, and create a new virtual host dev.mymagento.com, run the command:
virtualhost create dev.mymagento.com
Open this link in your browser and make sure you can see the content, not the error.
Download the archive with the latest version of Мagento 2. When downloading, you can select the "Include sample data" option, so that after you install Magento 2 test products and categories are available in the store.
Once you download the archive, place the folders and files from it in your domain directory /var/www/devmymagentocom.
Edit the virtual host domain configuration file, run the command:
gedit /etc/apache2/sites-available/dev.mymagento.com.conf
and change the string
DocumentRoot /var/www/devmymagentocom
to
DocumentRoot /var/www/devmymagentocom/pub
The pub folder must be the root one for the webserver.
After saving the changes, do not forget to restart the webserver, run the command:
service apache2 restart
Start installing Magento 2.
When you create blog posts in Magento, you shouldn't forget about their appearance on the blog homepage and post lists. Especially if you have some short content added for the post. The "read more" is a call to action that encourages visitors to click on the posts.
So, in this guide, you'll learn how to add the "read more" button in Magento 2 blog in two different ways.
Add "read more" via WYSIWYG editor
- Navigate to Content > Blog > Posts and select a blog post to which you want to add the "read more" button.
- Scroll down to the Content section.
- Insert Pagebreak tag wherever you want.
4. Save a post one you finish and go to the checkout to see the result.
Add "read more" via Page Builder
- Go to Content > Blog > Posts and select a necessary blog post.
- Scroll down to the Content section and start editing using the page builder.
- Insert HTML Code block wherever you want to add the page break.
4. Start editing the HTML Code block.
5. Add the "
Our Magento 2 Blog Extension provides multiple import options for you to move your blog content from one blog extension or platform to Magento 2.
In this article, you will learn about WordPress.
Take the following steps to import WordPress blog to Magento 2:
- Set the Database Name where you run the WordPress Blog.
- Enter the User Name and Password.
- Specify the Database Host.
- Enter the Table Prefix.
- Choose the Store View you want WordPress Blog to be imported to.
If you want to see the WordPress blog import to Magento 2 in action, check this short video:
Note: only the image links will be imported, so you have to move your WordPress blog images to Magento pub/media/magefan_blog folder for them to be displayed.
Troubleshooting
Due to security reasons, databases are configured to accept requests only from the same server as they are (localhost), and it blocks all requests from outside (another server).
So, if you have issues migrating WordPress blog to Magento 2, you have to move your