I'm creating theme to be added to my store but it doesn't work here is default.xml in the following directory: magento_directory\app\design\frontend\vendor_name\theme_name\layout
<?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>
<referenceContainer name="header-wrapper" remove="true">
<block class="Magento\Framework\View\Element\Template" name="customtext" template="MyTheme::customtext.phtml" />
</referenceContainer>
</body>
</page>
here is my customtext.phtml file in the following directory magento_directory\app\design\frontend\vendor_name\theme_name\templates
<div class="block" style="float: right;margin-bottom: 0.5%;margin-top: 0.5%;">
<?php echo __('This is Custom Text'); ?>
</div>
and theme.xml file in the following directory magento_directory\app\design\frontend\vendor_name\theme_name
<?xml version="1.0"?>
<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd">
<title>My theme</title> <!-- your theme's name -->
<parent>Magento/blank</parent> <!-- the parent theme, in case your theme inherits from an existing theme -->
</theme>
php bin/magento s:up
command? after setting up the theme? Also can you please upload a screenshot of the tree structure of your newly created theme? – Usman Yousaf Nov 12 '18 at 8:14registration.php
file for your newly created theme – Usman Yousaf Nov 12 '18 at 8:18