Can’t add Viber as a header social icon

[ad_1]

I’m trying to use one of the 3 custom social fields as a viber link field (viber://contact?number=+00000000000). However I’m getting an empty link as a result.

I tried to add the “viber” protocol in the kses but it didn’t do the trick.

// Allow viber protocol in links
add_filter('kses_allowed_protocols', static function ($protocols) {
    $protocols[] = 'viber';
    return $protocols;
});

It seems that the URL disappears somewhere between customizer and saving the option in the database, since I checked the database and the option is empty there. Does Kadence use some extra URL validation?

  • This topic was modified 3 hours, 1 minute ago by rinart73.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer