Hi every one.
i use umbraco 8 the newest version.
I have made a page showing 3 different topics, each with their own icon. I would like to be able to replace the icon if necessary.
I have made the document type with a text string where I can insert the fontawesome icon code <i class="fas fa-desktop"></i>, but when I have to show it in front then nothing comes.
What do i do wrong
Further to Amir's good suggestion, have you checked the font awesome font is loading correctly in the page, ie you are calling the CDN, or your local CSS references are correct ?
I have try to hardcode it in and that works fine. but when I try the other way it doesn't work.
I dont have Any problem in umbraco 7 but in umbraco 8 i dont work 😃
So my foreach loop look like this now.
I also had to make a variable myself so I got hold of the other document types var selection4 = Model.FirstChild<MlpWebServices>().Children<Ydelse>();
Why cant i output fontawesome icon
Hi every one. i use umbraco 8 the newest version. I have made a page showing 3 different topics, each with their own icon. I would like to be able to replace the icon if necessary.
I have made the document type with a text string where I can insert the fontawesome icon code
<i class="fas fa-desktop"></i>
, but when I have to show it in front then nothing comes. What do i do wrongHeres is my code
What's actually being rendered on the front end with that code?
Hi Mikkel
Further to Amir's good suggestion, have you checked the font awesome font is loading correctly in the page, ie you are calling the CDN, or your local CSS references are correct ?
Cheers
Nigel
Could it be your closing
;
afterToString()
?Since you are outputting, I would assume your class is looking like this:
class=“fa fa-desktop;”
Try removing the closing
;
I have try to hardcode it in and that works fine. but when I try the other way it doesn't work. I dont have Any problem in umbraco 7 but in umbraco 8 i dont work 😃
I have solved y problem. in the foreach loop i was using
@Model.Value("fontawesomeIkon").ToString();
I had to useSo my foreach loop look like this now. I also had to make a variable myself so I got hold of the other document types
var selection4 = Model.FirstChild<MlpWebServices>().Children<Ydelse>();
is working on a reply...