Tagged: x
-
AuthorPosts
-
June 3, 2016 at 5:23 pm #1024824
zendog22ParticipantHi, I have adding left padding 50px to the main text box on the page below as it looks better on desktop screen. But i would like to remove padding in mobile view. Is this possible please?
http://kentishandco.staging.wpengine.com/our-clients/jnj/June 4, 2016 at 1:27 am #1025341
RadModeratorHi there,
Thanks for writing in.
Instead of adding padding to the column, add a class name and control it through CSS. For example, add padding_left_50 to your column’s class input.
Then add this CSS to Admin > Appearance > Customizer > Custom > CSS
@media (min-width: 768px) { .padding_left_50 { padding-left: 50px !important; } }Make sure that your manually added padding is 0, else, this CSS will not be effective.
Thanks!
June 4, 2016 at 6:38 am #1025550
zendog22ParticipantHi, OK thanks. Quick add on to this. So say I assign the class name ‘case’, where would I put that in the code below that you suggested?
@media (min-width: 768px) {
.padding_left_50 {
padding-left: 50px !important;
}
}thanks!
June 4, 2016 at 9:15 pm #1026175
Rue NelModeratorHello There,
If you use the class name
caseinstead, you can have this code;@media (min-width: 768px) { .case { padding-left: 50px !important; } }And that your custom class name should be place in the column settings as illustrated here: http://prntscr.com/bch45x
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1024824 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
