I am upgrading Font Awesome 4 to version 5 which introduces both integrity and crossorigin attributes to the <link rel=”stylesheet”> markup. Currently, I am using: wp_register_style(‘FontAwesome’, ‘https://example.com/font-awesome.min.css’, array(), null, ‘all’ ); wp_enqueue_style(‘FontAwesome’); Which outputs as: <link rel=”stylesheet” id=”FontAwesome-css” href=”https://example.com/font-awesome.min.css” type=”text/css” media=”all” /> With Font Awesome 5 it introduces two new attributes and values (integrity and crossorigin) e.g: <link rel=”stylesheet” href=”https://use.fontawesome.com/releases/v5.5.0/css/all.css” integrity=”sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU” crossorigin=”anonymous”> So I need to find out how I can add both the integrity and crossorigin to wp_register_style, I have tried but my attempts to use wp_style_add_data have failed, it would seem that this method only supports conditional, rtl and suffix, alt and title.
- Natural materials add chic value to Vietnamese designer’s collection
- How To Download Free Fonts & Manage Them In Windows
- Bengali Style Mango Chutney
- On His B'Day, It's High Time Arjun Kapoor Should Be Taken Seriously As A Style Icon
- Parineeti Chopra's New Hair Colour And Street-Style Look Was Totally Stare-Worthy
- Madhuri Dixit’s throwback picture wows fans. Here are the best ways to style an oversized jacket. Get inspired
- Railways to finalise its plan for Integrated Ticketing System soon
- 'I am a huge bargain hunter': Woman, 25, behind incredible 'Hamptons-style' home in Perth reveals her top DIY secrets - and why paint can make anything look expensive
- ’21 Bridges’ DP Seeks New York-Style ‘Street’ Cred in Philadelphia
- Who is on The Graham Norton Show tonight? Guests include Harry Styles and Kevin Hart
How to add crossorigin and integrity to wp_register_style? (Font Awesome 5) have 294 words, post on wordpress.stackexchange.com at November 20, 2018. This is cached page on Wordpress. If you want remove this page, please contact us.