Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Adding Spotify to Social Icons

  • #495
    Avatar photo[anonymous]

    I would like to add a Spotify icon to my footer on my <strong data-v-b79b84ac=”” data-v-b539cd42=””>Simple (v.2.0.3.0) theme. How do I go about this? Can I manually add it to the theme’s source code? I want it to have the same style properties in the css as the other icons – seeing as I have a music blog it would be really nice to be able to link people to my Spotify account. Thanks!

    #525
    Avatar photoBob

    Hi indieamy,

    All you have to do is edit the footer.hbs file (Documents ▸ ⁨Publii⁩ ▸ ⁨sites⁩ ▸ ⁨YOUR_SITE ▸ ⁨input⁩ ▸ ⁨themes⁩ ▸ ⁨simple⁩ ▸ ⁨partials⁩) by adding the following code:

    <a href=”URL to Spotify” aria-label=”Spotify”>
    your icon here
    </a>

    To preserve the custom code changed from being overwritten the next time your theme is updated, please make sure you have created override files, which are essentially copies of the existing theme files and are stored separately → https://getpublii.com/dev/theme-overrides/

    #585
    Avatar photo[anonymous]

    Where in the code do I add it? Is there a particular place or line? When I try to add Spotify it can’t find the image anywhere and I would assume the styling isn’t the same as the other icons in the theme. How do I fix this? And how do I make the links point to a new tab instead of opening in the same tab? Thanks so much!

    #606
    Avatar photo[anonymous]

    Any update around this?

    #6879
    Avatar photo[anonymous]

    I know this is an older thread, but I was looking for a solution to this as well. In case someone else stumbles upon this and has the same question, this thread might be helpful: https://forum.getpublii.com/topic/telegram-styled-share-button/