I am created the Custom header and it is working fine. But include child links also showing. I don't want to show child links. Only my custom code will appear How to do.
Block/Header.php
<?php
namespace Learning\TopHeader\Block;
class Header extends \Magento\Theme\Block\Html\Header{
protected $_template = 'Learning_TopHeader::custom_header.phtml';
}
etc/di.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<preference for="Magento\Theme\Block\Html\Header" type="Learning\TopHeader\Block\Header" />
</config>
view/frontend/templates/custom_header.xml
