Hi. i think there is a need to able to add class for container that created by the layout.
Boot strap by default css is :
.container {
margin-left: auto;
margin-right: auto;
padding-left: 15px;
padding-right: 15px;
}
most of the time this need to be adjusted according to our need , most of the time we need to enter it under the css tab . this is time consuming, pls consider.
I think what I show on the screenshot is what you look for.
It's present when you edit the Rows.
This will figure as a "container ddl-remove-bs-padding" class on the front end
Hi Beda, thanks, i am aware of this. what if need more styling for the containers?
Some frameworks use different CSS classes for the main content container tag.
This filter is meant to define or override this CSS class to define a container element.
So, no, you cannot target the ID but the Class only.
But of course, with PHP you can get any value you want and populate that CSS class with whatever you get from your custom code (for example, page ID)
How to get a page ID is however not something handled in that DOC or support.
Only how to change the container class is what's supported, so basically:
add_filter('ddl-get_container_class', function( $el ){
$anything_string = 'populate with whatever you need';
return $anything_string;
});
My issue is resolved now. Thank you!