{"id":15715,"date":"2020-04-30T17:05:15","date_gmt":"2020-04-30T09:05:15","guid":{"rendered":"https:\/\/www.npc.ink\/?p=15715"},"modified":"2021-04-27T20:36:50","modified_gmt":"2021-04-27T12:36:50","slug":"%e6%b8%90%e5%8f%98%e8%83%8c%e6%99%af%e7%89%88%e6%9d%83%e5%a3%b0%e6%98%8e%e5%8d%a1%e7%89%87-wordpress%e7%be%8e%e5%8c%96","status":"publish","type":"post","link":"https:\/\/www.npc.ink\/15715.html","title":{"rendered":"\u6e10\u53d8\u80cc\u666f\u7248\u6743\u58f0\u660e\u5361\u7247 - WordPress\u533a\u5757"},"content":{"rendered":"\n
\u6587\u7ae0\u5e95\u90e8\u7684\u7248\u6743\u58f0\u660e\u662f\u4e00\u4e2a\u6301\u4e45\u4e0d\u8870\u7684\u8bdd\u9898\uff0c\u8fd9\u6b21wordpress<\/strong>\u533a\u5757\u5206\u4eab\u7684\u6e10\u53d8\u80cc\u666f\u7248\u6743\u58f0\u660e\u5361\u7247\u53ef\u4ee5\u653e\u5728\u65e5\u5fd7\u9875\u5e95\u90e8\uff0c\u91cc\u9762\u8fd8\u6709\u51e0\u4e2a\u5feb\u6377\u94fe\u63a5\uff0c\u65b9\u4fbf\u60a8\u7684\u8bbf\u5ba2\u5feb\u901f\u627e\u5230\u81ea\u5df1\u5e38\u7528\u7684\u94fe\u63a5\u3002<\/p>\n\n\n\n \u65b9\u6848\u4e00\u3001<\/strong><\/p>\n\n\n\n \u5c06\u4e0b\u65b9\u4ee3\u7801\u590d\u5236\u5230\u60a8\u7684\u4e3b\u9898\u6839\u76ee\u5f55\u4e0b\u7684 \u65b9\u6848\u4e8c\u3001<\/strong><\/p>\n\n\n\n \u70b9\u51fb\u4e0b\u65b9\u7684Demo\u6309\u94ae\uff0c\u53f3\u51fb\u9f20\u6807\u67e5\u770b\u6e90\u4ee3\u7801\uff0c\u6839\u636e\u4ee3\u7801\u6ce8\u91ca\u590d\u5236\u4ee3\u7801\u5230\u81ea\u5df1\u9700\u8981\u7684\u5730\u65b9\uff0c\u4f8b\u5982\u53e4\u767b\u5821\u7684HTML\u533a\u5757\u6216\u662f\u5c0f\u5de5\u5177\u91cc\u9762\u7684\u201c\u81ea\u5b9a\u4e49HTML\u201d\uff0c\u53e6\u5916\uff0c\u8bb0\u5f97\u770b\u4ee3\u7801\u6ce8\u91ca\u54e6(\u3002\u30fb\u2200\u30fb)\u30ce <\/p>\n\n\n\n \u89c6\u9891\u6559\u7a0b<\/a><\/strong><\/p>\n\n\n\n\u5361\u7247\u957f\u8fd9\u6837\uff1a<\/h2>\n\n\n\n
<\/figure><\/div>\n\n\n\n
\u5982\u4f55\u4f7f\u7528\uff1f<\/h2>\n\n\n\n
functions.php<\/code>\u7684
<?php<\/code>\u4e0b\u9762\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) {\nif(!is_feed() && !is_home() && is_singular() && is_main_query()) {\n$content .= '\n<style type=\"text\/css\">\n .content-copyright {\n color: #fff !important;\n display: flex;\n justify-content: center;\n flex-flow: column;\n margin-top: 20px;\n padding: 20px;\n border-radius: 6px;\n position: relative;\n \/*background-image: linear-gradient(-90deg, #29bdd9 0%, #276ace 100%);*\/\n background-image: linear-gradient(120deg, #48c6ef 0%, #6f86d6 100%);\n box-shadow: 0 0 0.0625rem 0 rgba(8, 11, 14, .06), 0 0.1875rem 0.1875rem -0.0625rem rgba(8, 11, 14, .1), 0 0 0.1875rem 0 rgba(8, 11, 14, .02);\n text-align: center;\n font-size: 14px !important;\n margin-bottom: 0 !important;\n }\n\n .content-copyright a {\n color: #fff !important;\n border-bottom: 0px !important;\n }\n\n .content-copyright p {\n font-size: 14px !important;\n margin: .5em 0;\n }\n\n @media screen and (max-width: 768px) {\n .content-copyright {\n margin: 12px -12px 0;\n }\n }\n<\/style>\n<div class=\"content-copyright\">\n <p>\u6709\u4e9b\u8d44\u6e90\u6709\u65f6\u6548\u6027,\u4e14\u7528\u4e14\u73cd\u60dc\u3002<\/p>\n <p>\u6587\u7ae0\u5747\u4e3a<a href=\"#\">Npcink<\/a>\u6574\u7406\u5206\u4eab,\u4ec5\u4f5c\u4e2a\u4eba\u5b66\u4e60\u4f7f\u7528,\u8f6c\u8f7d\u8bf7\u6ce8\u660e\u94fe\u63a5,\u8c22\u8c22\uff01<\/p>\n <p>\n <a href=\"#\" target=\"_blank\" rel=\"noopener noreferrer\">N<\/a>| <a\n href=\"#\" target=\"_blank\" rel=\"noopener noreferrer\">N<\/a>| <a\n href=\"#\" target=\"_blank\" rel=\"noopener noreferrer\">N<\/a>| <a\n href=\"#\" target=\"_blank\" rel=\"noopener noreferrer\">N<\/a>\n <\/p>\n<\/div>\n';\n}\nreturn $content;\n}\nadd_filter('the_content', 'add_after_post_content');<\/code><\/pre>\n\n\n\n
\u66f4\u591a\uff1a<\/h2>\n\n\n