• Здравствуйте, на моём сайте слева от основного контента наблюдается крупный белый пробел от левой части экрана, пробелы подобного рода я смог исправить с помощью приведенного ниже кода, но если задать в нём же значение для левой части, пробел не устраняется. Перепробовал уже много где корректировать max-width, width, padding, но всё безуспешно, вероятно, я делал это не там где нужно. Как я могу сократить размер этого пробела? Он портит вообще всё

    Hello!

    @media screen and (min-width: 48em) { .site-content { padding: 15px 0px 15px 0px !important; } }

    It helps me to fix spaces on the top and bottom of the page, but you can see large white space on the left of the page, I chose 1320 width of the content-page and “wide” template, but it looks bad. How can I fix it? I didn’t found 1320 value in style.css. Also this is reason why sidebar is small.

    I’m sorry for my language mistakes.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter honorm

    (@honorm)

    I’m added 1440 => ‘1440’ width in this part of “customizer” code. Is it safe? Or this size can make troubles for website?

    $wp_customize->add_control(
    ‘bento_content_width’,
    array(
    ‘section’ => ‘bento_layout_background’,
    ‘type’ => ‘select’,
    ‘choices’ => array(
    900 => ‘900’,
    960 => ‘960’,
    1020 => ‘1020’,
    1080 => esc_html__( ‘1080 (default)’, ‘bento’ ),
    1140 => ‘1140’,
    1200 => ‘1200’,
    1260 => ‘1260’,
    1320 => ‘1320’,
    1440 => ‘1440’
    ),
    ‘label’ => esc_html__( ‘Content width’, ‘bento’ ),
    ‘description’ => esc_html__( ‘Set the width of the content container, in pixels; default is 1080.’, ‘bento’ ),
    )
    );

Viewing 1 replies (of 1 total)
  • The topic ‘White space on the left side of content’ is closed to new replies.