Archived topic
Is "Additional CSS" only available in the frontend?
7 replies · Started by Florian on February 16, 2019
Is CSS added via "Additional CSS" in the customizer only visible to users or also in my admin area? I ask this because I want to remove some buttons from the tinyMCE via CSS.
Hi there,
Additional CSS is added by WordPress itself and only available in the customizer:
https://docs.generatepress.com/article/adding-css/#additional-css
Thank you.
Do you know if the CSS only applies in the frontend?
Hi there,
Yes, it only applies to the frontend.
Ok thanks. I want to use it to remove some buttons from the text editor which according to the plugin developer can't be removed directly.
You can add CSS to the admin with a function:
add_action( 'admin_head', function() {
?>
<style>
/* your CSS here */
</style>
<?php
} );
Adding PHP: https://docs.generatepress.com/article/adding-php/
Thank you but I only want it to be active in the frontend so everything is fine! I didn't make that very clear.
Ah, gotcha. No problem! :)