We’re trying to add social Icons to our header menu and for what ever reason can’t figure it out. Is there any pre-built modules or do we need to code this ourselves?
Thanks,
Kurtis
We’re trying to add social Icons to our header menu and for what ever reason can’t figure it out. Is there any pre-built modules or do we need to code this ourselves?
Thanks,
Kurtis
There is the “follow me” module, but I am unsure if it will be what you want. Here is a KB on the subject.
@albertsg is a smart fellow who might be able to help with a coding solution, but would need more info on the menu before he could help much.
Hello @KurtisMdst, sorry for the late reply (thanks for the tag @dennisedson!), I’ve been extremely busy and didn’t have much time to check the Community…
For this issue, I believe there are multiple solutions but as a developer I can only recommend you ways to code it. There might be some module in the marketplace, maybe it’s worth checking it.
If you want to code the solution, it’s quite simple.
You can create a div element that includes several icons and each icon takes you to the desired social media platform, something like this:
<div class="hero">
<a href="https://www.facebook.com/yourCompany" class="hero-icon">
<!-- ADD HERE AN SVG WITH THE ICON OF A SOCIAL MEDIA PLATFORM -->
</a>
<a href="https://instagram.com/yourCompany" class="hero-icon">
<!-- ADD HERE AN SVG WITH THE ICON OF A SOCIAL MEDIA PLATFORM -->
</a>
<a href="https://www.linkedin.com/company/yourCompany/" class="hero-icon">
<!-- ADD HERE AN SVG WITH THE ICON OF A SOCIAL MEDIA PLATFORM -->
</a>
<a href="https://twitter.com/yourTwitterAccount" class="hero-icon">
<!-- ADD HERE AN SVG WITH THE ICON OF A SOCIAL MEDIA PLATFORM -->
</a>
</div>
But there are a lot of ways to achieve this. The previous one is just a basic structure you could have in your page.
You can place the previous code into a module and make it reusable whithin your page. CSS is up to you and your styleguides ![]()