Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1146126

    Hi,
    In Firefox there’s no problem at all but the Font Awesome icon are not showing up in Chrome (you’ll see squares).

    This is what I have so far:
    1. Added in functions.php:

    function custom_script_name(){
    ?>
    <script src="https://kit.fontawesome.com/b27ee40481.js" crossorigin="anonymous"></script>
    <?php
    }
    add_action('wp_head', 'custom_script_name');

    2. Added in htaccess:

    <FilesMatch ".(ttf|otf|woff)$">
    <IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin "*"
    </IfModule>
    </FilesMatch> 

    3. Use this CSS:

    .textblock_vervolg ul li::before {
        content: "\f054";
    	font-family: "Font Awesome 5 Free";
    	color:#f3a200;
    	font-size:18px;
    	padding: 0 10px 0 0;
    }

    No caching enabled..
    Please see screenshot here.

    Any ideas on how to fix this?

    Thanks in advance!

    regards,
    Steven

    #1146358

    Hey steviger,

    I have tested fontawesome using the method you used and define the css however it doesn’t work and just show those squares, this is even without enfold.
    It will only work if you use their format for example:

    <i class="fas fa-thumbs-up fa-5x"></i>

    I would suggest using this method:
    https://fontawesome.com/how-to-use/on-the-web/setup/hosting-font-awesome-yourself/#using-web-fonts

    Best regards,
    Nikko

    #1146878

    Hi Nikko,

    Thanks. I guess back to the ol’ list-style-image: url ;)

    Cheers, Steven

    #1147125

    Hi Steven,

    Thanks for the feedback. Please let us know if you should need any further help on the topic.

    Best regards,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.