i got issue for updating new logo of twitter with the X new one ,
so i updated the font awesome package , but i wanna make a php function that can find the class of old icon " fa fa-twitter " to change with the new class of X "fa-brands fa-x-twitter"
2
Answers
I suggest using jQuery or js to do that.
For jQuery you can do something like:
For js you need to select all your instances (querySelectorAll or getElementsByClassName) then loop through them and use classList.add and classList.remove to manipulate the classes.
just add this line to end of your fontawsome CSS file to show X logo as twitter old logo :