Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #367711

    i thougt this will do the trick in child theme functions.php but it does not have any effect! :
    my custom font is called “lok” but even if i want to change to any other entypo-fontello font did not work.
    has the overlay-image on lightbox links another definition elsewhere?

    add_filter('avf_default_icons','avia_replace_default_icons', 10, 1);
    function avia_replace_default_icons($icons){
    $icons['ov_image'] =  array( 'font' =>'lok', 'icon' => 'ue800');
    return $icons;
    }

    i tried this here – no effect too: (that is a little camera)

    add_filter('avf_default_icons','avia_replace_default_icons', 10, 1);
    function avia_replace_default_icons($icons){
    $icons['ov_image'] =  array( 'font' =>'entypo-fontello', 'icon' => 'ue80f');
    return $icons;
    }
    • This topic was modified 10 years ago by Guenni007.
    #368071

    Hi Guenter!

    Thank you for using Enfold.

    Are you trying to change the image overlay icon? You can use this on Quick CSS:

    .image-overlay .image-overlay-inside:before {
    content: '\E869';
    font-family: 'entypo-fontello';
    }

    Cheers!
    Ismael

    #368808
    .image-overlay .image-overlay-inside:before {
        content: "";
        font-family: "lok";
        font-size: 40px;
        line-height: 90px;
    }

    thanks i did that allready but i’m wondering why the code above doesn’t work – even if i substitute the lines in enfold – functions.php
    btw the ascii code does not work for me. i had to place that little fonticon in a site and copy out the above content. – Than it works. By theory it might work with ascii but it doesn’t.

    #369279

    Hi!

    The filter doesn’t work because hover overlay icons are declared directly via CSS. It will work when you want to change the icons declared inside the data-av_icon attribute, for example, social icons. This will change the twitter icon to something else:

    add_action('init', 'avia_replace_default_icon', 10, 1);
    function avia_replace_default_icon($icons) { 
    	global $avia_config;
    	
    	$avia_config['font_icons']['twitter']['icon'] = 'ue877';
    	return $icons;
    }

    Note that you can’t use custom font icon on the theme aside from fonts generated on fontello.com.

    Cheers!
    Ismael

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