正如您在我的website 我有几个到Youtube、Facebook等的链接按钮。。。
我对代码做了一些修改,添加了Soundcloud URL,这很有效。我通过链接在顶部获得Soundcloud徽标。不幸的是,这对StackExchange不起作用。我有没有办法自己创造它?我不知道这些图像在哪里。这是零重力主题的代码:
<?php if( get_theme_mod( \'zerogravity_youtube_url\' ) !== \'\' ) { ?>
<a href="<?php echo esc_url(get_theme_mod( \'zerogravity_youtube_url\', \'https://www.youtube.com/channel/UCgbFVVZZGxZt25qTaNnL7LA\' )); ?>" title="YouTube" target="_blank"><i class="fa fa-youtube"></i></a>
<?php } ?>
<?php if( get_theme_mod( \'zerogravity_stackexchange_url\' ) !== \'\' ) { ?>
<a href="<?php echo esc_url(get_theme_mod( \'zerogravity_superuser_url\', \'http://stackexchange.com/users/3651287/batchz4life\' )); ?>" title="Stackexchange" target="_blank"><i class="fa fa-stackexchange"></i></a>
<?php } ?>
<?php if( get_theme_mod( \'zerogravity_pinterest_url\' ) !== \'\' ) { ?>
<a href="<?php echo esc_url(get_theme_mod( \'zerogravity_pinterest_url\', \'https://pinterest.com/stefanfare\' )); ?>" title="Pinterest" target="_blank"><i class="fa fa-pinterest"></i></a>
<?php } ?>
<?php if( get_theme_mod( \'zerogravity_soundcloud_url\' ) !== \'\' ) { ?>
<a class="soundcloud" href="<?php echo esc_url(get_theme_mod( \'zerogravity_soundcloud_url\', \'https://soundcloud.com/stefan-heymans-1/\' )); ?>" title="Soundcloud" target="_blank"><i class="fa fa-soundcloud"></i></a>
<?php } ?>
</div><!-- .social-icon-wrapper -->
</div><!-- .top-bar --->
谢谢!
最合适的回答,由SO网友:Harkály Gergő 整理而成
这些图标来自Font Awesome:https://fortawesome.github.io/Font-Awesome/icons/
例如,您也可以将堆栈交换图标用于以下代码:<i class="fa fa-stack-exchange"></i>
如果此代码不起作用,您应该下载最新的Font Awesome软件包,或者在标题中链接:<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">