• Resolved mania1981

    (@mania1981)


    Hello,

    I am trying to apply full width page in customizr but seems that code from tutorial does not work
    https://presscustomizr.com/snippet/display-full-width-pages/

    Are there any additional changes required in current version
    I have following code in my child theme

    functions.php
    <?php
    // Exit if accessed directly
    if ( !defined( ‘ABSPATH’ ) ) exit;

    // BEGIN ENQUEUE PARENT ACTION
    // AUTO GENERATED – Do not modify or remove comment markers above or below:

    // END ENQUEUE PARENT ACTION

    // START OF Display full-width pages
    add_filter(‘tc_fp_widget_area’, ‘use_row_fluid’);
    add_filter(‘tc_footer_widget_area’, ‘use_row_fluid’);
    add_filter(‘tc_column_content_wrapper_classes’, ‘use_row_fluid’); //div#content

    function use_row_fluid($classes){
    return preg_replace(‘/^row$/’, ‘row-fluid’, $classes);
    }
    // END OF Display full-width pages

    ?>

    style.CSS
    .container {
    width: 100% !important;
    margin: 0px;
    padding: 0px;
    }
    #main-wrapper {
    padding: 0 0px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    }

    Any ideas what am I doing wrong?

    The whole content is aligned to the left, but on the right there is empty space.

    Everything seems to be caused by max-width defined for .container

    Thanks for your help
    Anna

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi Anna,

    Would you mind posting the link to your site in question? So that we can offer you with a possible solution.

    Thank you!

    Thread Starter mania1981

    (@mania1981)

    Hello,

    I have managed to find solution by implementing custom template

    We can close the topic

    Anna

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Full width home page’ is closed to new replies.