[Resolved] Is "Additional CSS" only available in the frontend?

Home Forums Support [Resolved] Is "Additional CSS" only available in the frontend?

Home Forums Support Is "Additional CSS" only available in the frontend?

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #812388
    Florian

    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.

    #812391
    Leo
    Staff
    Customer Support

    Hi there,

    Additional CSS is added by WordPress itself and only available in the customizer:
    https://docs.generatepress.com/article/adding-css/#additional-css

    #812552
    Florian

    Thank you.
    Do you know if the CSS only applies in the frontend?

    #812859
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Yes, it only applies to the frontend.

    #812860
    Florian

    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.

    #812879
    Tom
    Lead Developer
    Lead Developer

    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/

    #812881
    Florian

    Thank you but I only want it to be active in the frontend so everything is fine! I didn’t make that very clear.

    #812883
    Tom
    Lead Developer
    Lead Developer

    Ah, gotcha. No problem! 🙂

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.