webdevsuperfast / bootstrap-for-genesis

An awesome Genesis Framework child theme using Bootstrap 4
58 stars 26 forks source link

Option to switch from fluid-container to container in the admin #19

Closed vynnus closed 5 years ago

vynnus commented 5 years ago

I'd like to suggest this option to switch the theme (from inside the admin) between a container ou fluid-container.

Or if I can do it by a snippet just let me know.

Thanks

vynnus commented 5 years ago

just made with a snippet:

add_filter( 'genesis_attr_site-container', 'themeprefix_site_container_class' ); function themeprefix_site_container_class( $attributes ) { $attributes['class'] = 'container'; return $attributes; }

webdevsuperfast commented 5 years ago

@vynnus Awesome suggestion, will certainly look into it and add the option in the future. Meanwhile, adding filter to site-container attributes works like what you did. Thanks!

webdevsuperfast commented 5 years ago

@vynnus Added customizer setting in switching between container and container-fluid as documented on Bootstrap.