-
AuthorPosts
-
May 8, 2015 at 9:17 am #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!May 8, 2015 at 9:00 pm #441771Hi 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,
ElliottMay 9, 2015 at 10:49 am #441928Hi 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?
May 12, 2015 at 8:16 am #442834Hey!
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!
IsmaelMay 12, 2015 at 8:57 am #442849Hi 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!
May 13, 2015 at 4:36 am #443505Hi!
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,
IsmaelMay 13, 2015 at 9:08 am #443640May 13, 2015 at 9:28 am #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.
May 13, 2015 at 3:42 pm #443773Hi!
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!
YigitMay 29, 2015 at 2:50 pm #451608Thanks Yigit – it works rudimentary:
The headline “Avia Layout Architect” and the Templates Button is still visible. How can I make this elements invisible too?May 31, 2015 at 7:28 am #452189Hi!
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,
IsmaelMay 31, 2015 at 8:47 am #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.
May 31, 2015 at 8:54 am #452210@Ismael:
Your function disable the whole editor. That´s not what I want – see my Screenshot above.June 2, 2015 at 11:31 pm #453418Hi!
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,
JosueJune 3, 2015 at 2:52 pm #453795… this will give me an parse error:
Parse error: syntax error, unexpected T_FUNCTIONJune 3, 2015 at 2:56 pm #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');
-
AuthorPosts
- The topic ‘How to remove elements in Avia layout builder?’ is closed to new replies.