{"id":2498,"date":"2025-06-11T03:10:18","date_gmt":"2025-06-10T19:10:18","guid":{"rendered":"https:\/\/www.zhaozhao123.cn\/wpcms\/wpdt\/2498.html"},"modified":"2025-06-11T03:10:18","modified_gmt":"2025-06-10T19:10:18","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8-wordpress-%e5%8d%9a%e5%ae%a2%e6%96%87%e7%ab%a0%e4%b8%ad%e9%9a%90%e8%97%8f-pinterest-%e5%9b%be%e7%89%87","status":"publish","type":"post","link":"https:\/\/www.zhaozhao123.cn\/wpcms\/post\/2498.html","title":{"rendered":"\u5982\u4f55\u5728 WordPress \u535a\u5ba2\u6587\u7ae0\u4e2d\u9690\u85cf Pinterest \u56fe\u7247"},"content":{"rendered":"<div class=\"wp-block-columns p-0 border is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\r\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\r\n<div class=\"wp-block-columns px-4 py-3 border-bottom has-background is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\" style=\"background:linear-gradient(243deg,rgb(238,238,238) 0%,rgba(58,166,242,0.15) 100%)\">\r\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\r\n<div class=\"wp-block-group is-nowrap is-layout-flex wp-container-core-group-is-layout-6c531013 wp-block-group-is-layout-flex\">\r\n<figure class=\"wp-block-image size-thumbnail is-resized is-style-rounded is-style-rounded--1\"><img decoding=\"async\" src=\"https:\/\/www.zhaozhao123.cn\/myitems\/images\/sites16\/2025\/06\/dyA-1-400x300.jpg\" alt=\"Bug&#32534;&#35793;&#29422;\" class=\"wp-image-1842\" style=\"object-fit:cover;width:30px;height:30px\"><\/figure>\r\n\r\n\r\n\r\n<p class=\"my-0\">Bug&#32534;&#35793;&#29422;<\/p>\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n\r\n\r\n\r\n<div class=\"wp-block-columns px-xl-5 px-4 py-xl-4 py-3 is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\r\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\r\n<p>&#22312;WordPress&#21338;&#23458;&#25991;&#31456;&#20013;&#38544;&#34255;Pinterest&#22270;&#29255;&#65292;&#21487;&#20197;&#21033;&#29992;HTML&#21644;CSS&#26469;&#23454;&#29616;&#36825;&#19968;&#21151;&#33021;&#12290;&#19979;&#38754;&#25105;&#23558;&#35814;&#32454;&#35828;&#26126;&#36825;&#20010;&#36807;&#31243;&#65292;&#21253;&#25324;&#21019;&#24314;&#19968;&#20010;&#31034;&#20363;&#20195;&#30721;&#12289;&#22914;&#20309;&#25554;&#20837;&#21040;&#25991;&#31456;&#20013;&#20197;&#21450;&#39044;&#26399;&#30340;&#25928;&#26524;&#12290;<\/p>\n<h3>&#27493;&#39588;1&#65306;&#23433;&#35013;&#21644;&#28608;&#27963;&#25554;&#20214;<\/h3>\n<p>&#39318;&#20808;&#65292;&#30830;&#20445;&#24744;&#30340;WordPress&#32593;&#31449;&#24050;&#32463;&#23433;&#35013;&#24182;&#28608;&#27963;&#20102;&ldquo;Pin It&rdquo;&#25554;&#20214;&#65288;&#22914;&#26524;&#20320;&#36824;&#27809;&#26377;&#30340;&#35805;&#65289;&#12290;&#36825;&#23558;&#24110;&#21161;&#25105;&#20204;&#26356;&#22909;&#22320;&#25511;&#21046;Pinterest&#30340;&#23884;&#20837;&#26041;&#24335;&#12290;<\/p>\n<h3>&#27493;&#39588;2&#65306;&#28155;&#21152;&#33258;&#23450;&#20041;CSS<\/h3>\n<p>&#20026;&#20102;&#38544;&#34255;Pinterest&#22270;&#29255;&#65292;&#25105;&#20204;&#38656;&#35201;&#22312;WordPress&#21518;&#21488;&#30340;&#22806;&#35266;&#35774;&#32622;&#20013;&#28155;&#21152;&#19968;&#20123;CSS&#26679;&#24335;&#12290;&#20855;&#20307;&#25805;&#20316;&#22914;&#19979;&#65306;<\/p>\n<h4>&#30331;&#24405;WordPress&#21518;&#21488;<\/h4>\n<ul>\n<li>&#25171;&#24320;&#27983;&#35272;&#22120;&#65292;&#36755;&#20837;&#20320;&#30340;WordPress&#32593;&#22336;&#12290;<\/li>\n<li>&#36755;&#20837;&#29992;&#25143;&#21517;&#21644;&#23494;&#30721;&#30331;&#24405;&#12290;<\/li>\n<li>&#28857;&#20987;&#21491;&#19978;&#35282;&#30340;&#8221;&#22806;&#35266;&#8221;&#33756;&#21333;&#36873;&#39033;&#12290;<\/li>\n<\/ul>\n<h4>&#28155;&#21152;&#33258;&#23450;&#20041;CSS<\/h4>\n<ul>\n<li>&#22312;&#24038;&#20391;&#33756;&#21333;&#20013;&#36873;&#25321;&#8221;&#32534;&#36753;&#22120;&#8221;&#65288;Editor&#65289;&#12290;<\/li>\n<li>&#20351;&#29992;HTML&#26631;&#31614;&#21019;&#24314;&#19968;&#20010;&#26032;&#30340;&#31867;&#21517;&#25110;ID&#26469;&#26631;&#35782;Pinterest&#22270;&#29255;&#20803;&#32032;&#12290;<\/li>\n<\/ul>\n<pre><code class=\"language-html\">&lt;style&gt;\n    .no-pinterest img {\n        display: none;\n    }\n&lt;\/style&gt;<\/code><\/pre>\n<h4>&#25554;&#20837;CSS&#20195;&#30721;<\/h4>\n<ul>\n<li>&#23558;&#19978;&#36848;&#20195;&#30721;&#31896;&#36148;&#21040;&#8221;&#38468;&#21152;CSS&#8221;&#21306;&#22495;&#12290;<\/li>\n<li>&#20445;&#23384;&#26356;&#25913;&#12290;<\/li>\n<\/ul>\n<h3>&#27493;&#39588;3&#65306;&#27979;&#35797;&#25991;&#31456;<\/h3>\n<p>&#29616;&#22312;&#65292;&#24744;&#21487;&#20197;&#22312;&#25776;&#20889;&#25110;&#32534;&#36753;&#26032;&#25991;&#31456;&#26102;&#30475;&#21040;&#26032;&#30340;CSS&#26679;&#24335;&#12290;&#28857;&#20987;&#39029;&#38754;&#39030;&#37096;&#30340;&ldquo;&#39044;&#35272;&rdquo;&#25353;&#38062;&#65288;&#36890;&#24120;&#26159;&#26174;&#31034;&#20026;&#23567;&#30524;&#30555;&#22270;&#26631;&#65289;&#65292;&#28982;&#21518;&#28378;&#21160;&#21040;&#24213;&#37096;&#26597;&#30475;&#25991;&#31456;&#30340;&#24067;&#23616;&#21464;&#21270;&#12290;<\/p>\n<h3>&#31034;&#20363;&#20195;&#30721;&#21450;&#25928;&#26524;<\/h3>\n<p>&#20551;&#35774;&#25105;&#20204;&#22312;&#25991;&#31456;&#30340;&#20027;&#20307;&#37096;&#20998;&#26377;&#19968;&#20010;Pinned&#30340;&#22270;&#29255;&#38142;&#25509;&#65292;&#25105;&#20204;&#24076;&#26395;&#23427;&#34987;&#38544;&#34255;&#12290;&#20197;&#19979;&#26159;&#19968;&#20010;&#20855;&#20307;&#30340;&#31034;&#20363;&#65306;<\/p>\n<pre><code class=\"language-html\">&lt;article class=\"post\"&gt;\n    &lt;h1&gt;Title of the Post&lt;\/h1&gt;\n    &lt;div class=\"content\"&gt;\n        &lt;!-- &#36825;&#37324;&#26159;&#25991;&#31456;&#30340;&#20869;&#23481; --&gt;\n        &lt;img src=\"https:\/\/example.com\/pin-image.jpg\" alt=\"A beautiful image from example.com\"&gt;\n        &lt;a href=\"#\" class=\"pin-it-button\"&gt;Pin it&lt;\/a&gt;\n    &lt;\/div&gt;\n&lt;\/article&gt;\n\n&lt;style&gt;\n    .no-pinterest img {\n        display: none;\n    }\n&lt;\/style&gt;<\/code><\/pre>\n<p>&#22312;&#36825;&#20010;&#20363;&#23376;&#20013;&#65292;&#24403;&#29992;&#25143;&#28857;&#20987;&#39029;&#38754;&#19978;&#30340;&ldquo;Pin it&rdquo;&#38142;&#25509;&#26102;&#65292;&#20250;&#35302;&#21457;Pinterest&#30340;&#20998;&#20139;&#21151;&#33021;&#65292;&#20294;&#22270;&#29255;&#19981;&#20250;&#20986;&#29616;&#22312;&#25991;&#31456;&#20013;&#65292;&#32780;&#26159;&#20316;&#20026;&#22806;&#37096;&#38142;&#25509;&#26174;&#31034;&#12290;<\/p>\n<h3>&#24635;&#32467;<\/h3>\n<p>&#36890;&#36807;&#20197;&#19978;&#27493;&#39588;&#65292;&#24744;&#21487;&#20197;&#25104;&#21151;&#22320;&#22312;WordPress&#21338;&#23458;&#25991;&#31456;&#20013;&#38544;&#34255;Pinterest&#22270;&#29255;&#12290;&#36825;&#31181;&#26041;&#27861;&#19981;&#20165;&#32654;&#35266;&#65292;&#36824;&#33021;&#25552;&#39640;&#29992;&#25143;&#20307;&#39564;&#65292;&#20351;&#35835;&#32773;&#19987;&#27880;&#20110;&#25991;&#31456;&#26412;&#36523;&#30340;&#20449;&#24687;&#12290;<\/p>\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<\/div><div class=\"wp-block-columns p-0 border is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\r\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\r\n<div class=\"wp-block-columns px-4 py-3 border-bottom has-background is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\" style=\"background:linear-gradient(243deg,rgb(238,238,238) 0%,rgba(58,166,242,0.15) 100%)\">\r\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\r\n<div class=\"wp-block-group is-nowrap is-layout-flex wp-container-core-group-is-layout-6c531013 wp-block-group-is-layout-flex\">\r\n<figure class=\"wp-block-image size-thumbnail is-resized is-style-rounded is-style-rounded--2\"><img decoding=\"async\" src=\"https:\/\/www.zhaozhao123.cn\/myitems\/images\/sites16\/2025\/06\/zp-400x300.jpg\" alt=\"&#40657;&#26495;&#21069;&#30340;Bug&#35821;&#27861;&#35762;&#24072;\" class=\"wp-image-1849\" style=\"object-fit:cover;width:30px;height:30px\"><\/figure>\r\n\r\n\r\n\r\n<p class=\"my-0\">&#40657;&#26495;&#21069;&#30340;Bug&#35821;&#27861;&#35762;&#24072;<\/p>\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n\r\n\r\n\r\n<div class=\"wp-block-columns px-xl-5 px-4 py-xl-4 py-3 is-layout-flex wp-container-core-columns-is-layout-28f84493 wp-block-columns-is-layout-flex\">\r\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\r\n<p>&#35201;&#38544;&#34255;WordPress&#21338;&#23458;&#25991;&#31456;&#20013;&#30340;Pinterest&#22270;&#29255;&#65292;&#24744;&#21487;&#20197;&#20351;&#29992;&#20197;&#19979;&#27493;&#39588;&#65306;<\/p>\n<ol>\n<li>&#20026;&#24744;&#30340;&#20027;&#39064;&#35774;&#32622;&#19968;&#20010;&#33258;&#23450;&#20041;&#26679;&#24335;&#34920;&#65288;CSS&#65289;&#25991;&#20214;&#12290;<\/li>\n<li>&#22312;WordPress&#20027;&#39064;&#20013;&#28155;&#21152;&#33258;&#23450;&#20041;CSS&#31867;&#12290;<\/li>\n<li>&#20351;&#29992;CSS&#36873;&#25321;&#22120;&#38544;&#34255;Pinterest&#22270;&#29255;&#12290;<\/li>\n<\/ol>\n<p>&#20197;&#19979;&#26159;&#35814;&#32454;&#30340;&#27493;&#39588;&#21644;&#30456;&#24212;&#30340;&#31034;&#20363;&#20195;&#30721;&#65306;<\/p>\n<h3>&#27493;&#39588; 1: &#35774;&#32622;&#33258;&#23450;&#20041;&#26679;&#24335;&#34920;<\/h3>\n<p>&#39318;&#20808;&#65292;&#22312;&#24744;&#30340;WordPress&#20027;&#39064;&#30340;<code>style.css<\/code>&#25991;&#20214;&#20013;&#21019;&#24314;&#19968;&#20010;&#26032;&#30340;&#26679;&#24335;&#35268;&#21017;&#26469;&#38544;&#34255;Pinterest&#22270;&#29255;&#12290;<\/p>\n<h4>&#31034;&#20363;&#20195;&#30721;&#65306;<\/h4>\n<pre><code class=\"language-css\">\/* &#38544;&#34255;Pinterest&#22270;&#29255; *\/\n@media (min-width: 992px) {\n  .post img {\n    display: none;\n  }\n}<\/code><\/pre>\n<h3>&#27493;&#39588; 2: &#28155;&#21152;&#33258;&#23450;&#20041;CSS&#31867;<\/h3>\n<p>&#25509;&#19979;&#26469;&#65292;&#24744;&#38656;&#35201;&#22312;WordPress&#30340;&#20027;&#39064;&#24067;&#23616;&#25991;&#20214;&#20013;&#21019;&#24314;&#19968;&#20010;&#33258;&#23450;&#20041;CSS&#31867;&#65292;&#20363;&#22914;<code>.no-pinterest-image<\/code>&#12290;<\/p>\n<h4>&#31034;&#20363;&#20195;&#30721;&#65306;<\/h4>\n<pre><code class=\"language-html\">&lt;style&gt;\n.no-pinterest-image {\n  display: none !important; \/* &#25110;&#32773;&#21487;&#20197;&#20351;&#29992;!important&#26631;&#31614; *\/\n}\n&lt;\/style&gt;<\/code><\/pre>\n<h3>&#27493;&#39588; 3: &#20351;&#29992;CSS&#36873;&#25321;&#22120;&#38544;&#34255;Pinterest&#22270;&#29255;<\/h3>\n<p>&#29616;&#22312;&#65292;&#24744;&#21487;&#20197;&#22312;WordPress&#30340;&#25991;&#31456;&#39029;&#38754;&#20013;&#20351;&#29992;<code>.no-pinterest-image<\/code>&#31867;&#26469;&#38544;&#34255;&#29305;&#23450;&#30340;Pinterest&#22270;&#29255;&#12290;<\/p>\n<h4>&#31034;&#20363;&#20195;&#30721;&#65306;<\/h4>\n<pre><code class=\"language-php\">&lt;?php if ($post-&gt;post_type == 'blog') { ?&gt;\n&lt;div class=\"entry-content\"&gt;\n  &lt;?php the_content(); ?&gt;\n  &lt;div class=\"image-container\"&gt;\n    &lt;!-- &#20551;&#35774;&#36825;&#37324;&#26377;&#19968;&#20123;&#23884;&#22871;&#30340;HTML&#20195;&#30721; --&gt;\n  &lt;\/div&gt;\n&lt;\/div&gt;\n\n&lt;!-- &#25353;&#29031;&#38656;&#35201;&#65292;&#25554;&#20837;&#19968;&#20123;&#20266;&#20803;&#32032;&#25110;&#20266;&#31867;&#26469;&#38544;&#34255;&#36825;&#20123;&#23884;&#22871;&#30340;HTML&#20195;&#30721; --&gt;\n&lt;div class=\"image-container no-pinterest-image\" style=\"display:none;\"&gt;\n  &lt;!-- &#36825;&#37324;&#23558;&#26174;&#31034;&#26080;&#25928;&#26524;&#30340;&#22270;&#20687; --&gt;\n&lt;\/div&gt;\n&lt;?php } ?&gt;<\/code><\/pre>\n<p>&#36890;&#36807;&#20197;&#19978;&#27493;&#39588;&#65292;&#24744;&#24050;&#32463;&#25104;&#21151;&#22320;&#22312;WordPress&#21338;&#23458;&#25991;&#31456;&#20013;&#38544;&#34255;&#20102;&#21253;&#21547;Pinterest&#22270;&#29255;&#30340;&#20869;&#23481;&#12290;&#36825;&#31181;&#26041;&#27861;&#31616;&#21333;&#26131;&#34892;&#65292;&#36866;&#29992;&#20110;&#22823;&#22810;&#25968;WordPress&#20027;&#39064;&#12290;&#22914;&#26524;&#24744;&#24076;&#26395;&#36827;&#19968;&#27493;&#23450;&#21046;&#36825;&#20010;&#35299;&#20915;&#26041;&#26696;&#65292;&#35831;&#21442;&#32771;WordPress&#23448;&#26041;&#25991;&#26723;&#20197;&#33719;&#21462;&#26356;&#22810;&#20851;&#20110;CSS&#36873;&#25321;&#22120;&#30340;&#20449;&#24687;&#12290;<\/p>\r\n<\/div>\r\n<\/div>\r\n<\/div>\r\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Bug&#32534;&#35793;&#29422; &#22312;WordPress&#21338;&#23458;&#25991;&#31456;&#20013;&#38544;&#34255;Pinterest&#22270;&#29255;&#65292;&#21487;&#20197;&#21033;&#038;#..<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[59],"tuisongtax":[],"class_list":["post-2498","post","type-post","status-publish","format-standard","hentry","category-wpdt","tag-pzjc"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.zhaozhao123.cn\/wpcms\/wp-json\/wp\/v2\/posts\/2498","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zhaozhao123.cn\/wpcms\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zhaozhao123.cn\/wpcms\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zhaozhao123.cn\/wpcms\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zhaozhao123.cn\/wpcms\/wp-json\/wp\/v2\/comments?post=2498"}],"version-history":[{"count":0,"href":"https:\/\/www.zhaozhao123.cn\/wpcms\/wp-json\/wp\/v2\/posts\/2498\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zhaozhao123.cn\/wpcms\/wp-json\/wp\/v2\/media?parent=2498"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhaozhao123.cn\/wpcms\/wp-json\/wp\/v2\/categories?post=2498"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhaozhao123.cn\/wpcms\/wp-json\/wp\/v2\/tags?post=2498"},{"taxonomy":"tuisongtax","embeddable":true,"href":"https:\/\/www.zhaozhao123.cn\/wpcms\/wp-json\/wp\/v2\/tuisongtax?post=2498"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}