Home › Forums › Gutenberg › Styling of ACF in Gutenberg blocks › Reply To: Styling of ACF in Gutenberg blocks
I feel like I’m having a lovely little conversation with myself, here!
I’ve extended the CSS above and it’s seems enough for what I need now.
Leaving it here in case it’s useful to someone else:
add_action('admin_head', 'hb_acf_custom_fonts');
function hb_acf_custom_fonts() {
echo ' <style>
.acf-block-body.is-edit {
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif !important;
font-size: initial !important;
}
.acf-block-body.is-edit .acf-field, .acf-block-body.is-edit p {
font-size: 13px !important;
color: #555d66 !important;
}
.acf-block-body.is-edit label {
font-size: 12px !important;
color: #191e23 !important;
}
.acf-block-body .acf-fc-layout-handle {
background: #f3f4f5 !important;
}
.acf-fc-layout-order {
background-color: #11a0d2 !important;
color: #fff !important;
}
a.acf-icon.-collapse {
background-color: transparent !important;
}
</style>';
}
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.