Site logo

Archived topic

Putting social media icons in header

13 replies · Started by HEATHER on February 8, 2020

Viewing posts 1–14 of 14

Hi can anybody walk me through putting my social media icons in the top right section of my header? Thank you.

This doesn't work if you have "Use Navigation as Header" checked. Is there an alternative method that would display it inline on desktop and in the mobile menu under the normal menu? Or a way to add them to the normal menu?

Hi there,

for it to appear as part of the normal mobile dropdown menu then the icons would have to be added as items in your menu.
The Navigation Label in a menu item does support HTML.

I tried adding a Custom Label to the menu with the HTML from source code from the Lightweight Social Icons plugin copied into the Navigation label. Nothing is showing.

Can you share a link to the site ?

Not able to, sorry.

Thanks. I already looked at these, but both involve adding Font Awesome, which adds weight to the page. Lightweight Social Icons adds a font which Google Pagespeed dings me for on speed. I really just want to add some simple, small icons with links, which I can do as a widget but can't figure out how to add to the menu. I guess this is a WP issue and a not a GeneratePress issue, though, so I'll look somewhere else for a solution.

I also tried to do this with Generate Blocks, but couldn't get it to show up inside the menu rather than in the menu bar.

I tried adding a Custom Label to the menu with the HTML from source code from the Lightweight Social Icons plugin copied into the Navigation label. Nothing is showing.

SVG code didn't work in navigation label field, but it seems working now, I just tested on my testing site.

Can you share the source code you entered?

Okay wait. While I was responding to Ying, I realized a mistake I made and fixed that. So now I've got them showing in the menu now using the code from Lightweight Social. The only problem is that I'd love them to be in a horizontal row in the mobile menu like they are on desktop. Can that be done with CSS without changing the desktop display?

Screenshot of mobile menu with social icons stacking line by line

Oh wow - perfect! Thanks for sticking with me on this.

Awesome - glad to hear that worked :)

This archived topic is closed to new replies.