Monthly Archives: April 2020
- Posted: April 15, 2020Categories: Magento 2 FixesRead more »
Recently we got an error "data-vocabulary.org schema is deprecated and not supported by Google anymore. Please migrate to using schema.org types." validating one of our website pages. The same error we got in Google Search Console.
This "data-vocabulary.org schema is deprecated" error is related to the breadcrumbs structure data. We used "data-vocabulary.org/Breadcrumb" schema for the structured data, but Google support it no longer.
You may also receive this error starting from April 6, 2020, in case you haven't converted your structured data scheme from data-vocabulary.org to schema.org.
Before we get to the point of how to fix the
- Read more »
Magento 2 CMS blocks being a great way to show different information to your customers not only make your Magento 2 website more engaging but help you drive customers' attention to certain products, offers or services. Static blocks are those pieces of content you can display practically on every page of your Magento 2 store.
In case you don't want to spend too much time going through the CMS block configurations you can call the CMS block in PHTML file or using the layout XML file. However, in this article, you will learn about the most common way to display the CMS block on Magento 2 page which is adding it with the help of widget. So, once you create the CMS block you're good to go.
- Posted: April 14, 2020Categories: How to?Read more »
Magento 2 CMS blocks are managed directly from Magento admin using widgets / WYSWYG editor widgets and displayed on any page of your Magento 2 store. Except for displaying CMS block on CMS Page or CMS Block, showing it on category page there is an option to call CMS block programmatically using XML file.
Use this code in order to add the CMS block 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>
- Read more »
Displaying CMS blocks on Magento 2 category page allows you to inform your customers about some special offers and new category products. There are plenty of other reasons to add CMS block to the catalog category page in Magento 2. And many of you know them already. So, let's not stop here and start learning how to display CMS block on Magento 2 category page.
Take the following steps to add CMS block to Magento 2 category page:
1. Go to Catalog > Categories and choose the Category you want to display the CMS block on.
2. In the Content section Add the CMS block you want to add.
- Read more »
There are cases when you need to display Magento 2 CMS block inside a PHTML template file. To programmatically call the CMS block in .phtml template file please use this code:
->setBlockId('my_cmsblock_identifier') //replace my_cmsblock_identifier with real CMS bock identifier
Note that your CMS block should exist and be enabled. If the CMS block is disabled or does not exist, this code will not display any content.
The use of createBlock method is a fast but not ideal way in terms of best practices.
- Read more »
In case you've already created the Magento 2 CMS block, you might be interested where you can display it. Magento allows you to display the CMS block on the category page, call the CMS block using layout XML or in PHTML file. But, what we're going to show you in this article is how to display the CMS block on Magento 2 CMS page or CMS block with the help of WYSIWYG editor. You can use this guide for WYSIWYG on other admin pages as well.
Follow these steps to learn how to display the CMS block in content using WYSIWYG editor (as an example we will include CMS block into CMS page):
1. Navigate to Content > Pages, choose the CMS page you want to display the CMS block on and in the Action section choose Edit.
2. Unfold the Content section and press the Widget button to insert the widget.
- Posted: April 03, 2020Categories: Magento 2 FixesRead more »
If you use Magento 2 and get an error like this:
Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:
d eof while reading in ven dor/google/recaptcha/src/ReCap tcha/RequestMethod/Post.php on line 72
<pre>#1 file_get_contents() called at [vendor/google/recaptcha/src/R
submit() called at [vendor/google/recaptcha/src/R eCaptcha/ReCaptcha.php:156]
#3 ReCaptcha\ReCaptcha->verify() called at [app/code/MSP/ReCaptcha/Model/
validate() called at [app/code/MSP/ReCaptcha/Observ er/ReCaptchaObserver.php:93]
haObserver->execute() called at [vendor/magento/framework/Even t/Invoker/InvokerDefault.php: 72]
r\InvokerDefault->_callObserve rMethod() called at [vendor/magento/framework/Even t/Invoker/InvokerDefault.php: 60]
when trying to login to the admin panel, reset customer password, create a new customer account, etc., you can make a quick fix. To do this please follow the steps below: