document.writeln('');
WordPress文章列表右上角添加文章置頂+新文章發布ICON圖標【子比教程】
在子比主題目錄下“func.php”(子比主題推薦放這里)或者“functions.php”,在合適位置放下面PHP代碼。
上面《img》標簽icon圖標鏈接自己修改
圖標素材:
在子比主題目錄下“/zibll/inc/functions/zib-posts-list.php”文件中,放在獲取文章列表標題內 大概440行的文章放入下面PHP代碼(看圖)
$html .= tianyishangke_post_newicon($post);//源碼庫新文章+置頂文章icon圖標函數$html .= tianyishangke_post_newicon($post);//源碼庫新文章+置頂文章icon圖標函數$html .= tianyishangke_post_newicon($post);//源碼庫新文章+置頂文章icon圖標函數
/*ymkuz.com·新文章發布圖標樣式*/.posts-item{position: relative !important;}.tianyishangke-new-icon{position: absolute;height: 35px;right: 0;top: 0;}.tianyishangke-new-icon img{-webkit-user-drag: none;}/*ymkuz.com·新文章發布圖標樣式*/ .posts-item{position: relative !important;} .tianyishangke-new-icon{position: absolute;height: 35px;right: 0;top: 0;} .tianyishangke-new-icon img{-webkit-user-drag: none;}.posts-item{position: relative !important;}.tianyishangke-new-icon{position: absolute;height: 35px;right: 0;top: 0;}.tianyishangke-new-icon img{-webkit-user-drag: none;}
效果圖:
不懂可以留言~