Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author TT Themes

    (@tomastoman)

    Hi,

    to center the layout, you will need to wrap the whole content area into an extra “div” element. To do it, please open the “header.php” template and place the following code just under the opening <body> tag:

    <div id="main-container">

    Then, close this extra “div” element in “footer.php” (just before the closing </body> tag).

    After making these modifications, please use the following custom CSS to center the page:

    #main-container {position: relative; margin: 0 auto; max-width: 1150px; width: 100%;}
    #left-sidebar, .sidebar-background {right: auto !important;}

    Instead of modifying the original theme directly, I recommend you to create a child theme.

    Best regards,
    Tomas Toman

    Thread Starter Iurie Malai

    (@flegmatiq)

    Tomas, thank you!
    I will try this.

    Regards,
    Iurie

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to center the theme?’ is closed to new replies.