I would like to add a Spotify icon to my footer on my <strong data-v-b79b84ac=”” data-v-b539cd42=””>Simple (v.220.127.116.11) 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!
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
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!
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!