How to call static block in magento2

Magento2
Creating s static block Magento2 => Login in into your magento2 admin panel. => Navigate to Content->Blocks => Click Add New Block => Give your block title (Title: A descriptive name to identify this block) => Give your block identifier (Identifier: The identifier will allow you to call this block from your template files or using the Magento markup tags. Typically this would be a programmer-friendly name with no spaces or punctuation ie “my_block_identifier” rather than "My block’s identifier!") => Set status enabled (Status: Here you can enable or disable a block.) => Enter your block content field (Content: As well as standard HTML you can also include special Magento markup tags in the block content. You can find information about these tags on the markup tags wiki page.) =>…
Read More

Removing Or Editing Copyright Notice From The Footer In Magneto 2

Magento2
The development process is a complex matter. And as you create software, you might have lots of questions. And in this blog, we are trying to help you answer at least some of them. Today, we will discuss the issue of creating a message to a system log. If you are looking for a way to create a custom variable or a system message with Magento 2, then here is how you can do it. Programming is a straightforward industry: there are always clear ways to achieve specific goals. So, after you finish reading this article, you will have a solid understanding of the process. It is no easy rogerian essay topics. So, without further ado, let’s dive into the process itself. What are logs? First things first. Let’s clarify…
Read More

Automate your SEO setting By Powerful Magento 2 SEO Extension

Magento2
Whether you are running small store or big eCommerce website. If your targeted niche is competitive, you must have to do SEO for rank in SERPs. SEO(Search Engine Optimization) plays a vital role in your sales performance. Before starting to know about extension let me explain why SEO need for an eCommerce store. Suppose you have a store with the 10k product list and you want to set all product unique detail for on-page SEO optimization i.e set unique Meta information, Dynamic internal Linking, Set canonical Tag for the product as well category page, Generate Site map, etc. Now think that if you are doing all things individually then it will take approx 2 months and after you will not get the proper result. Then What is the solution? These…
Read More

Get Current Category and Current Product Detail Magento2

Magento2
There are two ways to get or find the current category and current product detail any phtml file. [php] <?php $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $product = $objectManager->get('Magento\Framework\Registry')->registry('current_product');//get current product echo $product->getId(); echo $product->getName(); ?> [/php] Or you can try to get other way using your custom module block file. app/code/JWD/WelcomeWorld/Block/WelcomeWorld.php [php] <?php namespace JWD\WelcomeWorld\Block; class WelcomeWorld extends \Magento\Framework\View\Element\Template { protected $_registry; public function __construct( \Magento\Backend\Block\Template\Context $context, \Magento\Framework\Registry $registry, array $data = [] ) { $this->_registry = $registry; parent::__construct($context, $data); } public function _prepareLayout() { return parent::_prepareLayout(); } public function getCurrentCategory() { return $this->_registry->registry('current_category'); } public function getCurrentProduct() { return $this->_registry->registry('current_product'); } } ?> [/php] Look at output or print using below code: [php] <?php // print current category data $currentCategory = $block->getCurrentCategory(); echo $currentCategory->getName() . ' '; echo $currentCategory->getUrl() . '…
Read More