Do you want to enqueue bootstrap framework in WordPress?
There is answer that solves this issue
The methods that add bootstrap provide two options
In short, check this step by step procedure to include bootstrap in wordpress
The wp_enqueue_styles can output the stylesheet with custom attributes.
However, the arguements of wp_enqueue_styles cannot add the attributes to a link tag
So, you should use WP_Styles’s method add_data to put attribute to style tag
Therefore, this post shows how add_data adds attribute to a wp_enqueue_styles
But also, you will add attribute to a stylesheet using style_loader_tag hook
Let’s get started now