Okay
  Public Ticket #1678223
Add icons to list
Closed

Comments

  • carlossouss started the conversation

    How can i add icons to the list of icons available for events creation?

    Is it the same process for images and Fontawesome icons?

    Tried to figure out from comment section but there where different answers and i am not sure if the answers apply to fontawesome icons too.

    Thanks

  •  94
    Valentin replied

    For right now use this: 

    On the bottom of your theme functions.php paste this code:

    /* Adds new Font-Awesome icon (Restaurant) at the bottom of the list */
    add_filter('stec_icons', function($arr) {
        $arr['fas fa-utensils'] = __('Restaurant (Font-Awesome 5)', 'stec');
        
        return $arr;
    });
    Where in the example the icon code is: fas fa-utensils and the name of the icons is Restaurant

    Stachethemes Support
    My Time Zone is GMT+3


    Envato Profile | Facebook | Twitter | Newsletter | Rate & Review

  • carlossouss replied

    Thank You that worked perfect. 

    Just in case client asks for images.
    How can i add my custom images to this list also? Thanks

  •  94
    Valentin replied

    Images instead of icons?

    Stachethemes Support
    My Time Zone is GMT+3


    Envato Profile | Facebook | Twitter | Newsletter | Rate & Review

  • carlossouss replied

    Yes. Use images instead of icons. 

    In case the client want custom made icons. 

    I can use PNG.


    Thanks

  •  94
    Valentin replied

    Yeah well this is update is still under development :/ its quite big update and hope to get it live till the end of month.

    Stachethemes Support
    My Time Zone is GMT+3


    Envato Profile | Facebook | Twitter | Newsletter | Rate & Review

  • carlossouss replied

    ???????????? I think you answered wrong thread.

    How can i add my custom images to this list also? Use custom images in icon list.

    Thanks

  •  94
    Valentin replied

    No actually it's the correct thread. You can't add images currently, this feature is part of the update we are working on right now.

    Stachethemes Support
    My Time Zone is GMT+3


    Envato Profile | Facebook | Twitter | Newsletter | Rate & Review

  • carlossouss replied

    Ohhh. Sorry. No problem. :)

    So the filter in comments is not working anymore?

    Thanks.

  •  94
    Valentin replied

    What filter in comments?

    Stachethemes Support
    My Time Zone is GMT+3


    Envato Profile | Facebook | Twitter | Newsletter | Rate & Review

  • carlossouss replied

    Saw this in comments. Is it for that?
    Functions.php

    add_filter('stec_icons', function($icons) {
        $icons['my-icon-class-name']   = 'My Custom Icon';
        $icons['my-icon-class-name-2'] = 'My Custom Icon 2';
        return $icons;
    });

    And on CSS

    .my-icon-class-name {     ...    ...
    }
    .my-icon-class-name-2 {     ...    ...
    }

    Thanks

  •  894
    Zhivko replied

    Yes, this way you can add your custom image but you will have to style it yourself.


    Stachethemes Developer

  • carlossouss replied

    Ok. Good. Just in case they want to use it. 

    Thank you very much.