Adding Spotify to Social Icons
- This topic has 3 replies, 2 voices, and was last updated 1 year, 4 months ago by .
- AuthorPosts
- October 15, 2019 at 11:45 pm#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!
October 17, 2019 at 5:10 am#525Bob
SupportHi 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!October 21, 2019 at 6:26 pm#585indieamy
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!
October 24, 2019 at 9:07 am#606indieamy
Any update around this?
- AuthorPosts
- You must be logged in to reply to this topic.