Site logo

Archived topic

Social icon widget alignment

3 replies · Started by Garth Dryland on February 23, 2022

Viewing posts 1–4 of 4

I'm not sure if this is a GeneratePress issue or not but if you look at the social icons widgets here on the right you'll see the last icon drops. It doesn't matter what icon, it's always the last one. I deactivated all the plugins and caching etc too when checking but it made no difference. I did notice that if I Inspect the widget above and de-check the margin-bottom setting then they do line up but it increases the space at the bottom of the widget inspected. The social icon code seems to be okay. This started happening recently but not sure how recently. Maybe a couple of months. Any ideas?

Hi Garth,

You have this code messing with the last child of the social icons: https://share.getcloudapp.com/v1uLXpAN

Also see: https://share.getcloudapp.com/Qwu4gmQJ

To resolve this, you can check from which plugin or set of custom codes this specific code is coming from.

It would be best to find where this code is coming from but If you can’t find it, here is a code you can try adding:

li.wp-social-link.wp-social-link-youtube.wp-block-social-link:last-child {
    margin-bottom: 0.5em;
}

Hope this helps! :)

Cheers

You’re welcome Garth! Glad to be of assistance! Feel free to reach out anytime if you’ll need assistance with anything else. :)

This archived topic is closed to new replies.