Question

How can I lay out blocks or paragraphs using Bootstrap's grid system? I found this seven-year-old answer and am hoping things have evolved since then, and if so would like to know how.

My best stab at cobbling together something at this point is to use Paragraphs for the content and use the Block Class module to assign the desired Bootstrap class to each paragraph type. Is there a more obvious and cleaner solution to the problem in Drupal 8?

Was it helpful?

Solution

The Paragraphs Grid module provides this functionality.

With Paragraphs Grid, you can display multiple paragraph entities in a grid. Supports Out-Of-The-Box Bootstrap 3.0 and 4.0 and CSS grid from MDC (Material Design).

enter image description here


enter image description here

OTHER TIPS

paragraphs are generated under the block system if you create under content type, and for the bootstrap to happens you have to add in your css skills into it and as for ready solutions, you can use https://www.drupal.org/project/ds and https://www.drupal.org/project/bootstrap_layouts

this should be your good starting point :)

Licensed under: CC-BY-SA with attribution
Not affiliated with drupal.stackexchange
scroll top