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

    Hi!

    I have updated the site in the private content to enfold 7.0 and our custom scroll down icon are not back to the default.
    We have used this function to make it work on the site that are not updated to 7.0. The site are also in the private content.

    Can you help me fix this?

    Code
    // Scroll down ikon skiftes
    add_filter(‘avf_default_icons’,’avia_replace_standard_icon_scrolldown’, 10, 1);

    function avia_replace_standard_icon_scrolldown($icons)
    {
    $icons[‘scrolldown’] = array( ‘font’ =>’flaticon_culina’, ‘icon’ => ‘uf106’);
    return $icons;
    }

    • This topic was modified 1 week, 4 days ago by mvi.
    #1478701

    Hey mvi,
    I don’t see a difference for the scrolldown arrow between your two sites.
    Try this filter instead:

    add_filter('avf_default_icons','avia_replace_standard_icon_scrolldown', 10, 1);
    function avia_replace_standard_icon_scrolldown($icons)
    {
    $icons['svg__scrolldown']	 = array( 'font' =>'flaticon_culina', 'icon' => 'uf106');
    return $icons;
    }

    Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.

    Best regards,
    Mike

    #1478729

    Hi Mike

    I have add two images to show the difference because it is two different icons.
    One of them are the default icon and the other one are a custom icon.

    But the code you sent worked.
    Can you add it somewhere on your documentation so if other need to replace the default icon in the future? :-)

    #1478736

    Hi,

    Thank you for the info. This will be included in the documentation. Have a nice day.

    Best regards,
    Ismael

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