- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2018
07:13 AM
12-20-2018
07:13 AM
text between setting-container and customer-container
Hello,
does any body knows how to add text where marked blue circle and red tekstas ,,, in this picture:
Labels:
5 REPLIES 5
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2018
07:20 AM
12-20-2018
07:20 AM
Re: text between setting-container and customer-container
In your theme folder, go to default.xnl, add the below tags,
<referenceBlock name="header.links"> <block class="Namespace\customModule\Block\Link" name="add-new-header-link"> <arguments> <argument name="label" xsi:type="string" translate="true">New Link</argument> <argument name="path" xsi:type="string" translate="true">new-link</argument> </arguments> </block> </referenceBlock>
flush the cache and check
Thanks!!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2018
09:25 PM
12-20-2018
09:25 PM
Re: text between setting-container and customer-container
You need to create static block, called static block via XMLfile.
You need to create a default.xml file to call every page in a site.
<referenceContainer name="header.panel"> <block class="Magento\Cms\Block\Block" name="header-text" before="top.links"> <arguments> <argument name="block_id" xsi:type="string">header-text</argument> </arguments> </block> </referenceContainer>
Create Static Block header-text and add your content inside this CMS block.
If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial
Magento 2 Blogs/Tutorial
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-24-2018
01:21 AM
12-24-2018
01:21 AM
Re: text between setting-container and customer-container
this file should be in app/design/frontend/vendor/theme?
created block with header-text identifier puted there sample text, without any html, flushed magento chache, but nothing shows at frontend...
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-24-2018
01:53 AM
12-24-2018
01:53 AM
Re: text between setting-container and customer-container
Your file path would be,
app/design/frontend/vendor/theme/Magento_Theme/layout/default.xml
If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial
Magento 2 Blogs/Tutorial
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2018
12:53 AM
12-27-2018
12:53 AM
Re: text between setting-container and customer-container
Did this, but didint show any text...