我是 Elementor Developers API 的新手。 提前抱歉我的英语))我正在创建我自己的网站,该网站必须与一些外部 API(也是由我开发的)集成。 我花了几天时间试图解决我的问题,今天我在这里寻求帮助)) 所以,我有 Elementor 页面,例如上面有一些计数器。 我有一些按钮向 ...
提示:本站收集StackOverFlow近2千万问答,支持中英文搜索,鼠标放在语句上弹窗显示对应的参考中文或英文, 本站还提供 中文繁体 英文版本 中英对照 版本,有任何建议请联系yoyou2525@163.com。
我如何为Widget_Social_Icons()添加新的社交图标?
我可以为Control_Icon()添加新图标
function jet_modify_controls( $controls_registry ) {
// Get existing icons
$icons = $controls_registry->get_control( 'icon' )->get_settings( 'options' );
// Append new icons
$new_icons = array_merge(
array(
'fab fa-viber' => 'viber',
),
$icons
);
// Then we set a new list of icons as the options of the icon control
$controls_registry->get_control( 'icon' )->set_settings( 'options', $new_icons );
}
add_action( 'elementor/controls/controls_registered', 'jet_modify_controls', 99, 1 );
我发现动作“ elementor / widgets / widgets_registered”,但我找不到为他添加新图标的方法
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.