{"id":13772,"date":"2020-03-15T18:22:18","date_gmt":"2020-03-15T10:22:18","guid":{"rendered":"https:\/\/www.npc.ink\/?p=13772"},"modified":"2020-04-23T10:54:44","modified_gmt":"2020-04-23T02:54:44","slug":"wordpress%e7%be%8e%e5%8c%96-%e7%be%8e%e8%a7%82%e7%9a%84%e6%96%87%e7%ab%a0%e9%a1%b5%e5%ba%95%e9%83%a8%e7%89%88%e6%9d%83%e5%a3%b0%e6%98%8e","status":"publish","type":"post","link":"https:\/\/www.npc.ink\/13772.html","title":{"rendered":"wordpress\u7f8e\u5316 - \u7f8e\u89c2\u7684\u6587\u7ae0\u9875\u5e95\u90e8\u7248\u6743\u58f0\u660e"},"content":{"rendered":"\n
\u5982\u679c\u81ea\u5df1\u7684\u6587\u7ae0\u5199\u7684\u5f88\u68d2\uff0c\u522b\u4eba\u770b\u5230\u4e86\u60f3\u8f6c\u8f7d\uff0c\u4f46\u662f\u53c8\u4e0d\u77e5\u9053\u4f60\u80fd\u4e0d\u80fd\u540c\u610f\uff0c\u8fd9\u4e2a\u65f6\u5019\u5c31\u6709\u70b9\u9ebb\u70e6\u4e86\u3002\u8fd9\u6b21\u5e26\u6765\u7684wordpress\u7f8e\u5316<\/strong><\/a>\u6559\u7a0b\u5c31\u53ef\u4ee5\u5728\u4f60\u7684\u6587\u7ae0\u5e95\u90e8\u6dfb\u52a0\u4e00\u4e9b\u6709\u8da3\u7684\u4fe1\u606f\uff0c\u7ed9\u4f60\u7684\u7f51\u7ad9\u8bbf\u5ba2\u5c55\u73b0\u66f4\u591a\u6709\u8da3\u7684\u5185\u5bb9\uff0c\u4f8b\u5982\u8f6c\u8f7d\u58f0\u660e\u6216\u662f\u52a0\u7fa4\u94fe\u63a5\u3002<\/p>\n\n\n\n \u5c06\u4ee5\u4e0b\u4ee3\u7801\u6dfb\u52a0\u81f3\u4e3b\u9898\u6839\u76ee\u5f55\u7684 \u5728\u4e00\u4e9b\u4e3b\u9898\u4e0a\u9762\uff0c\u79fb\u52a8\u7aef\u7684\u6548\u679c\u4e0d\u884c\uff0c\u90a3\u5c31\u5728\u79fb\u52a8\u7aef\u53ea\u7559\u4e0b\u6587\u5b57\u58f0\u660e\u5427\u3002\u5728\u4e3b\u9898\u6839\u76ee\u5f55\u4e0b\u7684 \u5f53\u7136\uff0c\u5982\u679c\u4f60\u5728\u79fb\u52a8\u7aef\u4e0d\u9700\u8981\u8fd9\u4e2a\u7248\u6743\u58f0\u660e\uff0c\u53ef\u4ee5\u5728\u4e3b\u9898\u6839\u76ee\u5f55\u4e0b\u7684 \u5982\u679c\u8fd9\u6837\u7684\u5916\u89c2\u8fd8\u662f\u65e0\u6cd5\u6ee1\u8db3\u4f60\u62ff\u5206\u63a2\u6c42\u548c\u6298\u817ewordpress\u4e3b\u9898<\/strong><\/a>\u7684\u5fc3\uff0c\u90a3\u4e48\u4f60\u53ef\u4ee5\u8bd5\u8bd5\u8fd9\u6b3e\u7eda\u4e3d\u7684 \u5f15\u5bfc \u5361\u7247\uff1a<\/p>\n\n\n\u6548\u679c\u5982\u4e0b\uff1a<\/h2>\n\n\n\n
\u5982\u4f55\u5b9e\u73b0\u5462\uff1f<\/h2>\n\n\n\n
functions.php<\/code>\u6587\u4ef6
<?php<\/code>\u4e0b\uff0c\u7136\u540e\u6839\u636e\u4ee3\u7801\u4e2d\u7684\u63d0\u793a\u6362\u4e0a\u81ea\u5df1\u9700\u8981\u7684\u5185\u5bb9\u4ee5\u53ca\u56fe\u7247<\/strong>\u5373\u53ef\u3002<\/p>\n\n\n\n
\/\/\u5728\u6240\u6709\u6587\u7ae0\u5e95\u90e8\u6dfb\u52a0\u81ea\u5b9a\u4e49\u5185\u5bb9\nfunction add_after_post_content($content) {\n if(!is_feed() && !is_home() && is_singular() && is_main_query()) {\n $content .= '\n<style>\n.hh_wenzhangjieshu{padding:30px 0;text-align: center;border-top: double rgba(70, 139, 230, 0.14);}\n.hh_wenzhangjieshu img{border:0;text-align:center;box-shadow:none;}\n.hh_content_footer{width:100%;height:200px;box-shadow: 0 0px 1px #d9e0eae3;margin-top:0px}\n.hh_content_footer .item_top_left{padding:20px;float:left;}\n.hh_content_footer .item_top_left p{line-height:14px;font-weight:600;font-size:12px;padding-left: 7px;}\n.hh_content_footer .item_top_left h3{color:#f7516c;font-size:18px;font-weight:600;}\n.hh_content_footer .item_top_right{float:right;padding: 20px 50px 20px 20px;}\n.hh_content_footer .item_top_right .hh_erweima{width:80px;height:80px;background:#f7f7f7;float:left;margin-right:15px;margin-top:15px;padding: 6px;}\n.hh_content_footer .item_top_right .hh_qqqun{float:left;margin-left: 20px;}\n.hh_content_footer .item_top_right .hh_qqqun img{width: 80px;height: 80px;margin: 0 51px 0 0;float: left;}\n.hh_content_footer .item_top_right .hh_qqqun .spanQ1{background:#f4f8ff;}\n.hh_content_footer .item_top_right .hh_qqqun .spanQ3{margin: 20px 0 10px;}\n.hh_content_footer .item_top_right .hh_qqqun .spanQ2{margin: 10px 0 0;}\n.hh_content_footer .item_top_right .hh_qqqun a{display:block;background:#f4f8ff;line-height:30px;border-radius: 15px;margin-top:15px;text-align:center}\n.hh_content_footer .item_top{width:100%;height:118px;}\n.hh_content_footer .item_bottom {width:100%;float: right;}\n.hh_content_footer .item_bottom .item_bottom_left{float:left;margin-left: 27px;}\n.hh_content_footer .item_bottom .item_bottom_left a{float:left;text-align: center;padding: 7px 20px;display:block;margin-right:20px;color:#fff;font-weight:600;border-radius: 4px;position: relative;top:-5px;}\n.hh_content_footer .item_bottom .item_bottom_right{float:right;font-weight:600;color:#666;margin-right: 44px;}\n.hh_content_footer .item_bottom:before{width:100%;height:1px;background: #e6f0ff;display:block;margin-bottom: 20px;}\n.hh_content_footer .hh_button_jianbian01{background:linear-gradient(to left,#70a4fe,#4583ec)}\n.hh_content_footer .hh_button_jianbian02{background:linear-gradient(to left,#fe9369,#f7516c)}\n.hh_content_footer .hh_button_jianbian03{background:linear-gradient(to left,#c867ff,#8a92fb)}\n.hh_content_footer .hh_button_jianbian01:hover{background:linear-gradient(to left,#4583ec,#70a4fe)}\n.hh_content_footer .hh_button_jianbian02:hover{background:linear-gradient(to left,#f7516c,#fe9369)}\n.hh_content_footer .hh_button_jianbian03:hover{background:linear-gradient(to left,#8a92fb,#c867ff)}\n@media (max-width:767px){\n .hh_content_footer{height:360px;}\n .hh_content_footer .item_top_right{float: none;position: relative;top: -23px;}\n .hh_content_footer .item_bottom{margin-top:30px}\n .hh_content_footer .item_bottom .item_bottom_right{float:none;margin-top: 61px;text-align: center;}\n}\n.hh_qqqun a img{position: relative;top: 7px;right: 2px;}\n<\/style>\n\n \u00a0 \u00a0 \u00a0 \u00a0<div style=\"text-align: center;\" class=\"hh_wenzhangjieshu\"><img src=\"\u56fe\u7247URL\"\/><\/div>\n <div class=\"hh_content_footer\">\n <div class=\"item_top\">\n <div class=\"item_top_left\">\n \u00a0 \u00a0 \u00a0 \u00a0<h3>\u3010Npcink\u3011\u6e29\u99a8\u63d0\u9192\uff1a<\/h3>\n <p>\u672c\u7ad9\u6240\u6709\u6587\u7ae0\u90fd\u53ef\u4ee5\u8fdb\u884c\u63d0\u95ee\uff0c\u6709\u95ee\u5fc5\u7b54\uff0c\u6b22\u8fce\u9a9a\u6270\uff01<\/p>\n <p>\u5982\u679c\u60a8\u559c\u6b22\u6211\u4eec\uff0c\u8bf7\u6536\u85cf\u672c\u7ad9\uff0c\u60a8\u5c06\u5f97\u5230\u66f4\u597d\u7684\u670d\u52a1\u3002 \u5982\u6709\u4fb5\u6743\u8bf7\u90ae\u4ef6\u4e0e\u6211\u4eec\u8054\u7cfb\u5904\u7406\u3002 <\/p>\n <\/div>\n <div class=\"item_top_right\"><div class=\"hh_qqqun\">\n <br>\n \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<img src=\"\u56fe\u7247URL\">\n <!-- <span class=\"spanQ1 spanQ3\">QQ\u4ea4\u6d41\u7fa4<\/span>\n <br> \n <span class=\"spanQ1 spanQ2\">QQ\u4ea4\u6d41\u7fa4<\/span> -->\n <\/div><\/div>\n <\/div>\n <div class=\"item_bottom\">\n <div class=\"item_bottom_left\">\n <a href=\"\/bubble\" class=\"hh_button_jianbian01\" target=\"_blank\">\u6295\u8bc9\u5efa\u8bae<\/a>\n <a href=\"\/vips\" class=\"hh_button_jianbian02\" target=\"_blank\">\u8d2d\u4e70\u4f1a\u5458<\/a>\n <a href=\"\/shop\" class=\"hh_button_jianbian03\" target=\"_blank\">\u670d\u52a1\u5546\u57ce<\/a>\n <\/div>\n <div class=\"item_bottom_right\">\n \u00a9 \u8f6c\u8f7d\u8bf7\u8054\u7cfb\u4f5c\u8005\uff0c\u79c1\u81ea\u8f6c\u8f7d\u89c6\u4e3a\u4fb5\u6743\uff01\n <\/div>\n <\/div>\n <\/div>';\n }\n return $content;\n}\nadd_filter('the_content', 'add_after_post_content');<\/code><\/pre>\n\n\n\n
\u6211\u6709\u610f\u89c1\uff1a<\/h2>\n\n\n\n
style.css<\/code>\u6587\u4ef6\u7684\u5e95\u90e8\u6dfb\u52a0\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n\n\n\n
\/*\u79fb\u52a8\u7aef\u9690\u85cf\u90e8\u4efd\u7248\u6743\u58f0\u660e*\/\n@media (max-width: 767px){\n\t.hh_content_footer .item_bottom {display:none;}\n .hh_content_footer .item_top_right {display:none;}\n\t.hh_content_footer {\n height: 2px!important;\n}\n\t.hh_wenzhangjieshu {display:none;}\n}<\/code><\/pre>\n\n\n\n
style.css<\/code>\u6587\u4ef6\u7684\u5e95\u90e8\u6dfb\u52a0\u4ee5\u4e0b\u4ee3\u7801 \uff1a<\/p>\n\n\n\n
\/*\u79fb\u52a8\u7aef\u9690\u85cf\u7248\u6743\u58f0\u660e*\/\n@media (max-width: 767px){\n\t.hh_wenzhangjieshu {display:none;}\n\t.hh_content_footer{display:none;}\n}<\/code><\/pre>\n\n\n\n