New content type - does not display paragraphs correctly

Created on 23 August 2023, over 1 year ago

When creating a new content type, paragraph banner and others do not display across the entire width of the page.
How can I fix it?

πŸ’¬ Support request
Status

Closed: works as designed

Version

3.1

Component

Code

Created by

πŸ‡΅πŸ‡±Poland pingwin_cracow

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @pingwin_cracow
  • Status changed to Closed: works as designed over 1 year ago
  • πŸ‡΅πŸ‡±Poland gpietrzak WrocΕ‚aw

    You have to override the behavior of droopler_theme_preprocess_page(), by adding the class "container-fluid" to $variables['main_attributes']

  • πŸ‡΅πŸ‡±Poland pingwin_cracow

    I added:

    function step_subtheme_preprocess_page(&$variables) {
    $variables['main_attributes'] ='container-fluid';
    }

    unfortunately it still doesn't work properly.
    Have I done something wrong?

  • πŸ‡΅πŸ‡±Poland gpietrzak WrocΕ‚aw

    $variables['main_attributes'] is an object of the class Attribute, so you can't assign a string to it

  • πŸ‡΅πŸ‡±Poland pingwin_cracow

    I have a new type of content: gallery
    Unfortunately, I can't define the function correctly.
    Can you tell me exactly what it should look like?
    I will be very grateful.

Production build 0.71.5 2024