• Resolved MattStringer

    (@mattstringer)


    I’ve created a child theme of bHost and I can’t figure out how to center the entire site. I’ve tried adjusting some things in the style.css file but haven’t had any luck. Can someone help? I’ve tried

    #page {
    width: 100%;
    margin: auto;
    }

    but it doesn’t appear to be centering under the header.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hey Matt !

    Can you provide link to your website? That will make the solution I help you with precise 🙂

    Cheers !

    Thread Starter MattStringer

    (@mattstringer)

    Sorry about that. I’ve still got a lot to figure out but here’s the link to the site http://03ce281.netsolhost.com/wordpress1/services/

    Hey Matt !

    Hope you are doing well 🙂

    Well the problem is the solution may need some modifications inside the theme files, so you may want to check the PHP files and look for

    <div id="primary" class="content-area col-sm-8">

    Then change it to :
    <div id="primary" class="content-area col-sm-8 col-sm-offset-2">

    That would center the content and for the content title look for :

    <header class="entry-header">

    and make it

    <header class="entry-header text-center">

    and the result will be :

    View post on imgur.com

    and

    View post on imgur.com

    Cheers !

    Thread Starter MattStringer

    (@mattstringer)

    Is there a way to do it without adjusting the parent theme’s PHP files?

    You would need to create a child theme for these changes.

    Thread Starter MattStringer

    (@mattstringer)

    I’ve created a child theme but the only files available are functions.php, style.css and rtl.css

    I have found the width problem on different media queries on your site

    For example disabling following width makes it center and full width as well which actully looks nice and responsive

    @media (min-width: 768px)
    .col-sm-8 {
        /* width: 66.66666667%; */
    }
Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Center the site’ is closed to new replies.