HEX
Server: Apache
System: Linux vps-15179318.kohladvogados.com.br 5.14.0-611.49.2.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Apr 30 09:05:08 EDT 2026 x86_64
User: kohlsol (1004)
PHP: 8.3.32
Disabled: NONE
Upload Files
File: //usr/tmp/fix_icon_font.py
path = "/home/kohlsol/public_html/wp-content/themes/brooklyn-child/functions.php"
with open(path) as f:
    fn = f.read()

old = """\t\th1, h2, h3, h4, h5, h6,
\t\th1 *, h2 *, h3 *, h4 *, h5 *, h6 * {
\t\t\tfont-family: var(--kohl-fonte-titulo) !important;
\t\t\tcolor: var(--kohl-marinho) !important;
\t\t}"""

new = """\t\th1, h2, h3, h4, h5, h6,
\t\th1 *, h2 *, h3 *, h4 *, h5 *, h6 * {
\t\t\tfont-family: var(--kohl-fonte-titulo) !important;
\t\t\tcolor: var(--kohl-marinho) !important;
\t\t}
\t\t/* Excecao ao "body *": icones usam a fonte proprio Font Awesome, nao
\t\t   Open Sans -- sem isso o glifo nao aparece (so um espaco vazio). */
\t\t.fa, .fas, .far, .fab, .fa-solid, .fa-regular, .fa-brands,
\t\t[class*=" fa-"], [class^="fa-"] {
\t\t\tfont-family: "Font Awesome 6 Free" !important;
\t\t\tfont-weight: 900 !important;
\t\t}
\t\t.fa-brands, .fab {
\t\t\tfont-family: "Font Awesome 6 Brands" !important;
\t\t\tfont-weight: 400 !important;
\t\t}"""

assert fn.count(old) == 1, "padrao nao encontrado"
fn = fn.replace(old, new)
with open(path, "w") as f:
    f.write(fn)
print("functions.php: excecao de fonte para icones adicionada")