Sign in

Adding Spotify to Social Icons

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #495
    indieamy

    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
    BobBob
    Support

    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/

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

    #585
    indieamy

    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
    indieamy

    Any update around this?

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.