<?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:
Your greatest possible competitive advantage can be your clients and the interactions they have with… Read More
Digital marketing KPIs are measurable values that marketing teams use to track progress toward desired… Read More
In today's digital age, fraud poses a significant threat to businesses of all sizes. As… Read More
Financial crimes continue to evolve and proliferate in our increasingly digital, global economy. From complex… Read More
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
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.