<?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd"> <module name="Magenticians_Mymodule" setup_version="1.0.1"></module> </config>Create registration.php in app/code/Magenticians/Mymodule and paste the following code in it:
<?php \Magento\Framework\Component\ComponentRegistrar::register( \Magento\Framework\Component\ComponentRegistrar::MODULE, 'Magenticians_Mymodule', __DIR__ );
<referenceBlock name="privacy-policy-link" remove="true"/>Here are some link blocks you could easily remove:
<referenceBlock name="footer_links"> <block class="Magento\Framework\View\Element\Html\Link\Current" name="custom-footer-link"> <arguments> <argument name="label" xsi:type="string">Create Account</argument> <argument name="path" xsi:type="string">customer/account/create/</argument> </arguments> </block> </referenceBlock>In the code above, I have added the Create an Account link in Magento 2 footer according to the scenario. The final default.xml file will look like this:
<?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body> <referenceBlock name="privacy-policy-link" remove="true"/> <referenceBlock name="footer_links"> <block class="Magento\Framework\View\Element\Html\Link\Current" name="custom-footer-link"> <arguments> <argument name="label" xsi:type="string">Create Account</argument> <argument name="path" xsi:type="string">customer/account/create/</argument> </arguments> </block> </referenceBlock> </body> </page>
php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento setup:static-content:deploy php bin/magento cache:clean php bin/magento cache:flushGo to the store and you will see the result:
In the highly competitive modern workplace, trust, and employee loyalty are crucial factors for long-term… Read More
In the ever-evolving world of small business developing and implementing effective marketing strategies is critical to… Read More
With one of the highest internet penetration rates, the UAE has set out to revolutionize… Read More
Artificial Intelligence (AI) has been continually evolving, leading to remarkable advancements in various industries. Among… Read More
Extensions, extensions and lots of extensions. We all love extensions, don’t we? After all, extensions… Read More
Software quality is crucial to a firm's success across industries in the quickly changing digital… Read More
View Comments
Thank you for your writings.
This doesn't tell how to totally customize the footer. How to add like 4 blocks of links in footer? As for someone coming from Joomla!, it's kinda hard to find my way around Magento.