• Resolved Butterfingers

    (@cantbelieveitsnotbutter)


    Hi @areoimiles,

    Custom colors set in the plugin UI are apparently ignored when the plugin compiles bootstrap.min.css. The ‘areoi-customize-‘ values in wp_options match what’s in the UI. Have you encountered this?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Miles

    (@areoimiles)

    Hi @cantbelieveitsnotbutter

    I haven’t personally come across this but let me do a little digging and see if I can find the issue.

    Thanks

    Miles

    Thread Starter Butterfingers

    (@cantbelieveitsnotbutter)

    Hi @areoimiles,

    On closer inspection, I’ve found the problem.

    In the bootstrap.scss file for both versions of Bootstrap, variables.scss is imported before variables-override.scss (also, variables-override.scss is imported twice, which it’s not clear why). Unfortunately, Simply swapping the order of the imports isn’t the only fix required, since when the plugin saves the UI settings to variables-override.scss it includes variables which are only defined in variables.scss, resulting in “undefined variable” errors when compiling. If you can update the compile_scss() function to address this, it should solve the problem.

    Plugin Author Miles

    (@areoimiles)

    No problem, I’ll take a look. Quick question which version of Bootstrap are you using, 5.0.2 or 5.3.0?

    Thread Starter Butterfingers

    (@cantbelieveitsnotbutter)

    It turns out the UI settings are properly compiled for 5.0.2, and it’s just 5.3.0 that’s got the problem, so maybe compile_scss() isn’t the problem.

    Thread Starter Butterfingers

    (@cantbelieveitsnotbutter)

    @areoimiles , by the way, thanks so much for the quick response on this (however long it ends up taking to fix), and for your continued support for this plugin. This plugin is amazing.

    Plugin Author Miles

    (@areoimiles)

    Hi @cantbelieveitsnotbutter

    It looks like within Bootstrap 5.3 the colours are loaded in a different order so they weren’t being updated correctly. However, in the latest update (1.3.4) I have fixed this issue and it should now work as expected.

    Thanks again for flagging this. If you need any more assistance or continue to have problems, feel free to reach back out.

    Thanks
    Miles

    Thread Starter Butterfingers

    (@cantbelieveitsnotbutter)

    Fixed. Thanks very much for the quick turnaround!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Custom colors set in plugin UI not compiling to bootstrap.min.css’ is closed to new replies.