Skip to content

magento2

Auto Added by WPeMatico

How to set meta title dynamically for specific category in magento 2

I want to set meta title dynamically for specific category only and i getting meta title information based on url id(?id=1). events.xml <?xml version=”1.0″ ?> <config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:Event/etc/events.xsd”> <event name=”catalog_category_load_after”> <observer instance=”StackExchangeMagentoObserverFrontendCatalogCategoryLoadAfter” name=”stackexchange_magento_observer_frontend_catalog_category_load_after” /> </event> observer public function execute( MagentoFrameworkEventObserver… Read More »How to set meta title dynamically for specific category in magento 2

Load custom less in a particular phtml file

I know that I can load a custom css in a particular phtml file using <link rel=”stylesheet” type=”text/css” href=”<?= $this->getViewFileUrl(‘Custom_Module::css/source/file.css’)?>”> I want to know how can I do this but using a _file.less Thanks!

How to move attributes above product tabs

With this code: <move element=”product.attributes” destination=”content” after=”-” /> Attributes moved under product tabs. https://prnt.sc/_6gXFtYisOXC Can anyone have solution how to move above this tabs? 🙂