SVG Icons
SVG Sprite is a technique used to improve the performance of web pages by combining multiple SVG images into a single file. This file is then referenced to display different icons or images from within the sprite.
Change an icon
For example you want to change "facebook" icon.
- Open the file
/themes/alysum/assets/img/lib.svg - find
facebookicon, it looks like this:
<symbol id="facebook" viewBox="0 0 288.861 288.861">
<path d="M167.172,288.861h-62.16V159.347H70.769v-59.48h.....">
</symbol>- Find a new icon from a source like: flaticon.com
- Download the icon and open the SVG file in any text editor.
- Copy the content inside the
<svg>...</svg>tags - Paste the copied code into the
lib.svgfile inside the corresponding<symbol>tag, e.g.:
<symbol id="facebook" viewBox="0 0 288.861 288.861">...</symbol> - Copy SVG dimensions
<svg viewBox="0 0 27.965 27.965"> - Update the viewBox dimensions:
<symbol id="facebook" viewBox="0 0 27.965 27.965">
Now you can use the icon code anywhere in the theme, like this
{include file='components/svg-icon.tpl' id='facebook'}Icons List
account
add
address
amexpress
arrowdown
arrowleft
arrowright
avatar
back
bell
bottom-arrow-thin
burger
button-cart
cart
comment
compare
cookie
cross-thin
cross
currencies
currency
delivery
discover
done
email
error
eye
facebook-solid
facebook
favorites
fax
file
file2
file3
filter
gift
globe
grid
grid2
grid3
grid4
grid5
grid6
headphones
info
information
instagram
items
language
left-arrow-thin
left-arrow
like
like2
linkedin
list
loading-2
loading
location
lock
lock2
login
love
maestro
magic
mastercard
menu
menu2
messenger
mic-off
mic
myaccount
password
paypal
pencil
phone
pinterest
pk_compare
pk-flag2
pk-star
pknav
reddit
return
right-arrow-thin
right-arrow
rocket
rss
save
search
shuffle
skrill
star
stripe
success
support
telegram
top-arrow-thin
tumblr
twitter
updown
vimeo
visa
voucher
warning
whatsapp
wishlist
youtube