给wordpress侧边栏增加时钟教程

╭飛雪飄零╮ 站长529,0494字数 354阅读模式

闲来无聊,于是倒腾一番,美化下博客,为wordpress侧边栏增加一个动态时间,原理其实就的调用一个网页源码。这里主要用到wordpress增强文本小工具,具体教程附后,效果如下:

给wordpress侧边栏增加时钟教程

1、下载附件文件

下载文章后的源码,连同文件夹解压上传到网站根目录,当然如果你有点代码知识,路径由你自己选择。

2、主题添加增强文本

在后台主题设置添加文本增强工具,填入如下代码。

<iframe src="<iframe src="https://www.luoyechenfei.com/clock/" width="310" height="310"></iframe>" width="310" height="310"></iframe>
https://www.luoyechenfei.com/clock/地址根据你的域名及路径修改即可
下载信息 时间源码 WinXP/Vista/7/8/10 1.0 2.71KB
最近更新2020-2-3
下载地址:发表评论并刷新可见

 
╭飛雪飄零╮
评论  52  访客  51  作者  1
    • qq_c318fefb3f
      qq_c318fefb3f 0
      Microsoft Edge 97.0.1072.69 Microsoft Edge 97.0.1072.69 Windows 10 x64 Edition Windows 10 x64 Edition

      学习学习~~

      • vaimibao
        vaimibao 0
        Google Chrome 80.0.3987.163 Google Chrome 80.0.3987.163 Windows 10 x64 Edition Windows 10 x64 Edition

        学习学习~

        • y107256
          y107256 1
          Google Chrome 86.0.4240.198 Google Chrome 86.0.4240.198 Windows 10 x64 Edition Windows 10 x64 Edition

          代码是不是多复制了,我添加了 上面和左边有黑边框呢

          • y107256
            y107256 1
            Google Chrome 86.0.4240.198 Google Chrome 86.0.4240.198 Windows 10 x64 Edition Windows 10 x64 Edition

            好东西要学习

            • q
              q 2
              Google Chrome 86.0.4240.198 Google Chrome 86.0.4240.198 Windows 10 x64 Edition Windows 10 x64 Edition

              试试好东西

            发表评论