<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>修改归档 - 猪 i0oo0</title>
	<atom:link href="https://i0oo0.com/tag/%E4%BF%AE%E6%94%B9/feed/" rel="self" type="application/rss+xml" />
	<link>https://i0oo0.com/tag/修改/</link>
	<description>爱猪</description>
	<lastBuildDate>Thu, 21 Feb 2019 21:52:55 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.5.5</generator>

<image>
	<url>https://i0oo0.com/wp-content/uploads/2019/02/favicon-2.png</url>
	<title>修改归档 - 猪 i0oo0</title>
	<link>https://i0oo0.com/tag/修改/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>WordPress修改删减评论区</title>
		<link>https://i0oo0.com/2019/02/21/wordpress%e4%bf%ae%e6%94%b9%e5%88%a0%e5%87%8f%e8%af%84%e8%ae%ba%e5%8c%ba/</link>
					<comments>https://i0oo0.com/2019/02/21/wordpress%e4%bf%ae%e6%94%b9%e5%88%a0%e5%87%8f%e8%af%84%e8%ae%ba%e5%8c%ba/#comments</comments>
		
		<dc:creator><![CDATA[大猪帆]]></dc:creator>
		<pubDate>Thu, 21 Feb 2019 21:52:55 +0000</pubDate>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[修改]]></category>
		<category><![CDATA[评论]]></category>
		<guid isPermaLink="false">https://i0oo0.com/?p=117</guid>

					<description><![CDATA[<p>				WordPress的评论区是默认的。还需要email、网站、姓名什么的。作为一个中文站。还是把评论框里的网站之类的框框删掉好了。电子邮件可以暂时保留，以后如果觉得没必要可以再删。另外WordPress默认给评论区的配字是“Leave a Reply” 这个也可以顺便改了。		</p>
<p><a href="https://i0oo0.com/2019/02/21/wordpress%e4%bf%ae%e6%94%b9%e5%88%a0%e5%87%8f%e8%af%84%e8%ae%ba%e5%8c%ba/">WordPress修改删减评论区</a>最先出现在<a href="https://i0oo0.com">猪 i0oo0</a>。</p>
]]></description>
										<content:encoded><![CDATA[<p>WordPress的评论区是默认的。还需要email、网站、姓名什么的。国外可能比较土吧，而且互联网发展较早，所以人人都有Email，有自己博客或者自己网站的人也非常多。我们中国则发展迅速，几年之间从无到有，所以大家现在基本都依赖微信 聊天、传文件。电子邮箱都不怎么用，拥有网站的人的比例就更少了。</p>
<p>所以作为一个中文站。还是把评论框里的网站之类的框框删掉好了。电子邮件可以暂时保留，以后如果觉得没必要可以再删。另外WordPress默认给评论区的配字是“Leave a Reply” 这个也可以顺便改了。</p>
<hr />
<h2><strong>具体步骤是这样滴：</strong></h2>
<hr />
<h3><span style="color: #000000;"><strong>先把Leave a Reply改了：</strong></span></h3>
<p><strong><span style="color: #993300;">首先登陆后台，打开“<span style="color: #0000ff;">外观&#8211;编辑</span>” 在右边找到 <span style="color: #0000ff;">评论(comments.php)</span> 点它</span></strong></p>
<figure id="attachment_128" aria-describedby="caption-attachment-128" style="width: 1872px" class="wp-caption alignnone"><img fetchpriority="high" decoding="async" class="wp-image-128 size-full" src="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-2.58.01-PM-2.png" alt="点开评论之后的截图" width="1872" height="962" srcset="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-2.58.01-PM-2.png 1872w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-2.58.01-PM-2-300x154.png 300w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-2.58.01-PM-2-768x395.png 768w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-2.58.01-PM-2-1024x526.png 1024w" sizes="(max-width: 1872px) 100vw, 1872px" /><figcaption id="caption-attachment-128" class="wp-caption-text">点开评论之后的截图</figcaption></figure>
<p><strong><span style="color: #993300;">鼠标在内容里点一下，然后摁<span style="color: #0000ff;">command+F (Windows是control+F)</span>进行搜索。</span></strong></p>
<figure id="attachment_129" aria-describedby="caption-attachment-129" style="width: 1224px" class="wp-caption alignnone"><img decoding="async" class="wp-image-129 size-full" src="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.02.16-PM-2.png" alt="小搜索框截图" width="1224" height="478" srcset="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.02.16-PM-2.png 1224w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.02.16-PM-2-300x117.png 300w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.02.16-PM-2-768x300.png 768w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.02.16-PM-2-1024x400.png 1024w" sizes="(max-width: 1224px) 100vw, 1224px" /><figcaption id="caption-attachment-129" class="wp-caption-text">小搜索框截图</figcaption></figure>
<p>在上面那个小搜索框输入“Leave a Reply”（也可能是别的，这个主要看你用的主题默认的是什么。在自己发的文章里下滑到评论区看看它是怎么写的）然后点回车。</p>
<figure id="attachment_130" aria-describedby="caption-attachment-130" style="width: 2080px" class="wp-caption alignnone"><img decoding="async" class="wp-image-130 size-full" src="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.04.03-PM-2.png" alt="找到了的截图" width="2080" height="1198" srcset="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.04.03-PM-2.png 2080w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.04.03-PM-2-300x173.png 300w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.04.03-PM-2-768x442.png 768w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.04.03-PM-2-1024x590.png 1024w" sizes="(max-width: 2080px) 100vw, 2080px" /><figcaption id="caption-attachment-130" class="wp-caption-text">找到了的截图</figcaption></figure>
<p><strong><span style="color: #993300;">可以看到我们找到了呢！改成你喜欢的文字吧。。</span></strong></p>
<hr />
<h3><strong><span style="color: #000000;">下面开始把评论里的网站框神马的关掉：</span></strong></h3>
<p><strong><span style="color: #993300;">还是在“外观&#8211;编辑”右边的条条找到 模板函数(functions.php) 点它，打开</span></strong></p>
<figure id="attachment_132" aria-describedby="caption-attachment-132" style="width: 1624px" class="wp-caption alignnone"><img loading="lazy" decoding="async" class="wp-image-132 size-full" src="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.10.26-PM-2.png" alt="打开function截图" width="1624" height="948" srcset="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.10.26-PM-2.png 1624w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.10.26-PM-2-300x175.png 300w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.10.26-PM-2-768x448.png 768w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.10.26-PM-2-1024x598.png 1024w" sizes="(max-width: 1624px) 100vw, 1624px" /><figcaption id="caption-attachment-132" class="wp-caption-text">打开function截图</figcaption></figure>
<p>在最后添加这段代码</p>
<pre class="brush: php; title: ; notranslate">
//删除url
add_filter('comment_form_default_fields', 'mytheme_remove_url');
 
function mytheme_remove_url($arg) {
    $arg&#x5B;'url'] = '';
    return $arg;
}
//删除url完毕 i0oo0
</pre>
<figure id="attachment_133" aria-describedby="caption-attachment-133" style="width: 1276px" class="wp-caption alignnone"><img loading="lazy" decoding="async" class="wp-image-133 size-full" src="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.26.49-PM-2.png" alt="删除url完毕" width="1276" height="340" srcset="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.26.49-PM-2.png 1276w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.26.49-PM-2-300x80.png 300w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.26.49-PM-2-768x205.png 768w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.26.49-PM-2-1024x273.png 1024w" sizes="(max-width: 1276px) 100vw, 1276px" /><figcaption id="caption-attachment-133" class="wp-caption-text">删除url截图</figcaption></figure>
<p>当然愿意加个QQ也是可以的，虽然大家现在也不怎么用QQ了，</p>
<pre class="brush: php; title: ; notranslate">
//增加个QQ
function my_fields($fields) {
	$fields&#x5B;'qq'] = '

' . '&lt;label for=&quot;qq&quot;&gt;'.__('QQ').'&lt;/label&gt; ' .
	'&lt;input id=&quot;qq&quot; name=&quot;qq&quot; type=&quot;text&quot; value=&quot;' . esc_attr( $commenter&#x5B;'comment_qq'] ) . '&quot; size=&quot;30&quot; /&gt;

';
	return $fields;
}
add_filter('comment_form_default_fields','my_fields');
//增加个QQ完毕 i0oo0
</pre>
<figure id="attachment_134" aria-describedby="caption-attachment-134" style="width: 2006px" class="wp-caption alignnone"><img loading="lazy" decoding="async" class="wp-image-134 size-full" src="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.34.20-PM-2.png" alt="增加QQ截图" width="2006" height="360" srcset="https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.34.20-PM-2.png 2006w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.34.20-PM-2-300x54.png 300w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.34.20-PM-2-768x138.png 768w, https://i0oo0.com/wp-content/uploads/2019/02/Screen-Shot-2019-02-21-at-3.34.20-PM-2-1024x184.png 1024w" sizes="(max-width: 2006px) 100vw, 2006px" /><figcaption id="caption-attachment-134" class="wp-caption-text">增加QQ截图</figcaption></figure>
<p><strong><span style="color: #993300;">这样网站的那个box就没了，QQ就可以有了。按照这个思路可以改其他东西。</span></strong></p>
<p><strong><span style="color: #993300;">姓名 邮箱 网址 分别是 author、email、url 修改key word就可以删除。</span></strong></p>
<p>&nbsp;</p>
<p>PS:我曾考虑要不要都删掉，就留一个评论框，匿名评论。但是这样想联系我的人也不能联系了。还是算了吧。</p>
<p>话说我们学校还给所有人都在学校服务器上开了10GB的个人空间，大家可以放自己的简历、资料，甚至如果愿意的话还可以放自己的网站。就是很棒！不过用的人不多，中国学生用这个功能的就更是凤毛麟角。等哪天我可以写一个教程，分享出来。</p>
<p>&nbsp;</p>
<p><a href="https://i0oo0.com/2019/02/21/wordpress%e4%bf%ae%e6%94%b9%e5%88%a0%e5%87%8f%e8%af%84%e8%ae%ba%e5%8c%ba/">WordPress修改删减评论区</a>最先出现在<a href="https://i0oo0.com">猪 i0oo0</a>。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://i0oo0.com/2019/02/21/wordpress%e4%bf%ae%e6%94%b9%e5%88%a0%e5%87%8f%e8%af%84%e8%ae%ba%e5%8c%ba/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
