Tagged: button
-
AuthorPosts
-
August 12, 2014 at 11:17 pm #303464
Hi –
We want to include a button on a color background, but we don’t want the button to have a color. No background. Just a white border. What’s the CSS with a section ID? Can’t get it to stick.August 13, 2014 at 5:49 am #303642Hey blankonblank!
Thank you for using Enfold.
Do you mind if we take a look at the actual page with the button? We can remove the background of the button via CSS.
Regards,
IsmaelAugust 13, 2014 at 5:14 pm #303937This reply has been marked as private.August 14, 2014 at 5:47 am #304183Hi!
Thank you for the info.
Please use this on Quick CSS or custom.css:
.avia-button-wrap.avia-button-center.avia-builder-el-7.el_after_av_heading.avia-builder-el-last a.avia-button.avia-icon_select-no.avia-color-custom.avia-size-large.avia-position-center { background: transparent !important; border: 1px solid white !important; box-shadow: inset 0 0 10px white; }
Another way to do that is to apply a unique css selector for the button or any advance layout builder elements. Edit functions.php, find this code:
if(isset($avia_config['use_child_theme_functions_only'])) return;
Below, add this code:
add_theme_support('avia_template_builder_custom_css');
Edit the button element then scroll below. Add a unique css selector on “Custom Css Class” field. For example, add “transparent-button”.
You can add something like this on your custom.css or Quick CSS:
.transparent-button a.avia-button { background: transparent !important; border: 1px solid white !important; box-shadow: inset 0 0 10px white; }
Refer to this link for more info: http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/
Regards,
IsmaelAugust 14, 2014 at 4:23 pm #304444This reply has been marked as private.August 14, 2014 at 4:32 pm #304456Hey!
In that case, you should refer to second solution. It would be more stable too
Best regards,
YigitAugust 14, 2014 at 5:31 pm #304495ok. how would that look for child theme functions.php?
August 14, 2014 at 6:52 pm #304537Hey!
Simply add following code to Functions.php file in Appearance > Editor
add_theme_support('avia_template_builder_custom_css');
and follow the instructions Ismael posted here
Cheers!
YigitAugust 14, 2014 at 7:35 pm #304556This reply has been marked as private.August 14, 2014 at 7:50 pm #304561Hi!
You should see Custom CSS field now – http://kriesi.at/documentation/enfold/wp-content/uploads/sites/2/2013/12/blur.jpg
Please edit your buttons and add “transparent-button” into custom CSS field, update your page then add following custom CSS code in Quick CSS field ( inside Enfold theme options > General Styling tab ) or Custom.css file ( inside Enfold/CSS folder ).transparent-button a.avia-button { background: transparent !important; border: 1px solid white !important; box-shadow: inset 0 0 10px white; }
Code will be applied only on buttons with custom CSS class “transparent-button”.
Cheers!
YigitAugust 14, 2014 at 9:23 pm #304596This reply has been marked as private. -
AuthorPosts
- The topic ‘Button – Remove background’ is closed to new replies.