Page 11 - Mari Skula
- 1 min read
Since it is in our nature to "follow the crowd" and do what others do, people like to read what others read, when it comes to blogs. In , except for the and widgets, you can also display popular posts.
Unlike other posts in a blog sidebar, you can't choose what is displayed as popular posts. The app calculates the views and displays the most viewed articles as popular posts.
Today, you'll learn how to set it up.
To display popular blog posts in Shopify:
Navigate to Apps > Magefan Blog > Configuration > Sidebar, find the Popular posts widget and enable it.
Choose a Template for the widget and enable the Post image.
Set the Number of posts you'd like to display in the popular posts section on the frontend.
Set the Sort order.
Note: the sort order option defines the position of the widget in the sidebar. The lower the number, the higher the popular posts widget will be displayed in the sidebar.
Don't forget to Save the setting once you finish and checkihor
- 2 min read
Although comments are one of the best ways to engage with your audience and get feedback on your posts, there always are some irrelevant ones. Malicious actions, spam or simple typos could be the reason why you need to edit or delete comments in the Shopify blog.
While you usually need an additional app to edit blog comments in Shopify, you can forget about this with the . It already has 3 built-in types of : Facebook, Disqus and Magefan.
So, if you want to edit, approve or delete comments before publication, you need Magefan comments. Let's find out how you can configure and use them.
How to Enable Blog Comments in Shopify?
To use comments in your Shopify blog, you need to enable them first. For that go to Apps > Magefan Blog > Configuration > Post Page (Post View) > Comments and choose to Use Magefan Blog Comments.
Here you also need to specify the Number of Comments and the Number of Replies to comments you want to allow for a .
How to Approve and Delete Comments in Shopifyihor
- 2 min read
Just like in catalogue search, the blog search bar in Shopify helps your readers to find relevant posts faster and navigate through them more easily. As you might know already, the default Shopify search bar is outdated and requires a lot of steps to modify, let alone implement in your blog.
So, for those of you who don't want to spend tons of time on development, we introduce . It allows you to add a search bar to the Shopify blog.
Today, you'll learn how to enable blog search in Shopify and how to integrate it with Shopify catalogue search.
Add Search Bar in Shopify Blog
1. Navigate to Apps > Magefan Blog > Configuration and find the Sidebar section.
2. Unfold the Search form section, enable the widget and set a Sort order for it.
Note: the sort order option defines the position of the search bar in the Shopify blog sidebar. The lower the number, the higher the search bar will be displayed.
Don't forget to Save the settings and that's it. Nothing else is required. Youihor
- 5 min read
Getting your Facebook Ads to work is not a piece of the pie. Without accurate insights into customers' behaviour, setting up effective Facebook campaigns is going to be challenging.
That's why you need Facebook pixel — a small piece of code that makes a huge difference. You add Facebook pixel to Magento 2, allow it to track information about different events customers perform on your website and send it to Facebook Ads Manager.
In this guide, we'll walk you through each step you need to take to make Facebook pixel work. You'll learn how you can set up Facebook pixel in Magento 2 with no technical skills, using only .
Prerequisites for Facebook Pixel in Magento
Before you add Facebook Pixel to Magento, make sure you:
Create Facebook Business page (mandatory) — needed to represent your business in ads.
Create Facebook Ads account (mandatory) — needed for managing and tracking your ads.
Create a Business Manager account (recommended) — needed for managing ad accounts, pages and paymentsihor
- 2 min read
Magento flexibility allows you to display CMS blocks in a multitude of ways. However, for those of you with technical knowledge, there are only two options.
You can either , or call them in the PHTML file. Today we'll focus of the second one.
Call CMS Block in PHTML File
To programmatically call the CMS block in .phtml template file use this code:
<?php echo $this->getLayout() ->createBlock(\Magento\Cms\Block\Block::class) ->setBlockId('my_cmsblock_identifier') //replace my_cmsblock_identifier with real CMS bock identifier ->toHtml();?>
Note: you need to for this method to work. If the CMS block is disabled or does not exist, this code will not display any content.
Using createBlock method is fast but not ideal in terms of best practices.
So what you can do is add a CMS block into your block using layout. Use the following code in a proper layout XML handle file and don't forget to once the layout is changed:
<referenceBlock name="my-main-phtml-block">ihor
- 1 min read
Although CMS blocks are managed directly from Magento admin using widgets there are other ways to .
If you have some technical skills you can just call CMS block in Magento using the XML file.
Call CMS Block Using XML File
Use the following code to add CMS blocks using Magento 2 layout XML:
<referenceContainer name="content">
<block class="Magento\Cms\Block\Block" name="unick_block_name">
<arguments>
<argument name="block_id" xsi:type="string">my_cmsblock_identifier</argument>
</arguments>
</block>
</referenceContainer>
You need to replace "my_cmsblock_identifier" with your CMS block Identifier or ID (we recommend using Identifier).
Display CMS Blocks Dynamically (by Date)
Even if you add CMS blocks programmatically using the XML file, they will still be static. It means that you'll need to replace the identifier or disable a block manually. But not if you use the .
This way, you can display your CMS blocks dynamically, by different dates, times and days of the week.
But that'sihor
- 9 min read
Magento 2 static blocks are a great way to drive customer's attention to certain products, offers, or services. Although creating is super easy, adding them to pages is quite a challenge.
All because there are different ways to insert CMS blocks in Magento. Everything depends on how and where you prefer them to appear.
This guide covers the main tools and locations to add static blocks, including how to display them dynamically: by custom group, date or other conditions.
Key takeaways
You can display CMS blocks in Magento through category settings, widgets, the WYSIWYG editor, and page builder.
Category settings are the fastest way to add banners in Magento, but they allow placement in predefined areas only — at the top of the category, near the description.
Magento widgets are the most popular method to insert CMS blocks since they give full control over the pages and containers where the block will appear.
The WYSIWYG editor and Page Builder let you add blocks directly into page contentihor
- 2 min read
Choosing the right theme for your store is one of the first steps you take when . It should not only represent your brand using custom layouts and templates but be user-friendly, fast and SEO-optimized.
The variety of Magento 2 themes on the market is growing. It allows you to find any theme you want on Magento Marketplace or Theme Forest. And once you make up your mind and choose the best , you need to know how to install and apply it to your store.
Since Magento has deprecated the WebSetup Wizard starting from Magento v2.3.6, you can now install Magento 2 theme only in the command line: via composer or archive. In the first case theme files will be located under vendor and, using the archive, you can find the theme files under app/design.
Install Magento 2 Theme via Composer
Before you install a theme in Magento 2, it is recommended to switch to .
1. Navigate to your Magento 2 root directory, using "cd" and run the following command:
composer require <vendor>/<name>
e.g. composerihor
- 1 min read
If you decided to remove the by Magefan, please follow the steps below. You can contact our team for a free consultation in case you have any issues with Magefan's theme.
Remove Theme Files
1. If you can find the theme files in the folder
app/code/Magefan/ThemeOptimizedapp/design/frontend/Magefan/optimized
then remove these folders. Also, you can remove other Magefan modules you don't need in the app/code/Magefan.
2. If the theme was installed via the composer and its files are located in the folder
vendor/magefan/theme-frontend-optimized
then run the composer CLI command to remove it
composer remove magefan/theme-NAME# replace NAME with:# frontend-optimized - for Optimized Magento 2 Theme# frontend-optimized-plus - for
Once extension files have been removed, run these Magento CLI commands:
php bin/magento setup:upgradephp bin/magento setup:di:compilephp bin/magento setup:static-content:deploy
Note: if you don't want your website to be down during deployment, try these .
Remove Theme Dataihor
- 1 min read
If you need to update the by Magefan, please follow the steps below.
Note: that the update instructions depend on the method the Optimized Magento 2 Theme was installed with.
Update using composer
If the Optimized Magento 2 Theme was installed via the composer (check if vendor/magefan/theme-frontend-optimized folder exists), then you need to run these simple CLI commands in Magento 2 directory:
composer remove magefan/theme-NAMEcomposer require magefan/theme-NAME ^x.x.x# replace NAME with:# frontend-optimized - for Basic plan# frontend-optimized-plus - for Plus plan# replace x.x.x with the version you want to usephp bin/magento setup:upgradephp bin/magento setup:di:compilephp bin/magento setup:static-content:deploy
If you want to upgrade to the Plus, check this guide on how to .
Update using archive and FTP
If the Optimized Magento 2 Theme was installed via FTP (check if app/code/Magefan/ThemeOptimized folder exists), then follow these commands:
1. Download the latest version of the Optimizedihor
- 1 min read
You can install by Magefan, using the composer or archive installation method.
Do you want us to install the Optimized Magento 2 Theme for you? Let our technical engineers do it – check out our .
Note: if you want to install the Optimized Magento 2 Theme Plus please navigate to your Magefan Account > My Downloads > Install via Composer to get the composer installation instructions.
Installation via composer (recommended)
Open command line.
Using command "cd" navigate to your Magento 2 root directory.
Run CLI commands:
composer require magefan/theme-frontend-optimized# Authentication required (repo.magento.com)# Get your Magento Marketplace authentication keys or use these: # Username: 7c018006799466c681ad507e27904677# Password: 289077c86e811661a8f7751828485d3aphp bin/magento setup:upgradephp bin/magento setup:di:compilephp bin/magento setup:static-content:deploy
Note: if you don't want your website to be down during deployment, try these .
Installation using archiveihor
- 5 min read
Even though you improve and focus on getting more organic traffic, sometimes you need to change your approach to increase conversions. While SEO will help you to drive traffic to your store, it doesn't guarantee this traffic will bring conversions.
So, if you want to improve the conversion score, since there are people who browse your website but buy nothing, you've landed on the right page.
Today we want you to learn more about Google Ads Dynamic Remarketing and help you to set it up for your store with .
Before we start, let's define what dynamic remarketing is and how it is different from remarketing.
What is Google Ads Dynamic Remarketing?
Google Ads dynamic remarketing is the campaign you can set up to display personalized ads to people who visited your website previously but didn't make a purchase.
Unlike remarketing, dynamic remarketing allows you to go one step further and display ads with products and services people visited.
A great advantage is the dynamic remarketingihor
- 1 min read
If you decided to remove , please follow the steps below. You can contact our team for a free consultation in case you have any issues with Magefan's extension.
Remove Extension Files
1. If you can find the extension files in the folder
app/code/Magefan/GoogleTagManagerapp/code/Magefan/GoogleTagManagerPlusapp/code/Magefan/GoogleTagManagerExtra
then remove this folder.
2. If the extension was installed via the composer and its files located in the folder
vendor/magefan/module-google-tag-manager
then run composer CLI command to remove it
composer remove magefan/module-google-tag-manager*
Once extension files have been removed, run these Magento CLI commands:
php bin/magento setup:upgradephp bin/magento setup:di:compilephp bin/magento setup:static-content:deploy
Note: if you don't want your website to be down during deployment, try these .
Remove Extension Data (optional)
Attention! This will clean all Google Tag Manager log and extension configurations.
1. Just in case please make a fullihor
- 1 min read
If you need to update by Magefan, please follow the steps below.
Note: the update instructions depend on the method the Google Tag Manager extension was installed with.
Update using composer
If the Google Tag Manager module was installed via the composer (check if vendor/magefan/module-google-tag-manager folder exists), then you need to run these simple CLI commands in Magento 2 directory:
composer remove magefan/module-NAMEcomposer require magefan/module-NAME ^x.x.x# replace NAME with:# google-tag-manager - for Basic plan# google-tag-manager-plus - for Plus plan# google-tag-manager-extra - for Extra plan# replace x.x.x with the version you want to usephp bin/magento setup:upgradephp bin/magento setup:di:compilephp bin/magento setup:static-content:deploy
If you want to upgrade to the Plus or Extra, check this guide on how to .
Update using archive and FTP
If the Google Tag Manager module was installed via FTP (check if app/code/Magefan/GoogleTagManager folder exists), then follow theseihor
- 1 min read
You can install by Magefan, using the composer or archive installation method.
Note: if you want to install the or Extra please navigate to your Magefan Account > Downloads > Install via Composer to get the composer installation instructions.
Installation via composer (recommended)
Open command line.
Using command "cd" navigate to your Magento 2 root directory.
Run CLI commands:
composer require magefan/module-google-tag-manager# Authentication required (repo.magento.com)# Get your Magento Marketplace authentication keys or use these: # Username: 7c018006799466c681ad507e27904677# Password: 289077c86e811661a8f7751828485d3aphp bin/magento setup:upgradephp bin/magento setup:di:compilephp bin/magento setup:static-content:deploy
Note: if you don't want your website to be down during deployment, try these .
Installation using archive or FTP
Download Google Tag Manager Extension ZIP-Archive from magefan.com website (not GitHub or other sources).
Extract files.
Copy app and lib foldersihor
- 2 min read
Creating and adding different ensure visitors can find relevant content on your blog faster. However, it is equally important that readers can navigate through your blog post content. One of the best ways to achieve that is Post Contents.
In the Magefan's , post contents is generated based on the <h> tags and added through a widget. So, today, you'll learn how to do that.
Note: Blog Post Contents feature is available only in the edition.
How to Add Contents to Post Content?
1. Navigate to Content > Blog > Posts and choose a blog post you'd like to add the contents to.
2. Jump to the Content section and click on widgets.
3. Choose Magefan Blog Extra Extension - Blog Post Contents as a Widget Type and press Insert Widget.
Don't forget to Save your post and check the contents on the frontend.
However, if you want to display post contents in the sidebar, keep reading.
How to Add Contents to Blog Sidebar?
1. Go to Content > Blog > Configuration > Sidebar > Post Contentsihor
- 1 min read
A blog sitemap plays a vital role in your page rankings. If it is not configured correctly your blog pages won't be crawled, indexed and ranked properly. Since our allows you to in a few clicks, all you need to do is submit it to search engines.
However, if you don't want some pages to be crawled and indexed, you simply need to exclude them from the sitemap. And you'll learn how to do that in this article.
Note: this feature is available in the plan.
To exclude pages from the Shopify blog sitemap:
1. Go to Apps > Magefan Blog > Posts and choose a you'd like to exclude from the sitemap.
2. Find the Search engine listing section and switch the Exclude from XML Sitemap option to Yes.
3. Save a blog post, go to the blog sitemap and check if a post is removed from it.
Note: the Exclude from XML Sitemap option is available for blog posts, category and tag pages, so you can exclude these pages from the blog sitemap if you like.
Once you finish configuring the blog sitemap andihor
- 2 min read
XML sitemap is one of the most important SEO concepts that helps to get your pages crawled and indexed. Think of it as a roadmap for search robots who need to discover new "routes" (pages) while crawling your website.
As you might know, Shopify generates a sitemap.xml file with all the product images, pages and collections automatically. However, in our we have our custom blog XML sitemap and in this guide, you'll learn how to find and configure it.
How to Find Shopify Blog Sitemap?
Your blog sitemap will always be available via the following path by default:
https://your-shopify-domain.com/a/blog/sitemap.xml
You can also find the direct link in the sitemap configuration section which we're covering below.
Note: if you've changed your app proxy — /a/blog/ — the sitemap path will be different.
Once you find your blog sitemap you can submit it to Google and other search engines.
Google Search Console Throws Errors
Sometimes it happens that Google Search Console can readihor
- 1 min read
Featured blog posts are posts that you choose to display. These could be some specific pieces of content you want to promote or be easy to discover for your blog readers. In , you can easily add featured posts to a and define their position.
To display featured blog posts in Shopify:
Go to Apps > Magefan Blog > Configuration > Sidebar.
Unfold the Featured Posts Widget tab and enable the widget.
Select the Template for the featured blog posts and choose whether to Display Post Image.
Specify the IDs of the Posts you'd like to display in the sidebar (coma-separated) and set Sort Order.
Note: the Sort Order option defines the position of your featured blog posts widget in the sidebar. The lower the number, the higher it will be displayed.
Don't forget to Save the settings and check how the featured blog posts are displayed.
However, sidebar, is not the only place where you can show your featured posts. You can also and choose a different template for them.
- 1 min read
As your blog grows, the number of blog posts will grow too. To keep the latest Shopify blog posts "at hand" you need to display them somewhere where they are easy to discover. And there is no better place to display your latest pieces than the .
Our allows you to enable Shopify recent blog posts, and choose a template for them.
To display recent blog posts in Shopify:
Navigate to Apps > Magefan Blog > Configuration > Sidebar.
Enable the recent posts widget.
Select the Template for the recent posts, List or Grid, and choose whether to Display post image.
Set the Number of posts and specify the Sort order. The latter defines the position of the recent posts in the sidebar. The lower the number, the higher it will be displayed.
Don't forget to Save the settings and go to the frontend to check how the blog posts are displayed in the sidebar.
Once you save the settings, your recent blog posts will be displayed and changed in the sidebar and dynamically. If you want to display someihor
- 1 min read
When you manage an e-Commerce store, you probably have a lot of things going on. Keeping up with every task you have without scheduling is quite challenging. One of those tasks could be publishing .
Luckily, from Magefan offers you an opportunity to schedule blog posts in advance, with just a few clicks.
To schedule blog posts in Shopify:
1. Go to Apps > Magefan Blog > Posts and find a blog post you want to schedule or press Add New Post if you want to create a new post
2. Specify the Date when you want a blog post to be published.
3. Enable a blog post and press Save or Save and Continue Edit if you want to continue editing it.
Note: you can also specify the End Date if you want to at a specific date.
Once blog posts are enabled and saved (with the future date) they won't be visible on the frontend before a specified date. This feature frees you from the hassles of manual post-publication and allows you to plan in advance.
If you want to explore all the otherihor

