• Resolved Cirnu

    (@cirnu)


    Hi,
    I’ve been trying to use a full-width template with CustomizR theme.

    I followed the advices given in the following thread :

    http://ww.wp.xz.cn/support/topic/create-customizr-full-width-template?replies=14

    I also got help here :
    http://ww.wp.xz.cn/support/topic/customizr-full-width-template-footer-display-problem?replies=4#post-6701426

    I’ve been using the following CSS, which is associated to my full-width template. Its purpose is to create a large blue background around the text :

    #blue-background{
      width: 100%;
      height: 100%;
      float: center;
      background: #2680BE;
      position: relative;
      padding-top: 100px;
      padding-bottom: 100px;
    }

    Here is an example of a page with this CSS :

    http://www.cirnu.com/brouillon-agence-web

    It’s simply a DIV with the “blue-background” id.

    I only have one problem that remains : although the full-width displays properly for “normal” screen sizes, when the width is below 768px there is a small margin on the left, as you can see on the example above.

    Here is the CSS code associated to my template :

    .page-template-full-width-php #main-wrapper {
    	width: 100%;
            overflow-x: hidden;
    	}
    .page-template-full-width-php #main-wrapper .breadcrumbs {
    	margin-left: 0px;
    	}
    .page-template-full-width-php .container {
    	width: 100%;
    	}
    .page-template-full-width-php #content {
    	width: 100%;
    	margin: 0px;
    	display: inline-block;
    	}
    .page-template-full-width-php .row {
    	margin-left: 0px;
    	margin-right: 0px;
    	}
    .page-template-full-width-php {overflow-x: hidden;}

    Thanks for your help guys

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Cirnu

    (@cirnu)

    so, nobody for an solution, or an idea ?
    where could this phenomenon come from ?
    maybe I shall do something with a media query ?

    Try this:

    @media all and (max-width:768px) {
    #main-wrapper {
        padding-left: 0px;
        padding-right: 0px;
    }
    }
    Thread Starter Cirnu

    (@cirnu)

    Thanks, it works !

    I just added the code to the CSS dedicated to this template, in order to preserve the other pages !

    .page-template-full-width-php #main-wrapper {
    	width: 100%;
            overflow-x: hidden;
            padding-left: 0px;
            padding-right: 0px;
    	}

    Thanks again !

    Regards

    Great. Please mark as [resolved] in rh sidebar

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘CustomizR full-width template’ is closed to new replies.