question about font and slide show image

question about font and slide show image

by m question -
Number of replies: 5
Hi,
 I am using Essential Theme
can I change the font type based on lanugage using css?
can I add font awosome icon in slider and how?
thanks
Average of ratings: -
In reply to m question

Re: question about font and slide show image

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

  1. Only CSS = no - conceptually possible with PHP and CSS - details will take me time.  Time is money.
  2. Look at the FontAwesome documentation.


In reply to Gareth J Barnard

Re: question about font and slide show image

by Richard Oelmann -
Picture of Core developers Picture of Plugin developers Picture of Testers

Gareth,

I think the font is probably changeable using css only as when different languages are selected (if multiple languages are installed on the site), Moodle adds a language body class

lang-en (English), lang-cy (Welsh), etc

wouldn't something like this work in customcss?

@font-face {
    font-family: "My Custom Font";
    src: url(http://www.example.org/mycustomfont.ttf) format("truetype");
}
.lang-cy p { 
    font-family: "My Custom Font", Verdana, Tahoma;
}
In reply to Richard Oelmann

Re: question about font and slide show image

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Possibly.  There are always many ways to solve the same problem.

In reply to m question

Re: question about font and slide show image

by m question -
thanks for help

I will try changing font and report here if it worked with me.

about font awesome icon , I can add it in moodle when I have text editor, but in slide show there isn't .

if any one could help and have time it would be great.


thanks