-
AuthorPosts
-
July 6, 2014 at 7:38 pm #287760
Is there any way to control the default separator margin or padding on an individual basis?
I can control how it is used in every case with css, but would love to know how to control the spacing of each separator individually.
Because the default separator adds a lot of space on the top and bottom of the line automatically.
thx.
July 7, 2014 at 5:40 am #287837Hi fgrippe!
Thank you for using the theme!
You can add a unique selector on any avia elements including the horizontal rule. 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 horizontal rule, add a custom css selector. For example, we’ll use “awesome-hr”. Add this on Quick CSS or custom.css to change the margin and height of that specific hr element:
div.hr.awesome-hr { margin: 10px 0; height: 10px; line-height: 10px; }Regards,
IsmaelJuly 7, 2014 at 10:26 pm #288220Thx Ismael.
Would it be best to do this with a child theme so when the theme updated it wouldn’t be overwritten?
July 8, 2014 at 1:29 pm #288488Hi!
Yes, it’s best that you do this using a child theme. Add the code on the child theme’s function.php. Actually, just look for this code:
/** * Turn on Custom CSS Class field for all Avia Layout Builder elements * @link http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/ */ //add_theme_support('avia_template_builder_custom_css');Replace it with:
/** * Turn on Custom CSS Class field for all Avia Layout Builder elements * @link http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/ */ add_theme_support('avia_template_builder_custom_css');Cheers!
IsmaelJuly 11, 2014 at 10:20 pm #290281This reply has been marked as private.July 12, 2014 at 2:45 pm #290468Hey!
Please try and let us know so we can mark this thread as resolved or assist you further
Cheers!
YigitJuly 12, 2014 at 3:39 pm #290508This reply has been marked as private. -
AuthorPosts
- The topic ‘Separator / Whitespace controls’ is closed to new replies.
