Site logo

Archived topic

JetPack Social Share on sections: align to container width

7 replies · Started by Drew on February 22, 2018

Viewing posts 1–8 of 8

HI there,

Are you able to add a class to the social share?

Currently you have:
<div class="sharedaddy sd-sharing-enabled">

Changing it to:
<div class="sharedaddy sd-sharing-enabled grid-container">

should work.

Let me know.

If I'm following you correctly, that would require modifying one of jetpack's php file, correct? If so, wouldn't that get overwritten on updates?

How is it added currently?

However JetPack has it set up. When activating that module, it adds the share function automatically. While there's an option to disable their JS and CSS, there's nothing that lets a user manually insert it via a hook or custom function.

That's not very convenient.

I would recommend asking Jetpack if they have a way to add that custom class in there.

Acknowledged and will do. If they come back with anything useful, I'll post a follow-up here so others can find the solution if they run into it.

Sounds good :)

This archived topic is closed to new replies.