
內容簡介
RB Site Social Links 外掛可用於動態地添加網站的社交媒體圖示及連結。您只需更改您的社交媒體圖示連結的 href 屬性或社交媒體圖示的文字即可。
使用方法
Facebook 連結:
添加 PHP 代碼:
<?php
echo esc_url(get_option(‘rb_facebook_link’));
?>
Twitter 連結:
添加 PHP 代碼:
<?php
echo esc_url(get_option(‘rb_twitter_link’));
?>
LinkedIn 連結:
添加 PHP 代碼:
<?php
echo esc_url(get_option(‘rb_linkedin_link’));
?>
Instagram 連結:
添加 PHP 代碼:
<?php
echo esc_url(get_option(‘rb_instagram_link’));
?>
Pinterest 連結:
添加 PHP 代碼:
<?php
echo esc_url(get_option(‘rb_pinterest_link’));
?>
Behance 連結:
添加 PHP 代碼:
<?php
echo esc_url(get_option(‘rb_behance_link’));
?>
Dribbble 連結:
添加 PHP 代碼:
<?php
echo esc_url(get_option(‘rb_dribbble_link’));
?>
Github 連結:
添加 PHP 代碼:
<?php
echo esc_url(get_option(‘rb_github_link’));
?>
YouTube 連結:
添加 PHP 代碼:
<?php
echo esc_url(get_option(‘rb_youtube_link’));
?>
Blogger 連結:
添加 PHP 代碼:
<?php
echo esc_url(get_option(‘rb_blogger_link’));
?>
WordPress.com 連結:
添加 PHP 代碼:
<?php
echo esc_url(get_option(‘rb_wordpress_link’));
?>
CodePen 連結:
添加 PHP 代碼:
<?php
echo esc_url(get_option(‘rb_codepen_link’));
?>
Skype 地址:
添加 PHP 代碼:
<?php
echo esc_html(printf(__(‘%s’,’rb-site-social-links’),
get_option(‘rb_skype_text’)));
?>
外掛標籤
開發者團隊
原文外掛簡介
RB Site Social Links allows you to easily add and display social media links on your website.
Simply enter your social profile URLs in the settings page, and display them anywhere using the function provided.
✅ Supported Social Icons
Twitter
Facebook
Instagram
LinkedIn
Pinterest
YouTube
TikTok
Dribbble
Behance
WhatsApp
GitHub
📌 How to Add the Function in Your Theme
Add this code inside your theme’s header.php, footer.php, or inside a template file:
if ( function_exists( 'rb_site_social_links_icon' ) ) {
rb_site_social_links_icon(
'socia_icon_menu', // ul ID
'socia_icon_menu', // ul class
'socia_icon_item', // li class
'socia_icon_link' // a class
);
}
You can customize the class names as needed for styling.
