Offcanvas Menu Text Alignment. - Question | JoomShaper

Offcanvas Menu Text Alignment.

L

lumajosh

Template 11 months 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

0
9 Answers
L
lumajosh
Accepted Answer
11 months ago #175129

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?

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 11 months ago #175113

Hi,

  1. Wrong CSS
  2. Share site URL
0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 11 months ago #175114

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

0
L
lumajosh
Accepted Answer
11 months ago #175119

Hi Paul,

Updated custom.css with your code, unfortunately that did not make a difference. Here is the site's URL - https://www.bostonholistichealing.com/

Thank you

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 11 months ago #175121

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

info_2779_2024.jpg

0
L
lumajosh
Accepted Answer
11 months ago #175123

my screenshot tells you otherwise, the screen shot is from iPhone 16 after Joomla cache was deleted.

https://drive.google.com/file/d/1iBo0ubtGoDClk7QDGNNtZnclfyZhckDm/view?usp=drive_link

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 11 months ago #175126

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

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 11 months ago #175130
  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.
0
L
lumajosh
Accepted Answer
11 months ago #175132

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

0