效果图
教程:
打开主题根目录下的 header
.php
文件,在最后一行加入以下代码:
-
style
=“z
–index
:9999“id
=“sideb_maomao
”
然后打开主题根目录的的样式文件 style
.css
,加入以下样式代码:
- #
sideb_maomao
{ position
:fixed
;top
: 500px;right
: –5px;width
: 57px;height
: 70px;background
–image
:url
(这里填写你的动图猫猫svg
地址);background
–position
:center
;background
–size
:cover
;background
–repeat
:no
–repeat
;transition
:background
.3s;- }
转载请注明:汇站网 » WordPress
主题 美化 侧边栏添加动态图片