preset colors or custom style are not working properly - Forum | JoomShaper
Solved Templates

preset colors or custom style are not working properly

Asked by Joomla User 7 months ago Last activity 7 months ago

I just upgrade my site from J4 to J5.4.2 and updatet PageBuilder from 3 to 6.

I had a problem with error: Top-level selectors may not contain the parent selector "&". , 749 | &.sppb-btn-default { | ^ ' presets.scss 749:1 @import - 1:9 root stylesheet

I found a solution on the forum:
When Complile SCSS to CSS is off, then the error is gone. So this setting is ‘off’.

I have settings of colors in: Presets > Custom Style but these colors do not show up.
The header, menu and footer of my site has colors I did not install. So I set preset 1 as default, because that colors match better with the site. But when I tried changing colors in ‘preset 1’ nothing happened. The new colors I do not see.

How can I solve this?

Joomla 5.4.2 – template Keynote 2.0.1 - Helix Ultimate Framework 2.2.4

Accepted answer

Marked as the solution
Ziaul Kabir Staff

In preset.scss file there was a small mistakes, (&)

//button default

&.sppb-btn-default {
  color: $text_color;
}

I just removed this & and issues fixed.

If everything is working fine now, please mark the question as complete by accepting any of our answers.

Thank you!

7 more replies

Ziaul Kabir Staff

Hello,

Thank you for reaching out to us.

After changing any preset color, please run the SCSS to CSS compiler. Once the compilation is complete, save the settings. Then disable the compiler and save again.

This will ensure the changes are properly applied.

Thanks.

Joomla User Asked this

How do I run the SCSS to CSS compiler?

Ziaul Kabir Staff

Just enable it, then save it and then disable it again.

Thanks

Joomla User Asked this

When I enable 'Compile SCSS to CSS' I get the:
0
Top-level selectors may not contain the parent selector "&". , 749 | &.sppb-btn-default { | ^ ' presets.scss 749:1 @import - 1:9 root stylesheet

I can press save and enable it, but nothing changed. The error is one of the problems.

Ziaul Kabir Staff

Could you please share temporary administrator access to your Joomla backend? You can provide the credentials securely in the hidden content section. Also, please take a full backup of your site before we make any changes.

Once I have access, I’ll investigate further and see what’s causing the issue. Let me know once you’ve shared the details!

Best regards,

Joomla User Asked this

Hi Ziaul,
In the 'hidden content' are the credentials.

Ziaul Kabir Staff

Please, check now.

Thanks

Joomla User Asked this

Thanks Ziaul, it is working now. Could you tell what is changed?

Log in to reply.