Introducing Font Awesome 5 and SVG icons

Hey @LKNickname, try this out:

const { iconNode } = require("discourse-common/lib/icon-library");
api.decorateWidget("header-icons:before", helper => {
  return helper.h("li", [
    helper.h(
      "a#globe-button.icon",
      {
        href: "https://www.website.com/",
        title: "Back to website"
      },
      iconNode("globe")
    )
  ]);
});
7 Likes