I'm a seasoned PHP/WordPress dev and I want to be able to change the default row padding, but still allow for overrides while editing content. All the solutions I've seen you offer are using css "!important" declarations, which means any overrides I try to set in the VC edit screen itself are not picked up. I looked through the 'vc_row.php' file you include in your theme and see that on Lines 39 and 40 you hardcode the default top/bottom padding to 0, which ends up outputting it as an inline style. I believe if there is no value set by the user/in the shortcode attrs that are being passed, you shouldn't output any inline styles.
This could be done by editing Lines 135 & 138 of that same file to check if the string is empty and just not output anything.
I tried overriding your vc_row.php file with my own, but it's breaking other stuff and I don't want to do anymore work on this. Could you provide a solution? It seems like you just need to release a new minor version of the theme with either a Salient option that controls default row padding, or at least change the code to reflect what I suggested.
I'm a seasoned PHP/WordPress dev and I want to be able to change the default row padding, but still allow for overrides while editing content. All the solutions I've seen you offer are using css "!important" declarations, which means any overrides I try to set in the VC edit screen itself are not picked up. I looked through the 'vc_row.php' file you include in your theme and see that on Lines 39 and 40 you hardcode the default top/bottom padding to 0, which ends up outputting it as an inline style. I believe if there is no value set by the user/in the shortcode attrs that are being passed, you shouldn't output any inline styles.
This could be done by editing Lines 135 & 138 of that same file to check if the string is empty and just not output anything.
I tried overriding your vc_row.php file with my own, but it's breaking other stuff and I don't want to do anymore work on this. Could you provide a solution? It seems like you just need to release a new minor version of the theme with either a Salient option that controls default row padding, or at least change the code to reflect what I suggested.
Thanks.
Hey ,
Thanks for the details . Have pinged the Developer to add in a response here .
Best.
ThemeNectar Support Team