• Paul

    (@paulcass82)


    I’m trying to add a Font Awesome icon to the cookie info bar by adding the following HTML to the ‘Message’ section in the settings.

    <i class=”fa fa-exclamation-triangle”></i>

    However the class attribute keeps being stripped out so that only the <i></i> tags are left. Is there any way of stopping this from being stripped out?

    Thanks.

    https://wordpress.org/plugins/cookie-law-info/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Richard

    (@richardashby)

    Hi

    I’ll need to add a filter hook into the allowed_html function. You would then hook into that within your child theme’s functions.php. I won’t have time to do that in the next week as I’m away but if you wanted it working urgently then you can look at that allowed_html function within the plugin code base.

    Out of interest are you a developer / if not would a filter hook solution be something you would be comfortable using (assuming instructions provided)? I am looking at re-architecting the plugin and my preference is to add in a few hooks here and there, rather than more options in the dashboard.

    Hope that helps!

    Thread Starter Paul

    (@paulcass82)

    Hi Richard thanks for the prompt reply. I’m not desperate for this so don’t worry it was just something I’d like to use but I can wait.

    No I’m not a developer as such but I’m comfortable with adding code into my functions.php file so that would be fine by me.

    Thanks for your help and could you let me know on here once you’ve implemented it?

    Thanks again.

    Richard

    (@richardashby)

    Will do.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding Font Awesome’ is closed to new replies.