Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1060115

    Hello,

    i want to put more of the icons that are included in the theme to the social profiles.
    I tried for example the phone icon with this code in the child theme function.php but its not working.

    Code:
    // Add new icon as an option for social icons
    function avia_add_custom_social_icon($icons) {
    $icons[‘Icon Label’] = ‘ue854’;
    return $icons;
    }
    add_filter(‘avf_social_icons_options’,’avia_add_custom_social_icon’, 10, 1);

    Thanks Ronald

    #1061479

    Hi Ronald,

    Please send us a temporary admin login and login URL so that we can have a closer look. You can post the details in the Private Content section of your reply.

    Best regards,
    Rikard

    #1104572

    Attached the login

    #1104577

    Well i think you had to first register an icon as a theme icon – then you can define it as a social icon:

    // Register a new icon as a theme icon
    function avia_add_custom_icon($icons) {
      $icons['tel']  = array( 'font' =>'entypo-fontello', 'icon' => 'ue854');
      return $icons;
    }
    add_filter('avf_default_icons','avia_add_custom_icon', 10, 1);
    
    // Add new icon as an option for social icons
    function avia_add_custom_social_icon($icons) {
      $icons['tel'] = 'tel';
      return $icons;
    }
    add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);

    and think of to set the css styles for hover state too!
    all icons get the class : av-social-link-xxx

    so f.e. with example above: tel

    #top #wrap_all .av-social-link-tel:hover a {
        color: #fff;
        background-color: #006567;
    }
    #1104595

    Awesome!!! Danke

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.