Skip to content

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

Shared vs Cloud hosting the pros and cons

Shared vs Cloud hosting pros and cons I have been told a few time to use cloud hosting DigitalOcean and Vultr its cheaper and better et… | Read the rest of https://www.webhostingtalk.com/showthread.php?t=1875701&goto=newpost

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!

magento 2.4.3 Request validation failed for action “ControllerAdminhtmlImportSave

4.3 admin custom controller redirecting to dashboard <form enctype=”multipart/form-data” method=”post” action=”<?php echo $block->getFormAction(); ?>” id=”edit_form” X-Requested-With= “XMLHttpRequest”> <input name=”form_key” type=”hidden” value=”<?php echo $block->updateCancelTime() ?>” /> <!–<input name=”form_key” type=”hidden” value=”<?php // echo $block->getFormKey() ?>” />–> <div id=”base_fieldset” class=”fieldset “> <table> <tbody>… Read More »magento 2.4.3 Request validation failed for action “ControllerAdminhtmlImportSave