Ripro v2美化折腾记七之左下角悬浮广告

找到:你的域名/wp-content/themes/ripro-v2/header.php,最底部添加如下代码:

// 给网站添加悬浮动画广告
// 教程地址:https://www.cpon.cn/19605.html
// 你猜这是干什么的
$vip_type = _get_user_vip_type($current_user->ID);
// 判断当前用户是否为vip / 永久vip
if($vip_type != 'vip'){
if ($vip_type != 'boosvip'){
// 不是则输出以下代码
echo '<div class="showpc"><style>.showpc{display:none;}@media (min-width:960px){.showpc{display:inline;}}</style><div id="wpon_svip_gif" class="wpon_svip_gif">
<div class="kubao"></div><p><a class="link animated" href="https://www.xnbaoku.com/598" data-stat="升级SVIP活动特价" target="_blank" title="兔年VIP优惠 限时开放中"><br><img src="https://cdntt.xnbaoku.com/hd.gif"  ><br></a></p></div></div>';}}?>

后台选择外观-自定义-额外css,添加如下代码

#wpon_svip_gif {
        display: none;
        width: 200px;
        height: 61px;
        border-radius: 0 0 13px 13px;
        z-index: 1002;
        left: 30px;
        bottom: 240px;
        position: fixed;
    }

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注