-
AuthorPosts
-
April 13, 2018 at 4:01 pm #941569
Hello,
when I insert an empty space in the page between Layerslider and color section it gives me only a fixed thickness and the screen options for mobile do not work.
If I enter 5px it will not accept it
I want to have a small space
Thank youApril 14, 2018 at 6:11 am #941816Hey Flavio1963,
Could you post a link to the page in question so that we can take a closer look please?
Best regards,
RikardApril 14, 2018 at 8:05 am #941854Hello,
the page is home http://www.studioeffesse.it
Thank youApril 14, 2018 at 10:04 am #941860the point is that the surrounding parent content container gets a padding-top/padding-bottom of 50px
in your case this would be the css rule :
.page-id-19 #after_layer_slider_1 .content {padding: 0!important}
but if you don’t like to look always what is the name of that given container (after-section1 etc. ) you can do this :
assign the hr element a custom-class called : nopadding and this comes
into functions.php of your child-theme:function padding_to_parent_of_hr_nopadding(){ ?> <script> (function($){ $('div.hr.nopadding').closest('.content').css({"padding": "0", "min-height": "0px" }); })(jQuery); </script> <?php } add_action('wp_footer', 'padding_to_parent_of_hr_nopadding');
from now on every hr which has the class nopadding will transfer to its nearest parent content those values
April 14, 2018 at 2:58 pm #941926Hi,
Thanks for the link, though I can only see an under construction page. Please post admin login details if we need to be logged in to be able to view your site.
Best regards,
RikardApril 15, 2018 at 7:47 am #942150Hello,
I used the rule proposed by Guenni007 and everything seems to work.
But I do not use the child theme.
I need to do the same thing before the footer.Thank you
April 15, 2018 at 10:49 pm #942322Hi,
Please do add a child theme.
You would need to use the same rule, but target a different section. That could make it work on the other section that you do need.Thank you
Best regards,
BasilisApril 16, 2018 at 7:40 am #942449Hello,
unfortunately I’m not a programmer and I do not know how to do the child theme.
I read something about it but I do not want to compromise the site.
That’s okay too.Thank you
April 17, 2018 at 5:14 am #942910Hi,
Great, glad you got it working. We do recommend that you use a child theme, otherwise you will lose the part of the code placed in functions.php, you can download a basic child theme here if you like: https://kriesi.at/documentation/enfold/downloads/
Best regards,
Rikard -
AuthorPosts
- You must be logged in to reply to this topic.