It is center-aligned by default, and I’ve tried playing with align-title, padding, margins, anything I can think of, but nothing seems to move it. Any ideas?
For Material Design, the title will align left by default. If you set your default platform to iOS, you get a centered title. One way to override this is to add in a text modification directive:
so if you want left align regardless of the platform:
That doesn’t seem to be doing anything – I removed the h1 and strong tags, and all other styling on the header/nav, but the title is still centered on iOS. Any ideas why?
put this in yout global.scss or .scss of a specific page that you want the title to be left or centered:
for me I wanted it to be centered but without the default padding added by ionic so it can show the whole title. you can align it left and add padding to padding-inline-start instead of 0