Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #509955

    Hello.
    How can I disable Avia Layout Builder for Woocommerce products only?
    Thanks you

    #510115

    Hi Aristidis!

    You could add some CSS to the backend like so, https://kriesi.at/support/topic/hide-button-in-the-backend-disturd-image-upload/#post-497177.

    Use this CSS instead though.

    .post-type-product #avia-builder-button { display: none !important; }
    

    Best regards,
    Elliott

    #510911

    Hello Elliott. Thank you for your response.
    I have tried it, and it works. But only if I hardcode it inside

    config-templatebuilder/avia-template-builder/assets/css/avia-builder.css

    That is, it won’t work if I use it inside Quick CSS.

    Is this normal?

    #511137

    Hi,

    Yes that is as expected, the Quick CSS will only apply to the front end.

    Regards,
    Rikard

    #512601

    OK.
    Can I at least incorporate the change into the child theme? How?

    #512675

    Hi,

    Please try the following in your child themes function.php

    function remove_builder_button() { 
    ?>
    <style>.post-type-product #avia-builder-button { display: none !important; }</style>
    <?php
    } 
    add_action( 'init', 'remove_builder_button');

    Thanks,
    Rikard

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