import sys
with open('tmp_home_fixed.html', 'r', encoding='utf-8') as f:
content = f.read()
# Fix mobile logo size
content = content.replace(
".kmc-new-logo { font-size: 24px; }",
".kmc-new-logo { font-size: 18px; }"
)
content = content.replace(
"top: 0;",
"top: var(--wp-admin--admin-bar--height, 0px);"
)
with open('tmp_home_fixed2.html', 'w', encoding='utf-8') as f:
f.write(content)