skip to Main Content

Replacing font-awesome icon with jQuery

I am want to replace a icon (Font Awesome) with an other. I try this : const toolbar1 = document.querySelector("#toolbar1"); const iconToReplace = toolbar1.querySelector(".fa fa-arrows-alt"); iconToReplace.innerHTML = '<i class="fa-fa-compress"></i>'; <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> But it didn't work. Is there a solution? Thanks…

VIEW QUESTION

import font awesome in web component – Html

This is my header component : <header class="header"> <div class="icon-container"> <ul> <li class="list-item"><i class="fa-regular fa-bell"></i></li> <li class="list-item"><i class="fa-solid fa-gear"></i></li> <li class="list-item"><i class="fa-solid fa-arrow-right-from-bracket"></i></li> </ul> </div> </header> This code can display the icons in fontawesome when I import the font-awesome before…

VIEW QUESTION

WordPress migration loses icons

I have a wordpress website to migrate to another server. At the moment I am testing the result of the migration that is done using All In One Migration plugin. You can see here the original website instead here the…

VIEW QUESTION
Back To Top
Search