Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8906695
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T02:43:18+00:00 2026-06-15T02:43:18+00:00

I am using this extension: Yii-Bootstrap , along with this less extension: less In

  • 0

I am using this extension: Yii-Bootstrap, along with this less extension: less

In my main.php config file I have:

'components'=>array(
  'less'=>array(
    'class'=>'ext.less.components.LessCompiler',
    'forceCompile'=>true, // indicates whether to force compiling
    //'compress'=>false, // indicates whether to compress compiled CSS
    //'debug'=>false, // indicates whether to enable compiler debugging mode
    'paths'=>array(
      'less/style.less'=>'css/style.css',
    ),
  ),
  'bootstrap'=>array(
      'class'=>'ext.bootstrap.components.Bootstrap',
      'responsiveCss'=>true,
  ),

The bootstrappy goodness works. My problem is that I’m trying to modify the variables in protected\extensions\bootstrap\lib\bootstrap\less\variables.less:

@gridGutterWidth:         0px;
@gridGutterWidth1200:     0px;
@gridGutterWidth768:      0px;

However, these changes don’t reflect anywhere on the site, even though I’m editing variables.less directly. This leads me to believe that it’s not variables.less that I must edit.

Any idea how I can change the gutters?

UPDATE: I was able to edit the following file and see changes:

protected\extensions\bootstrap\assets\css\bootstrap-responsive.css

I changed:

[class*="span"] {
  float: left;
  min-height: 1px;
  margin-left: 30px;
}

To:

[class*="span"] {
  float: left;
  min-height: 1px;
  margin-left: 0px;
}

This now takes away the gutters. But doesn’t quite solve my problem. I wanted this to all happen dynamically via YII and LESS. How do I do that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T02:43:19+00:00Added an answer on June 15, 2026 at 2:43 am

    The solution was to set responsiveCss to false:

    'bootstrap'=>array(
      'class'=>'ext.bootstrap.components.Bootstrap',
      'responsiveCss'=> false,
    ),
    

    And then to change my style.less file to include:

    // Import the Bootstrap mixins, operations and functions so that you can use them in this file.
    @import "../protected/extensions/bootstrap/lib/bootstrap/less/mixins.less";
    @import "../protected/extensions/bootstrap/lib/bootstrap/less/variables.less";
    @import "../protected/extensions/bootstrap/lib/bootstrap/less/scaffolding.less";
    @import "../protected/extensions/bootstrap/lib/bootstrap/less/responsive.less";
    

    The confusion came in with “responsiveCss”, which wasn’t clearly explained (anywhere). Basically this will copy the css files from protected\extensions\bootstrap\assets\css\ and include it into your file, with no modifications. What I mention above, is how you would move from the “standard” version, to this “customizable” way.

    Hope that helps someone, because it wasted a lot of my time, not to mention the time I have to spend redoing css now.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a tab setup as an Activity extension using API8 max. In this
Using the emenu Yii extension for a menu. The underlying project for this extension
On my server I am using this .htaccess to remove the .PHP extension: RewriteEngine
I am using the rights extension of Yii and get this error: There must
I have a form using this model: public class MyModel { public User SalesManager
I need to create an extension method to array class, but this extension method
In my Google Chrome extension, I'm using this nifty little trick to distinguish the
While developing a firefox extension, I create a wizard window from overlay.js using: this.wizard
This question is an extension to the one raised here: Using factory_girl in Rails
Using this page, http://developer.android.com/sdk/compatibility-library.html , I have installed the Android Support Package, added a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.