New answers tagged

0

I recently came across a similar situation, The solution I was able to come up with was to add a custom layout handler to the page. and then move the element inside the layout handler. hear you can see how to add a custom layout handler for a product page: https://www.atwix.com/magento-2/add-custom-layout-handle-to-product-page-magento-2/ add the needed ...


0

We have Magento 2.4.1 with a multi site and multi theme configuration and we need a cms custom layout update and the only solution we have found is overriding module: app/code... I think is the same for categories or products custom layout In our case: app/code/Vendorname/Magento_Cms/view/frontend/layout/cms_page_view_selectable_cms-url-key_name.xml


0

Step-1: Create Generic.php at app/code/VendoreName/ModuleName/Block/Adminhtml/Edit/Button <?php namespace VendoreName\ModuleName\Block\Adminhtml\Edit\Button; use Magento\Backend\Block\Widget\Context; use Magento\Cms\Api\PageRepositoryInterface; class Generic { protected $context; protected $pageRepository; public function __construct( ...


1

File tree: app/design/frontend/MyVendor └── child_theme ├── Magento_Cms │   └── layout │   └── cms_page_view_selectable_product-finder_ProductFinderLayout.xml ├── composer.json ├── registration.php └── theme.xml registration.php <?php use Magento\Framework\Component\ComponentRegistrar; ComponentRegistrar::register( ...


0

You need to update the below code app/design/frontend/Vendor/Theme/Magento_Theme/page_layou/customer_services.xml <?xml version="1.0"?> <layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_layout.xsd"> <update handle="...


0

If you want to call static block on page Try below code : {{block class="Magento\\Cms\\Block\\Block" block_id="block_identifier"}} If you want to call in phtml file : Try below code : <?php echo $block->getLayout()->createBlock(\Magento\Cms\Block\Block::class)->setBlockId('block_identifier')->toHtml();?> Your xml file ...


Top 50 recent answers are included