code in Custom CSS for admin dashboard not applying
-
Code in Custom CSS for admin dashboard not applying.
// Add custom CSS to Admin
add_action('admin_head', 'my_custom_fonts');
function my_custom_fonts() {
echo '<style>
.search-box input[name="s"] {
width:300px;
}
</style>';
}
Hello,
This is not a CSS code.
Please provide more details on the purpose.
You can change the font by means of the Advanced typography option, which allows you to choose the item from a drop-down or insert your custom CSS class. Please navigate to the Theme Settings > Typography > Advanced Typography.
Here is the documentation providing more detailed instructions: https://xtemos.com/docs/woodmart/advanced-typography-settings/
Best Regards
This code above is css code example added in the functions. This code is the one I put in CCustom CSS for admin dashboard. Does not work.
.search-box input[name="s"] {
width:300px;
.search-box input[name="s"] {
width:300px;
}
Hello,
Did you try Advanced typography?
You do not need customization.
Best Regards
Hello,
Please move the code from functions.php to the Theme Settings > Custom CSS.
If you have any questions please feel free to contact us.
Best Regards
I di but it is not working in admin css reporting bug.
Hello,
Please insert the site admin access into the Private content below the message area. We will take a closer look at the case.
Best Regards
example attached
Attachments:
You must be
logged in to view attached files.
Hello,
We have inserted the code and it works: https://monosnap.com/file/L45T7FFzAViiCg1X9TLX9IsrMoQ4vi and
https://monosnap.com/file/yyr6rHiplpi4QNzo92WkgaaQ93VaPI
Please check once more. Please note, the custom CSS works on the fren-end and it is not applied to admin area.
Best Regards