I'd like to embed some Font Awesome social media icons into a QGIS 3.16 layout, using the "HTML Frame" element ("Add HTML" tool).

How would I go about either:

  1. Embedding web references to the icons in the CSS portion of the element, or
  2. Adding a reference to a locally downloaded icon pack?

1 Answer 1

  1. Just add the CDN to the stylesheet.
  2. Use an image tag and set the src to the svg
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" />
    <!-- via CDN -->
    <i class="fa-brands fa-github"></i>
    <!-- via local file -->
    <img width=30 height=30 src="sass.svg"/>

enter image description here

  • Worked perfect, thank you! Commented Apr 10, 2022 at 22:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.