Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #441450

    Same Question like here:
    https://kriesi.at/support/topic/how-to-remove-element-in-avia-layout-builder/?login_error=invalid_user
    I deleted the files as Dude says … but it is not working!

    #441771

    Hi frankeee!

    If your just wanting to remove it from the avia layout builder then you could add this in /enfold/config-templatebuilder/avia-template-builder/assets/css/avia-builder.css.

    a[href="#avia_sc_iconlist"] {
      display: none;
    }

    And then change “iconlist” to whatever elements you want to hide.

    Best regards,
    Elliott

    #441928

    Hi Elliott,
    thank´s – I like your idea, but it doesn´t work in a child theme.

    I want hide the “Avia Layout Architekt”. Usually this should be possible in the WP Option-bar. But this also doesn´t work.

    In addition I like to disable the “Avia Layout Architekt” by CSS or in a function in the Child Theme. Is this possible?

    #442834

    Hey!

    Add this in the child theme’s style.css file to hide a specific element in the builder:

    function ava_remove_video_element() {
    echo '<style type="text/css">a[href="#avia_sc_iconlist"] {display: none;}</style>';
    }
    
    add_action('admin_head', 'ava_remove_video_element');

    The code above should hide the icon list element.

    Cheers!
    Ismael

    #442849

    Hi Ismael,
    thanks for the snippet – but it´s nit working!

    For me it looks like a function . Therefore I put it in the Child´s function. With the result that I only see a white screen. I put it in the child´s Style as you said. With the result that nothing changed.

    So what should I do? Your “Avia Layout Architekt” in the WP Option-bar doesn´t work. And yours and Elliots answer doesn´t work!

    #443505

    Hi!

    Works fine on our installation. Maybe, we are not on the same page here. Please provide a screenshot of the element that you want to hide. Use imgur or dropbox for the screenshot.

    Regards,
    Ismael

    #443640

    Hi Ismael,
    here I provide a screenshot to make clear what I want to achieve:

    #443650

    … I can write some CSS like the following in avia-builder.css to hide the Layout Builder:

    .shortcode_button_wrap {
      display: none!important;
    }
    .avia-template-save-button-container, .avia-expand-button, .postbox .hndle {
      display: none;
    }

    … but it´s not really nice an it´s not working in the child theme.

    #443773

    Hi!

    Please change Ismael’s code to following one

    function ava_remove_video_element() {
    echo '<style type="text/css">#avia_builder .inside .shortcode_button_wrap { display: none; }</style>';
    }
    
    add_action('admin_head', 'ava_remove_video_element');

    Cheers!
    Yigit

    #451608

    Thanks Yigit – it works rudimentary:
    The headline “Avia Layout Architect” and the Templates Button is still visible. How can I make this elements invisible too?

    #452189

    Hi!

    Try this:

    function ava_remove_video_element() {
    echo '<style type="text/css">#avia_builder { display: none !important; }</style>';
    }
    
    add_action('admin_head', 'ava_remove_video_element');

    Regards,
    Ismael

    #452209

    … yes, I mentioned that in my second thread:
    “I want hide the “Avia Layout Architekt”. Usually this should be possible in the WP Screen Options. But this also doesn´t work.”

    So it´s not possible to disabling the “Avia Layout Builder” in the Screen Options.

    #452210

    @Ismael:
    Your function disable the whole editor. That´s not what I want – see my Screenshot above.

    #453418

    Hi!

    Use this code instead:

    add_action('admin_head-post-new.php', function() {
    	?>
    	<style>
    
    	#avia_builder .handlediv,
    	#avia_builder .hndle.ui-sortable-handle,
    	#avia_builder a.avia-hotkey-info,
    	#avia_builder a.avia-expand-button.avia-attach-expand,
    	#avia_builder .avia-template-save-button-container,
    	#avia_builder .inside .shortcode_button_wrap { 
    	    display: none; 
    	}
    
    	#poststuff .inside, #avia_builder .avia_meta_box {
    	    margin: 0;
    	}
    
    	#avia_builder .avia-controll-bar {
    	    top: 0;
    	}
    	</style>
    	<?php
    });

    Best regards,
    Josue

    #453795

    … this will give me an parse error:
    Parse error: syntax error, unexpected T_FUNCTION

    #453806

    … but your Styles are working! So the following function will work for me:

    function ava_remove_video_element() {
    echo '<style>
    	#avia_builder .handlediv,
    	#avia_builder .hndle.ui-sortable-handle,
    	#avia_builder a.avia-hotkey-info,
    	#avia_builder a.avia-expand-button.avia-attach-expand,
    	#avia_builder .avia-template-save-button-container,
    	#avia_builder .inside .shortcode_button_wrap { 
    	    display: none; 
    	}
    
    	#poststuff .inside, #avia_builder .avia_meta_box {
    	    margin: 0;
    	}
    
    	#avia_builder .avia-controll-bar {
    	    top: 0;
    	}
    	</style>';
    }
    
    add_action('admin_head', 'ava_remove_video_element');
Viewing 16 posts - 1 through 16 (of 16 total)
  • The topic ‘How to remove elements in Avia layout builder?’ is closed to new replies.