Full width home page
-
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 themefunctions.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#contentfunction 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
- The topic ‘Full width home page’ is closed to new replies.