Black Friday 2026 50% off every plan Our biggest deal of the year on #1 Joomla products.
Ends in 12d 04h 28m 30s
Claim 50% off
Awaiting an answer SP Page Builder

CSS conflict with Bootstrap-based template – justify-content classes

Asked by Davide Reitano 1 year ago Last activity 1 year ago

Hi,
I’m experiencing a CSS conflict between your component and my website’s Bootstrap-based template.

The template uses the following media query:
@media (min-width: 768px) {
.justify-content-md-end {
justify-content: flex-end !important;
}
}

Your component applies this class:
.justify-content-center {
-ms-flex-pack: center !important;
justify-content: center !important;
}

When both classes are applied to the same element (e.g., <div class="justify-content-center justify-content-md-end">), they conflict on screens larger than 768px, due to conflicting justify-content rules with !important.

Could you please consider updating the component to avoid hardcoding .justify-content-center, or apply it conditionally based on screen size? This would improve compatibility with Bootstrap-based layouts.

Thanks!
Davide

11 replies

Mehtaz Afsana Borsha Staff

Hi

Thanks for contacting us and thanks for your opinions. I will inform our DEV team about it.

-Regards.

Davide Reitano Asked this

Hi,
thanks for the reply — however, I’d really appreciate it if this could be escalated with higher priority.

This issue is breaking the layout of my website, and it’s caused by your component applying utility classes that conflict directly with Bootstrap’s responsive logic.

Please ask your DEV team to address this as soon as possible or at least provide a temporary workaround.

Thanks for your understanding

Mehtaz Afsana Borsha Staff

Ok I will inform them.

Davide Reitano Asked this

hello, i still have the issue and i need to solve it asap

Mehtaz Afsana Borsha Staff

Hi,

Our team is now in vacation that's why it may take some time. Allow us some time please.

Pavel
1 year ago · edited

Hi Davide.

In the world of web development, it is impossible to completely eliminate conflicts between hundreds of thousands, or even millions, of components. Therefore, as webmasters, we must be able to handle this ourselves in specific cases. This code will fix your problem (if it concerns the language switcher).

@media (min-width: 768px) {
    .top-bar-content .justify-content-center.justify-content-md-end {
        justify-content: end !important;
    }
}

I suspect that the cause of your problem is that your template is not rendering the order of the CSS files correctly.

You can use this code and forget about the problem, or wait for a solution from Joomshaper for the next 100 years. And it's not because the Joomshaper team works poorly, but because it's impossible to make everything in the world compatible with each other.

By making these changes in core SP Page Builder CSS, the Joomshaper team could break thousands of other users' sites that do not have this problem. Therefore, there is a 99% chance they will not do it.

Davide Reitano Asked this

Hello Pavel, thank you.
Yes, i'm with you with some of these things.
I saw that SP Page builder is a lot "aggressive" in its css, with a lot of !important that outperform other plugins.
And since it's a component and not a template, its files are loaded after the template ones, resulting in this issue.
At every update i need to manually edit SPPB css, but i think this can be fixable at least removing the !important from the css in the next update

Pavel
1 year ago · edited

Hi Davide.

Joomshaper does not modify the Bootstrap code in SPPB CSS but uses it as is.

Here is a screenshot from a Bootstrap 5 site. There is a huge amount of !important. It is obvious that there is some sense in using this by Bootstrap developers.

Pavel

I can confidently say that no one will change this in the next update, as it will cause difficulties with updating Bootstrap itself.

So don’t waste time unnecessarily; just resolve it on your own through CSS.

Pavel
1 year ago · edited

And since it's a component and not a template, its files are loaded after the template ones

Speaking of templates, this issue is addressed in Helix. The entire Bootstrap placed below sppb css, along with Bootstrap configured by the template tools is compiled into template.css and also placed below sppb css (by the way, the same goes for Cassiopea). Your template simply does not take this into account.

If you are the developer of your template, simply change the order of loading the CSS files.

Davide Reitano Asked this

I think you’re missing the point here. I’m not a beginner, nor am I a developer of my template. If I were, I wouldn’t be purchasing commercial components to build my site. I paid for SP Page Builder because it’s marketed as a professional tool that’s supposed to work seamlessly with popular frameworks like Bootstrap.

Your tone and approach make it sound like I’m at fault for simply expecting compatibility between a page builder and a template. Let me make one thing clear: not every site in the world is identical. It’s not uncommon for users to install additional solutions or use custom templates — that’s how the web works.

When SP Page Builder forces CSS rules with !important, it creates unnecessary conflicts, especially since the component’s CSS is loaded after the template. This is not about “handling it myself” or “fixing it on my own” — it’s about pointing out a design flaw that could be improved, especially when many users might face the same problem.

When a paying customer reports a conflict, the right approach is to acknowledge the problem and discuss potential improvements, not dismiss it as a trivial issue or blame the user.

I expect a more professional response from the team, especially when the issue clearly originates from how the component handles CSS priorities. As a paying customer, I have the right to expect support and not be treated like I’m at fault for pointing out a legitimate problem.

Thank you.

Log in to reply.