Skip to content

Commit 8add8eb

Browse files
author
Ariel Jolo
committed
dealing with fontawesome
1 parent f674c62 commit 8add8eb

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

themes/osi/inc/block-patterns.php

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ function osi_register_why_ai_definition_pattern() {
265265
<!-- single why -->
266266
<div class="rts-single-service-solar-energy">
267267
<div class="icon">
268-
hola
268+
<i class="fa-solid fa-building-columns" style="font-size:60px;"></i>
269269
</div>
270270
<h3 class="h3titles">Informing Regulators</h3>
271271
<p class="disc">Government regulations have begun in Europe, the United States, and elsewhere. Communities need a common understanding to educate policy makers.</p>
@@ -1126,4 +1126,18 @@ function osi_register_navbar_pattern() {
11261126
]
11271127
);
11281128
}
1129-
add_action('init', 'osi_register_navbar_pattern');
1129+
add_action('init', 'osi_register_navbar_pattern');
1130+
1131+
1132+
function allow_font_awesome_icons($tags) {
1133+
$tags['i'] = array(
1134+
'class' => true,
1135+
'style' => true
1136+
);
1137+
$tags['span'] = array(
1138+
'class' => true,
1139+
'style' => true
1140+
);
1141+
return $tags;
1142+
}
1143+
add_filter('wp_kses_allowed_html', 'allow_font_awesome_icons', 10, 2);

0 commit comments

Comments
 (0)