Skip to content

Commit

Permalink
dealing with fontawesome
Browse files Browse the repository at this point in the history
  • Loading branch information
Ariel Jolo committed Feb 18, 2025
1 parent f674c62 commit 8add8eb
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions themes/osi/inc/block-patterns.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ function osi_register_why_ai_definition_pattern() {
<!-- single why -->
<div class="rts-single-service-solar-energy">
<div class="icon">
hola
<i class="fa-solid fa-building-columns" style="font-size:60px;"></i>
</div>
<h3 class="h3titles">Informing Regulators</h3>
<p class="disc">Government regulations have begun in Europe, the United States, and elsewhere. Communities need a common understanding to educate policy makers.</p>
Expand Down Expand Up @@ -1126,4 +1126,18 @@ function osi_register_navbar_pattern() {
]
);
}
add_action('init', 'osi_register_navbar_pattern');
add_action('init', 'osi_register_navbar_pattern');


function allow_font_awesome_icons($tags) {
$tags['i'] = array(
'class' => true,
'style' => true
);
$tags['span'] = array(
'class' => true,
'style' => true
);
return $tags;
}
add_filter('wp_kses_allowed_html', 'allow_font_awesome_icons', 10, 2);

0 comments on commit 8add8eb

Please sign in to comment.