-
AuthorPosts
-
February 14, 2024 at 3:08 pm #1434302
Hello,
I am trying to remove the padding of a column and its elements within a grid row for mobile view only. I tried using the following code but it only removes the padding within the grey text box, not the column itself. I need the entire column to be full screen width in the mobile view only.
Thank you@media only screen and (max-width: 767px) {
.responsive #top #wrap_all .av-flex-cells .no_margin {
padding-left: 0% !important;
padding-right: 0% !important;
}
}February 15, 2024 at 4:35 am #1434360Hey st,
Thank you for the inquiry.
You may need to adjust or reset the left position of the column element on mobile view. Please try this css code.
@media only screen and (max-width: 767px) { /* Add your Mobile Styles here */ .flex_column.av-lsi2hb8k-6aee99cc1e1fcfe1529179ad547236c0 { position: relative; left: 0; } }
The default value of the left property is 100px. After the adjustment, it should look like the following screenshot.
// https://1drv.ms/i/s!AjjTfXSRbKTvgtxXjDgZ042XkpoRAQ?e=IJmlB2
Best regards,
IsmaelFebruary 15, 2024 at 4:54 pm #1434425Unfortunately, that did not seem to work, left padding is still in effect. I tried adding it to the Additional CSS then to the Quick CSS. Also cleared cache.
February 16, 2024 at 1:23 am #1434455Hi,
Thank you for the update.
We’ve found an invalid code in the Quick CSS field and removed it. This code should be added in the functions.php file.
function ava_remove_title_attr(){ ?> <script> jQuery(window).load(function(){ jQuery('#wrap_all img.avia_image, #wrap_all .avia-gallery-thumb img, #wrap_all .avia-gallery-thumb a').removeAttr('title'); }); </script> <?php } add_action('wp_footer', 'ava_remove_title_attr');
We also edited the css a bit and temporarily disabled the Enfold > Performance > File Compression settings. You can enable this option back once you’re done editing the site. Please make sure to do a hard refresh before checking the page.
Best regards,
IsmaelFebruary 16, 2024 at 1:51 pm #1434505This worked perfectly. Thank you so much!
One last question, in that same grid. Again in mobile view, is it possible to have the the background image appear in under the bio box (the one you just helped me with)?
February 17, 2024 at 8:56 pm #1434619February 27, 2024 at 11:23 pm #1435655February 28, 2024 at 2:14 am #1435669Hi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
AuthorPosts
- The topic ‘Column padding on mobile’ is closed to new replies.