Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm trying to theme the social-share class and I'd like to remove the
suffix for designing purposes.
Can this be done without touching social_share.theme.inc (line 180)?
Comments
Comment #2
atiba CreditAttribution: atiba commentedComment #3
blacksnipeHi Atiba,
I'll look into an easier way to hook into the
theme
-function of the links, but for now I'd suggest copying the functiontheme_social_share_link()
in your theme functions and remove (or change) the attribute in line 180.Thanks for pointing this one out.
Comment #4
atiba CreditAttribution: atiba commentedOk, thank you. I'll do that for now.
Comment #6
blacksnipeI've managed to throw most of the code in a preprocess_hook in order to separate the logic behind the links and the settings for the output.
Now you can just use something like this for fixing the suffix:
Pretty simple, right? ;-)
Comment #7
atiba CreditAttribution: atiba commentedHah thanks! Much easier! You're my hero of today sir. ;D