Welcome, Guest
Username: Password: Remember me

TOPIC: Changing fontsize in bootstrap template

Changing fontsize in bootstrap template 2 years 1 month ago #4366

  • JaapJan Vroom
  • JaapJan Vroom's Avatar
  • Offline
  • Expert Boarder
  • Posts: 106
  • Thank you received: 1
Hi,

does anybody knows how to change the fontsize of the titles in the Bootstrap template? I think the titles in the text are far to large and like to change them in a smaller font. I tried some things, but I saw 3 css files and don't know what to do know.

Thanks

JaapJan
Holy cow!
The administrator has disabled public write access.

Changing fontsize in bootstrap template 2 years 1 month ago #4367

  • Ron Mitchell
  • Ron Mitchell's Avatar
  • Offline
  • Administrator
  • Posts: 500
  • Thank you received: 120
In recent code this is changeable via the editor e.g. title fields have the small wysiwyg editor. But for now add a styles option and try something like:
h1 {
    font-size: 28.5px;
}
HTH
Ron
Xerte developer & trainer
e-learning & m-learning consultant
mitchellmedia.co.uk
xerteacademy.com
learningapps.co.uk
The administrator has disabled public write access.
The following user(s) said Thank You: JaapJan Vroom

Changing fontsize in bootstrap template 2 years 1 month ago #4368

  • JaapJan Vroom
  • JaapJan Vroom's Avatar
  • Offline
  • Expert Boarder
  • Posts: 106
  • Thank you received: 1
Great! Thanks.

JaapJan
Holy cow!
The administrator has disabled public write access.

Changing fontsize in bootstrap template 2 years 1 month ago #4377

  • JaapJan Vroom
  • JaapJan Vroom's Avatar
  • Offline
  • Expert Boarder
  • Posts: 106
  • Thank you received: 1
Ron,

I am wondering if it is also possible to change the fontsize in the downloaded document which will be generated by the new Form template. Me and my collegues love the template and are planning to use it often. The fontsize of the titles is far to big, we think.
I tried the trick you sent me for the bootstrap, but that doesn't work

JaapJan
Attachments:
Holy cow!
The administrator has disabled public write access.

Changing fontsize in bootstrap template 2 years 4 weeks ago #4378

  • Ron Mitchell
  • Ron Mitchell's Avatar
  • Offline
  • Administrator
  • Posts: 500
  • Thank you received: 120
Actually the sizes in the downloaded document are affected by two things:
1. the heading tags coded into download.php
2. the default template settings in your version of Word and how it renders those tags/sizes

You could edit your download.php and for instance reduce the sizes by one so change h3 to h4, h2 to h3 and h1 to h2.
When upgrading you would need to reapply those change or protect that file from being changed.

I'll pose the question to the other developers whether we should change those values anyway because they do seem a bit big or perhaps pick up styles from the actual LO. We also hope to add control over whether the download is a Word doc or a pdf and hopefully that will be in the next release.

BTW an organisation I support directly yesterday mentioned that the download button wasn't working when they exported their project and imported into a vle or viewed offline. At the moment this page type requires access to the download.php file to create the document so won't work when exported. So keep that in mind when using this page type. Obviously will work fine when just linked or embedded so if you do need to export your project e.g. for scorm tracking etc then perhaps just create the documentation page(s) as a separate resource and embed into the project you will export. Won't work if there isn't online connectivity but will still work from the vle then because the actual page is still in your xerte install.

HTH
Ron
Xerte developer & trainer
e-learning & m-learning consultant
mitchellmedia.co.uk
xerteacademy.com
learningapps.co.uk
The administrator has disabled public write access.

Changing fontsize in bootstrap template 2 years 4 weeks ago #4379

  • JaapJan Vroom
  • JaapJan Vroom's Avatar
  • Offline
  • Expert Boarder
  • Posts: 106
  • Thank you received: 1
Hi Ron
thanks for the quick reply and the tip you gave.

JaapJan
Holy cow!
The administrator has disabled public write access.
Moderators: Alistair McNaught
Time to create page: 0.335 seconds
Powered by Kunena Forum