I am trying to add a button called "social media" to be beside the Storeview switcher. I tried to follow the answer in: Magento 2 - Add a Custom Button to header.phtml
So I created a CMS block on the backend called 'social media' with id 'social_media'.
I also add the following to the:
<referenceBlock name="header.links"> <block class="Magento\Cms\Block\Block" name="social.media" before="-"> <arguments> <argument name="block_id" xsi:type="string">social_media</argument> </arguments> </block> </referenceBlock>
However, it didn't work.
So my question: what is the right way to add such a button to the header links in magento 2.3.5 ?