Results 1 to 3 of 3

Thread: Include Font Awesome

  1. #1
    New user
    Join Date
    08-19-16.
    Posts
    3

    Default Include Font Awesome

    Hi there,

    I want to include FontAwesome in Contao 3.5.25. The way i set it up right now is: made a custom folder with the 2 fontawesome css files and added the following link in the head section: <link rel="stylesheet" href="/files/marage/font-awesome/font-awesome.min.css">. Css looks like this on the after:

    content: '\f13d';
    font-family: FontAwesome;
    display: inline-block;
    position: relative;
    top: -20px;
    padding: 0 3px;
    background: #fff;
    color: #8c8c8c;
    font-size: 28px;

    But the icons don't show up, only that square icon.

    Thanks a lot.

  2. #2
    User Spooky's Avatar
    Join Date
    01-03-13.
    Posts
    331

    Default

    First of all, there is an extension that you can use:



    Secondly, if you want to include FontAwesome without the extension, you should simply add the CSS file via the "External style sheets" option in your page layout. Also, you only talked about 2 CSS files. You also need to provide the font files of course (which are referenced in the CSS).

  3. #3
    New user
    Join Date
    08-19-16.
    Posts
    3

    Default

    Thank you so much!!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •