Deprecated: Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead. in /var/www/html/wp-includes/functions.php on line 5383

Content Width in Full-Width layout

New Front EN Support Forums Kanso Theme Support Content Width in Full-Width layout

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #3038
    rotkreis
    Participant

    Hello, I want to change the max-width of the post content and the comment box in full-width layout, for sometimes the lines are a bit too wide. I tried to change the max-width of div content or post-wrapper from 960px to, for example, 760px, but the problem is that I cannot make the post content centered. I guess this has something to do with the responsive design, but I am unfamiliar with that.

    Thank you!

    #3043
    mmsatori
    Keymaster

    Hey Rotkreis,

    have you tried this CSS?

    body .container { max-width: 760px; } 
    

    The container element should center itself automatically because it has “auto” side margins.

    Sincerely,
    Andrii / Satori Studio

    #3053
    rotkreis
    Participant

    Hi, I’ve tried something llike this, but it will also change the view of other pages. The positions of headers and logo in the front page are also changed. Is there a solution that only changes the layout of the full-width page?

    Thanks

    #3057
    mmsatori
    Keymaster

    Hey Rotkreis,

    please try this CSS then:

    .page-template-page_full-width-php .container { max-width: 760px; }
    

    Sincerely,
    Andrii / Satori Studio

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.