Jump to content

Archived

This topic is now archived and is closed to further replies.

jane

Adding font awesome code to icallout breaks the site

Recommended Posts

jane

Hi,

 

I tried adding the following to the callout text field:

 

<i class="icon-twitter"></i> Join the conversation

 

Add after saving it broke my site; luckily I was able to delete it and everything went back to normal. I also tried adding a right pointing chevron to the button in button and that also broke the site.

 

It seems rather obvious but is icallout unable to handle font awesome code? Or perhaps it has to be added in a different way?

Share this post


Link to post
Share on other sites
Simon

where are you putting that html?

Share this post


Link to post
Share on other sites
jane

Simon_P I added it to the field called "callout-text"

Share this post


Link to post
Share on other sites
Simon

try using single quotes

Share this post


Link to post
Share on other sites
jane

....so <i class='icon-twitter'></i> ?

Share this post


Link to post
Share on other sites
Simon

<i class='icon icon-twitter'></i>

Share this post


Link to post
Share on other sites
jane

Remarkable what a different a quote can make - that worked; thank you for the quick replies Simon_P!

 

In the document http://docs.pagelines.com/tutorials/font-awesome they use the double quotes throughout - is this incorrect or is the code you provided unique to icallout?

Share this post


Link to post
Share on other sites
Simon

It normally doesnt matter, but you are adding HTML into a field that is normally just text.

Share this post


Link to post
Share on other sites
Danny

Thanks for informing us the issue is now resolved.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

×