Black Friday 2026 50% off every plan Our biggest deal of the year on #1 Joomla products.
Ends in 12d 18h 53m 22s
Claim 50% off
Solved Templates

offcanvas menu text alignment.

Asked by lumajosh 2 years ago Last activity 2 years ago

Hi,

I'm using barber template and would like to have offcanvas menu text being left aligned (it's center aligned), I've added the following code to the custom css, however it does not work -

@media (max-width: 575.98px) {
.offcanvas-menu .offcanvas-inner .sp-module ul>li ul li a{
text-align: left !important;
}
}

Any ideas on why that would be the case?

Thanks

Accepted answer

Marked as the solution
lumajosh Asked this

It seems to be working now, thank you. BTW, is there anything can be done about css being too large - Ahrefs Site Audit (Bostonholistichealing) CSS file size too large?

8 more replies

Paul Frankowski Senior Staff

Hi,

  1. Wrong CSS
  2. Share site URL
Paul Frankowski Senior Staff
2 years ago · edited

This Custom CSS should help:

.offcanvas-menu .offcanvas-inner .sp-module ul > li,
.offcanvas-menu .offcanvas-inner .sp-module ul li  ul li {text-align: left;}

Insert that in Template Options > Custom code > Custom CSS

Paul Frankowski Senior Staff
2 years ago · edited

It works, here is evidence from your site || refresh browser cache + Clear Joomla cache.

info_2779_2024.jpg

Paul Frankowski Senior Staff

Can you check from different browser than default Safari, just in case of...

Paul Frankowski Senior Staff
2 years ago · edited
  1. You can use JCH_Optimze extension to compress & reduce CSS. Our Template compressor is very basic.
  2. You have speed problem with Google Fonts, only on home page you are loading "Poppins" 2x and "Maven Pro" 3x.
lumajosh Asked this

thank you, again. I want to reduce the size of the offcanvas menu, what would be the syntax for that?

Log in to reply.