
{"id":187,"date":"2023-10-21T18:24:38","date_gmt":"2023-10-21T10:24:38","guid":{"rendered":"http:\/\/www.shangun.com\/wordpress\/news\/187.html"},"modified":"2023-10-21T18:24:38","modified_gmt":"2023-10-21T10:24:38","slug":"wordpresselementor%e5%a6%82%e4%bd%95%e6%b7%bb%e5%8a%a0%e8%87%aa%e5%ae%9a%e4%b9%89%e5%ad%97%e4%bd%93%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/www.shangun.com\/wordpress\/changshi\/187.html","title":{"rendered":"wordpressElementor\u5982\u4f55\u6dfb\u52a0\u81ea\u5b9a\u4e49\u5b57\u4f53\uff1f"},"content":{"rendered":"<p>\u8981\u5728WordPress\u7684Elementor\u9875\u9762\u5efa\u8bbe\u4e2d\u6dfb\u52a0\u81ea\u5b9a\u4e49\u5b57\u4f53\uff0c\u8bf7\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff1a<\/p>\n<p>\u51c6\u5907\u81ea\u5b9a\u4e49\u5b57\u4f53\u6587\u4ef6\uff1a<\/p>\n<ul>\n<p>\u9996\u5148\uff0c\u83b7\u53d6\u60a8\u60f3\u8981\u6dfb\u52a0\u7684\u81ea\u5b9a\u4e49\u5b57\u4f53\u6587\u4ef6\uff0c\u901a\u5e38\u5305\u62ec\u5b57\u4f53\u6587\u4ef6\uff08.ttf\uff0c.otf\u7b49\uff09\u548c\u5b57\u4f53\u6837\u5f0f\u6587\u4ef6\uff08.css\uff09\u3002<\/p>\n<p>\u8fd9\u4e9b\u6587\u4ef6\u53ef\u4ee5\u662f\u60a8\u81ea\u5df1\u521b\u5efa\u7684\uff0c\u4e5f\u53ef\u4ee5\u4ece\u5b57\u4f53\u63d0\u4f9b\u5546\u6216\u5176\u4ed6\u6765\u6e90\u83b7\u53d6\u3002<\/p>\n<\/ul>\n<p>\u5c06\u5b57\u4f53\u6587\u4ef6\u4e0a\u4f20\u81f3WordPress\uff1a<\/p>\n<ul>\n<p>\u767b\u5f55\u5230WordPress\u540e\u53f0\uff0c\u5bfc\u822a\u5230\u201c\u5a92\u4f53\u201d &gt; \u201c\u6dfb\u52a0\u65b0\u6587\u4ef6\u201d\u3002<\/p>\n<p>\u5c06\u60a8\u7684\u5b57\u4f53\u6587\u4ef6\u4e0a\u4f20\u81f3WordPress\u5a92\u4f53\u5e93\u3002<\/p>\n<\/ul>\n<p>\u52a0\u8f7d\u5b57\u4f53\u6837\u5f0f\u6587\u4ef6\uff1a<\/p>\n<ul>\n<p>\u521b\u5efa\u4e00\u4e2a\u65b0\u7684CSS\u6587\u4ef6\u6765\u52a0\u8f7d\u60a8\u7684\u5b57\u4f53\u6837\u5f0f\uff0c\u6216\u5728\u73b0\u6709\u7684CSS\u6587\u4ef6\u4e2d\u6dfb\u52a0\u4ee3\u7801\u3002<\/p>\n<p>\u5728CSS\u6587\u4ef6\u4e2d\uff0c\u4f7f\u7528@font-face\u89c4\u5219\u6765\u5b9a\u4e49\u60a8\u7684\u81ea\u5b9a\u4e49\u5b57\u4f53\uff0c\u4f8b\u5982\uff1a<\/p>\n<pre><code class=\"language-css\"><div class=\"flex items-center justify-between px-4 py-1 bg-gray-800\"><span>css<\/span><button class=\"flex items-center ml-auto gap-2 copy-button\" data-copy-text=\"%40font-face%20%7B%0A%20%20%20%20font-family%3A%20'CustomFont'%3B%0A%20%20%20%20src%3A%20url('%E5%AD%97%E4%BD%93%E6%96%87%E4%BB%B6%E8%B7%AF%E5%BE%84%2Fcustom-font.ttf')%20format('truetype')%3B%0A%7D\"><svg stroke=\"currentColor\" fill=\"none\" stroke-width=\"2\" viewBox=\"0 0 24 24\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"h-4 w-4\" height=\"1em\" width=\"1em\" ><path d=\"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2\"><\/path><rect x=\"8\" y=\"2\" width=\"8\" height=\"4\" rx=\"1\" ry=\"1\"><\/rect><\/svg>Copy code<\/button><\/div><div class=\"h-full p-4 pb-0 overflow-auto hidden-scroll-bar\"><span class=\"hljs-keyword\">@font-face<\/span> {<\/p>\n<p>    <span class=\"hljs-attribute\">font-family<\/span>: <span class=\"hljs-string\">'CustomFont'<\/span>;<\/p>\n<p>    <span class=\"hljs-attribute\">src<\/span>: <span class=\"hljs-built_in\">url<\/span>(<span class=\"hljs-string\">'\u5b57\u4f53\u6587\u4ef6\u8def\u5f84\/custom-font.ttf'<\/span>) <span class=\"hljs-built_in\">format<\/span>(<span class=\"hljs-string\">'truetype'<\/span>);<\/p>\n<p>}<\/div><\/p>\n<p><\/code><\/pre>\n<\/p>\n<p>\u8bf7\u786e\u4fdd\u5c06\u201c\u5b57\u4f53\u6587\u4ef6\u8def\u5f84\u201d\u66ff\u6362\u4e3a\u60a8\u4e0a\u4f20\u5b57\u4f53\u6587\u4ef6\u7684\u5b9e\u9645\u8def\u5f84\u3002<\/p>\n<\/ul>\n<p>\u5c06\u5b57\u4f53\u6837\u5f0f\u6587\u4ef6\u6dfb\u52a0\u5230\u4e3b\u9898\uff1a<\/p>\n<ul>\n<p>\u5728WordPress\u540e\u53f0\uff0c\u5bfc\u822a\u5230\u201c\u5916\u89c2\u201d &gt; \u201c\u7f16\u8f91\u5668\u201d\u3002<\/p>\n<p>\u5728\u53f3\u4fa7\u7684\u201c\u4e3b\u9898\u6587\u4ef6\u201d\u5217\u8868\u4e2d\uff0c\u9009\u62e9\u9002\u5f53\u7684\u4e3b\u9898\u6587\u4ef6\uff08\u4f8b\u5982\uff0cstyle.css\uff09\u3002<\/p>\n<p>\u5c06\u60a8\u7684\u5b57\u4f53\u6837\u5f0f\u4ee3\u7801\u6dfb\u52a0\u5230\u6240\u9009\u6587\u4ef6\u7684\u672b\u5c3e\u3002<\/p>\n<p>\u70b9\u51fb\u201c\u66f4\u65b0\u6587\u4ef6\u201d\u4ee5\u4fdd\u5b58\u66f4\u6539\u3002<\/p>\n<\/ul>\n<p>\u5728Elementor\u4e2d\u4f7f\u7528\u81ea\u5b9a\u4e49\u5b57\u4f53\uff1a<\/p>\n<ul>\n<p>\u5728Elementor\u9875\u9762\u7f16\u8f91\u5668\u4e2d\uff0c\u9009\u62e9\u8981\u5e94\u7528\u81ea\u5b9a\u4e49\u5b57\u4f53\u7684\u5143\u7d20\uff08\u4f8b\u5982\u6807\u9898\u3001\u6587\u672c\uff09\u3002<\/p>\n<p>\u5728\u7f16\u8f91\u5668\u5de6\u4fa7\u7684\u201c\u6837\u5f0f\u201d\u9009\u9879\u5361\u4e2d\uff0c\u5c55\u5f00\u201c\u5b57\u4f53\u201d\u90e8\u5206\u3002<\/p>\n<p>\u5728\u201c\u5b57\u4f53\u7cfb\u5217\u201d\uff08Font Family\uff09\u4e0b\u62c9\u83dc\u5355\u4e2d\uff0c\u60a8\u5e94\u8be5\u80fd\u591f\u770b\u5230\u60a8\u6dfb\u52a0\u7684\u81ea\u5b9a\u4e49\u5b57\u4f53\u540d\u79f0\uff0c\u9009\u62e9\u5b83\u5373\u53ef\u3002<\/p>\n<p>\u901a\u8fc7\u6309\u7167\u4e0a\u8ff0\u6b65\u9aa4\uff0c\u60a8\u5e94\u8be5\u80fd\u591f\u6210\u529f\u5730\u5728Elementor\u5efa\u8bbe\u7684WordPress\u9875\u9762\u4e2d\u6dfb\u52a0\u548c\u4f7f\u7528\u81ea\u5b9a\u4e49\u5b57\u4f53\u3002\u8bf7\u6ce8\u610f\uff0c\u8fd9\u4e9b\u6b65\u9aa4\u53ef\u80fd\u56e0\u4e3b\u9898\u6216\u4e0d\u540c\u7248\u672c\u7684Elementor\u800c\u6709\u6240\u4e0d\u540c\u3002<\/p>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u8981\u5728WordPress\u7684Elementor\u9875\u9762\u5efa\u8bbe\u4e2d\u6dfb\u52a0\u81ea\u5b9a\u4e49\u5b57\u4f53\uff0c\u8bf7\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff1a \u51c6\u5907\u81ea\u5b9a\u4e49\u5b57\u4f53\u6587\u4ef6\uff1a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3251],"tags":[],"class_list":["post-187","post","type-post","status-publish","format-standard","hentry","category-changshi"],"_links":{"self":[{"href":"http:\/\/www.shangun.com\/wordpress\/wp-json\/wp\/v2\/posts\/187","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.shangun.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.shangun.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.shangun.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.shangun.com\/wordpress\/wp-json\/wp\/v2\/comments?post=187"}],"version-history":[{"count":0,"href":"http:\/\/www.shangun.com\/wordpress\/wp-json\/wp\/v2\/posts\/187\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.shangun.com\/wordpress\/wp-json\/wp\/v2\/media?parent=187"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.shangun.com\/wordpress\/wp-json\/wp\/v2\/categories?post=187"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.shangun.com\/wordpress\/wp-json\/wp\/v2\/tags?post=187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}