Author Publishing

What is Less ?

What is Less ?

What is Less ? Today I am going to explain LESS (a CSS pre-processor) in this article. Less is a pre-processor of CSS and extends the features and capabilities of CSS. Less has many features like – it allow variables, functions, mixins, Nested Rules, Operations, Importing other less files, and many more features (explained in […]

Read More

reindexing programmatically in magento 2

reindexing programmatically in magento 2

reindexing programmatically in magento 2. In this article we will learn how to reindexing through code in magento 2. You can write the below code in any class according to your need :   ….. /** * @var \Magento\Indexer\Model\IndexerFactory */ protected $_indexerFactory; /** * @var \Magento\Indexer\Model\Indexer\CollectionFactory */ protected $_indexerCollectionFactory; public function __construct( \Magento\Indexer\Model\IndexerFactory $indexerFactory, \Magento\Indexer\Model\Indexer\CollectionFactory $indexerCollectionFactory ){ […]

Read More

call custom block and links in footer in magento 2

call custom block and links in footer in magento 2

call custom block and links in footer in magento 2 In this article we will learn how to call links and custom block in footer in magento 2. So, the file which is used to define configurations of footer is default.xml. This file will be located under app/code/Namespace/Module/view/frontend/layout/. This file calls on every page, that’s why we […]

Read More

load custom layout at frontend from controller in magento 2

load custom layout at frontend from controller in magento 2

load custom layout at frontend from controller in magento 2 In this article we will learn how to load a custom layout from controller in Magento2. So at first, we will create a layout file which is to be loaded from other controller under app/code/Namespace/Module/view/frontend/layout/ , let’s say module_custom_customlayout.xml Now write the following code in this file. <?xml […]

Read More

Set, get and delete data from cookie in magento 2

Set, get and delete data from cookie in magento 2

Set, get and delete data from cookie in magento 2 In this article we learn how to Set, get and delete data from cookie in Magento2. So first, Create a folder “Cookie” under app/code/Namespace/Module/ and create a file “Custom.php” under app/code/Namespace/Module/Cookie/. Here is the code snippet that will be written in file app/code/Namespace/Module/Cookie/Custom.php . In […]

Read More
css.php