Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • brusamolino Friend
    #188482

    Hi
    I’ve tried to add social network icon inside “+” button in “Follow us”
    I’ve modified template css and bootstrap.css

    In bootstrap.css i’ve added

    .icon-youtube:before {
    content: “f16a”;
    }
    .icon-flickr:before {
    content: “f16e”;
    }

    but appear the code and not the icon why?


    1. social
    Wall Crasher Developer
    #496992

    Hi brusamolino,

    If you simply add

    .icon-youtube:before {
    content: “f16a”;
    }
    .icon-flickr:before {
    content: “f16e”;
    }

    it will not work. You need to replace the font file also.

    JA Smashboard comes with Font Awesome 3.1 by default.
    If you want to use new icon, you need to upgrade Font Awesome.

    Just download the latest version of Font Awesome http://fortawesome.github.io/Font-Awesome/ replace with the current version in template folder. Compile LESS to CSS again and it will work.

    Regards

    netman45 Friend
    #504578

    I downloaded the latest version of Font Awesome (Version 3.2.1) and I replaced the files in the template folder, I have compiled LESS to CSS
    but the new icons appear all black .. what I did wrong?:((


    1. follow
    Wall Crasher Developer
    #504619

    Hi netman45,

    Yes, it should be black by default.
    If you want to change the color you should add some style rule.

    You can add it to custom.css (create this file if it does not exist on css folder) like this:

    ul.btn-social li.dropdown .social-list li a .icon-youtube {
    background-color: #cc181e/* change color here */
    }

    ul.btn-social li.dropdown .social-list li a .icon-flickr {
    background-color: #0063dc/* change color here */
    }

    You can also modified /less/modules.less at line 340
    Just copy the previous icon and paste it bellow, like this.

    .icon-youtube {
    background-color: #cc181e
    }

    .icon-flickr {
    background-color: #0063dc
    }

    Then you need to compile LESS to CSS.

    Regards

    netman45 Friend
    #504691

    Hi Wall Crasher,
    thank you for your prompt response, I had already started to do some testing and have done so: I added the line

    ul.btn-social li.dropdown .social-list li a .icon-youtube {
    background-color: #cc181e/* change color here */
    }

    ul.btn-social li.dropdown .social-list li a .icon-flickr {
    background-color: #0063dc/* change color here */
    }

    in template.css at line 1784

    everything seems to work ….
    not good as I did?
    thanks again:((

    Wall Crasher Developer
    #504778

    Hi netman45,

    It is ok as long as you do not recompile LESS to CSS.
    If you compile LESS to CSS, template.css will be overwritten.

    🙂

    Regards

    s4reea Friend
    #505014

    <em>@netman45 388068 wrote:</em><blockquote>Hi Wall Crasher,
    thank you for your prompt response, I had already started to do some testing and have done so: I added the line

    ul.btn-social li.dropdown .social-list li a .icon-youtube {
    background-color: #cc181e/* change color here */
    }

    ul.btn-social li.dropdown .social-list li a .icon-flickr {
    background-color: #0063dc/* change color here */
    }

    in template.css at line 1784

    everything seems to work ….
    not good as I did?
    thanks again:((</blockquote>

    I have read about it, why you shouldn’t edit the css files directly…
    T3-framework works with LESS files, they are located at t3-assets folder, each time you compile you build up all the necessary css files from less files. so the origin comes from less, as long as you don’t edit the LESS they will keep over writing what you changed in css. there is one exception though, it is the custom.css file which is not compiled from less so you should add style rules there.
    here is more info: http://t3-framework.org/documentation/customization.html#Customize Theme

    and you can see in the same link http://t3-framework.org/documentation/customization.html#custom-css

    good luck

    netman45 Friend
    #505040

    Great, in fact it is so much easier and changes all reside in a single file and are easier to find!
    Thank you!:)

Viewing 8 posts - 1 through 8 (of 8 total)

This topic contains 8 replies, has 4 voices, and was last updated by  netman45 11 years, 1 month ago.

We moved to new unified forum. Please post all new support queries in our New Forum