cancel
Showing results for 
Search instead for 
Did you mean: 

Removing and add links/content to top bar Magento 2

Removing and add links/content to top bar Magento 2

Hi,

 

I am trying to remove the "Sign in" from the top bar at http://www.metalchipsolutions.com and replace it with just a phone number. My theme, Porto, has extended the blank theme and I followed the directions here:

 

http://magento.stackexchange.com/questions/92333/in-magento-2-0-how-can-i-add-new-top-links-and-remo...

 

Below is my current default.xml file. The odd thing/question is all the links except "Sign In" did disappear, but the phone number won't show and I can't get the "Sign In" to show.  

 

Thanks in advance.

 

<?xml version="1.0"?>
<!--
/**
* Copyright © 2015 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="logo">
<arguments>
<argument name="logo_img_width" xsi:type="number">111</argument>
<argument name="logo_img_height" xsi:type="number">50</argument>
</arguments>
</referenceBlock>
<!-- you can easly add New links with following code -->
<referenceBlock name="top.links">
<!-- Contact us Link -->
<block class="Magento\Framework\View\Element\Html\Link" name="contactus.link">
<arguments>
<argument name="label" xsi:type="string" translate="false">410-465-6396</argument>
<argument name="path" xsi:type="string" translate="false">/#</argument>
</arguments>
</block>
<!-- CMS Page Link Link
<block class="Magento\Framework\View\Element\Html\Link" name="aboutus.link" after="contactus.link">
<arguments>
<argument name="label" xsi:type="string" translate="false">about Us</argument>
<argument name="path" xsi:type="string" translate="false">about-us</argument>
</arguments>
</block> -->
<!-- you can easly Remove links with following code -->
<referenceBlock name="register-link" remove="true" /> <!--for Create Account Link-->
<referenceBlock name="authorization-link" remove="true" /> <!--for Sign In Link -->
<referenceBlock name="wish-list-link" remove="true" /> <!--for WishList Link-->
<referenceBlock name="my-account-link" remove="true" /> <!--for My Account Link-->
</referenceBlock>
<referenceContainer name="footer" remove="true"/>
<referenceBlock name="report.bugs" remove="true"/>
<referenceBlock name="catalog.compare.sidebar" remove="true"/>
<referenceBlock name="wishlist_sidebar" remove="true"/>

</body>
</page>

Tags (1)