<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									「プロフィール」の設定で項目をデフォルトで非表示にしたい - Cocoonテーマに関する質問				            </title>
            <link>https://wp-cocoon.com/community/cocoon-theme/%e3%80%8c%e3%83%97%e3%83%ad%e3%83%95%e3%82%a3%e3%83%bc%e3%83%ab%e3%80%8d%e3%81%ae%e8%a8%ad%e5%ae%9a%e3%81%a7%e9%a0%85%e7%9b%ae%e3%82%92%e3%83%87%e3%83%95%e3%82%a9%e3%83%ab%e3%83%88%e3%81%a7%e9%9d%9e/</link>
            <description>Cocoon ディスカッション掲示板</description>
            <language>ja</language>
            <lastBuildDate>Fri, 16 Oct 2026 21:12:27 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: 「プロフィール」の設定で項目をデフォルトで非表示にしたい</title>
                        <link>https://wp-cocoon.com/community/cocoon-theme/%e3%80%8c%e3%83%97%e3%83%ad%e3%83%95%e3%82%a3%e3%83%bc%e3%83%ab%e3%80%8d%e3%81%ae%e8%a8%ad%e5%ae%9a%e3%81%a7%e9%a0%85%e7%9b%ae%e3%82%92%e3%83%87%e3%83%95%e3%82%a9%e3%83%ab%e3%83%88%e3%81%a7%e9%9d%9e/#post-74250</link>
                        <pubDate>Mon, 02 Oct 2023 05:05:46 +0000</pubDate>
                        <description><![CDATA[矢継ぎ早にすみません。「セッション」を表示させようとすると全項目が表示されるようなので、セッションを非表示にさせる形で入力したら理想の形になりました。大変失礼しました。]]></description>
                        <content:encoded><![CDATA[<p>矢継ぎ早にすみません。<br />「セッション」を表示させようとすると全項目が表示されるようなので、セッションを非表示にさせる形で入力したら理想の形になりました。<br />大変失礼しました。</p>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/cocoon-theme/">Cocoonテーマに関する質問</category>                        <dc:creator>Orthi7nos</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/cocoon-theme/%e3%80%8c%e3%83%97%e3%83%ad%e3%83%95%e3%82%a3%e3%83%bc%e3%83%ab%e3%80%8d%e3%81%ae%e8%a8%ad%e5%ae%9a%e3%81%a7%e9%a0%85%e7%9b%ae%e3%82%92%e3%83%87%e3%83%95%e3%82%a9%e3%83%ab%e3%83%88%e3%81%a7%e9%9d%9e/#post-74250</guid>
                    </item>
				                    <item>
                        <title>RE: 「プロフィール」の設定で項目をデフォルトで非表示にしたい</title>
                        <link>https://wp-cocoon.com/community/cocoon-theme/%e3%80%8c%e3%83%97%e3%83%ad%e3%83%95%e3%82%a3%e3%83%bc%e3%83%ab%e3%80%8d%e3%81%ae%e8%a8%ad%e5%ae%9a%e3%81%a7%e9%a0%85%e7%9b%ae%e3%82%92%e3%83%87%e3%83%95%e3%82%a9%e3%83%ab%e3%83%88%e3%81%a7%e9%9d%9e/#post-74248</link>
                        <pubDate>Mon, 02 Oct 2023 05:01:29 +0000</pubDate>
                        <description><![CDATA[ご返信ありがとうございます。今試してみましたが、上記のコードをそのまま入力すると確かに非表示になりましたが、表示させたい項目を除外して入力すると変化がありません。自分では原因が分からないのですがお分かりでしょうか…？]]></description>
                        <content:encoded><![CDATA[<p>ご返信ありがとうございます。<br />今試してみましたが、上記のコードをそのまま入力すると確かに非表示になりましたが、表示させたい項目を除外して入力すると変化がありません。<br />自分では原因が分からないのですがお分かりでしょうか…？</p>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/cocoon-theme/">Cocoonテーマに関する質問</category>                        <dc:creator>Orthi7nos</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/cocoon-theme/%e3%80%8c%e3%83%97%e3%83%ad%e3%83%95%e3%82%a3%e3%83%bc%e3%83%ab%e3%80%8d%e3%81%ae%e8%a8%ad%e5%ae%9a%e3%81%a7%e9%a0%85%e7%9b%ae%e3%82%92%e3%83%87%e3%83%95%e3%82%a9%e3%83%ab%e3%83%88%e3%81%a7%e9%9d%9e/#post-74248</guid>
                    </item>
				                    <item>
                        <title>RE: 「プロフィール」の設定で項目をデフォルトで非表示にしたい</title>
                        <link>https://wp-cocoon.com/community/cocoon-theme/%e3%80%8c%e3%83%97%e3%83%ad%e3%83%95%e3%82%a3%e3%83%bc%e3%83%ab%e3%80%8d%e3%81%ae%e8%a8%ad%e5%ae%9a%e3%81%a7%e9%a0%85%e7%9b%ae%e3%82%92%e3%83%87%e3%83%95%e3%82%a9%e3%83%ab%e3%83%88%e3%81%a7%e9%9d%9e/#post-74246</link>
                        <pubDate>Mon, 02 Oct 2023 04:43:04 +0000</pubDate>
                        <description><![CDATA[●方法
functions.phpに追加します。管理者以外の時、不要な項目を非表示するCSSを追加し、非表示にします。
add_action(&#039;admin_print_styles&#039;, function() {
  //管理者権限じゃないとき
  if (!current_user_can(&#039;administrator&#039;)) {

    echo &#039;&lt;sty...]]></description>
                        <content:encoded><![CDATA[<p><strong>●方法</strong></p>
<p>functions.phpに追加します。<br />管理者以外の時、不要な項目を非表示するCSSを追加し、非表示にします。</p>
<pre contenteditable="false">add_action('admin_print_styles', function() {
  //管理者権限じゃないとき
  if (!current_user_can('administrator')) {

    echo '&lt;style&gt;
#your-profile .user-rich-editing-wrap,        /* ビジュアルエディター */
#your-profile .user-syntax-highlighting-wrap, /* シンタックスハイライト */
#your-profile .user-admin-color-wrap,         /* 管理画面の配色 */
#your-profile .user-comment-shortcuts-wrap,   /* キーボードショートカット */
#your-profile .show-admin-bar,                /* ツールバー */
#your-profile .user-language-wrap,            /* 言語 */
#your-profile .user-user-login-wrap,          /* ユーザー名 */
#your-profile .user-first-name-wrap,          /* 名 */
#your-profile .user-last-name-wrap,           /* 姓 */
#your-profile .user-nickname-wrap,            /* ニックネーム */
#your-profile .user-display-name-wrap,        /* ブログ上の表示名 */
#your-profile .user-email-wrap,               /* メールアドレス */
#your-profile .user-url-wrap,                 /* サイト */
#your-profile .user-twitter_url-wrap,         /* Twitter URL */
#your-profile .user-facebook_url-wrap,        /* Facebook URL */
#your-profile .user-hatebu_url-wrap,          /* はてブ URL */
#your-profile .user-instagram_url-wrap,       /* Instagram URL */
#your-profile .user-pinterest_url-wrap,       /* Pinterest URL */
#your-profile .user-youtube_url-wrap,         /* YouTube URL */
#your-profile .user-tiktok_url-wrap,          /* TikTok URL */
#your-profile .user-linkedin_url-wrap,        /* LinkedIn URL */
#your-profile .user-note_url-wrap,            /* note URL */
#your-profile .user-soundcloud_url-wrap,      /* SoundCloud URL */
#your-profile .user-flickr_url-wrap,          /* Flickr URL */
#your-profile .user-line_at_url-wrap,         /* LINE@ URL */
#your-profile .user-amazon_url-wrap,          /* Amazon URL */
#your-profile .user-twitch_url-wrap,          /* Twitch URL */
#your-profile .user-rakuten_room_url-wrap,    /* 楽天 ROOM URL */
#your-profile .user-slack_url-wrap,           /* Slack URL */
#your-profile .user-github_url-wrap,          /* GitHub URL */
#your-profile .user-codepen_url-wrap,         /* CodePen URL */
#your-profile .user-description-wrap,         /* プロフィール情報 */
#your-profile .user-profile-picture,          /* プロフィール写真 */
#your-profile .user-pass1-wrap,               /* 新しいパスワード */
#your-profile .user-sessions-wrap {           /* セッション */
  display: none;
}
&lt;/style&gt;';

  }
});</pre>
<hr />
<p><strong>●ご参考</strong></p>
<p><a href="https://wp-cocoon.com/community/postid/21537/" target="_blank" rel="noopener">https://wp-cocoon.com/community/postid/21537/</a></p>
<p><a href="https://techmemo.biz/wordpress/userprofile-fields-hide/" target="_blank" rel="noopener">https://techmemo.biz/wordpress/userprofile-fields-hide/</a></p>
<div id="wpfa-36179" class="wpforo-attached-file"><a class="wpforo-default-attachment" title="1.png" href="//wp-cocoon.com/wp-content/uploads/wpforo/default_attachments/1696221796-1.png" target="_blank" rel="noopener"><i class="fas fa-paperclip"></i> 1.png</a></div>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/cocoon-theme/">Cocoonテーマに関する質問</category>                        <dc:creator>大門未知子</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/cocoon-theme/%e3%80%8c%e3%83%97%e3%83%ad%e3%83%95%e3%82%a3%e3%83%bc%e3%83%ab%e3%80%8d%e3%81%ae%e8%a8%ad%e5%ae%9a%e3%81%a7%e9%a0%85%e7%9b%ae%e3%82%92%e3%83%87%e3%83%95%e3%82%a9%e3%83%ab%e3%83%88%e3%81%a7%e9%9d%9e/#post-74246</guid>
                    </item>
				                    <item>
                        <title>「プロフィール」の設定で項目をデフォルトで非表示にしたい</title>
                        <link>https://wp-cocoon.com/community/cocoon-theme/%e3%80%8c%e3%83%97%e3%83%ad%e3%83%95%e3%82%a3%e3%83%bc%e3%83%ab%e3%80%8d%e3%81%ae%e8%a8%ad%e5%ae%9a%e3%81%a7%e9%a0%85%e7%9b%ae%e3%82%92%e3%83%87%e3%83%95%e3%82%a9%e3%83%ab%e3%83%88%e3%81%a7%e9%9d%9e/#post-74245</link>
                        <pubDate>Mon, 02 Oct 2023 03:30:25 +0000</pubDate>
                        <description><![CDATA[お世話になっております。《サイト》や《ビジュアルリッチエディターを利用しない》《Facebook URL》などの設定項目自体を個別で非表示にしたいです。
というのも、自分以外も管理者として利用する(寄稿者)ので不要な要素をあらかじめ非表示にしておきたいので……4年前の投稿（Cocoonプロフィール設定の「SNSフォロー URL」入力項目を非表示にしたい）で、似た内容があります...]]></description>
                        <content:encoded><![CDATA[<p>お世話になっております。<br /><br />《サイト》や《ビジュアルリッチエディターを利用しない》《Facebook URL》などの設定項目自体を個別で非表示にしたいです。</p>
<p>というのも、自分以外も管理者として利用する(寄稿者)ので不要な要素をあらかじめ非表示にしておきたいので……<br /><br />4年前の投稿（Cocoonプロフィール設定の「SNSフォロー URL」入力項目を非表示にしたい）で、似た内容がありますが、そこではTwitterを含むSNS入力欄全てが非表示になるものでした。</p>
<p>具体的には、「ニックネーム(及びブログ上の表示名)」「メール」「Twitter URL」「あなたについて」「アカウント管理」「プロフィール画像」以外はすべて非表示にしたいです。<br /><br />CSSやphp等のコードをご提示いただけると非常に嬉しいです。<br /><span>お力添えいただける方おりましたら幸いです。よろしくお願いいたします。</span></p>]]></content:encoded>
						                            <category domain="https://wp-cocoon.com/community/cocoon-theme/">Cocoonテーマに関する質問</category>                        <dc:creator>Orthi7nos</dc:creator>
                        <guid isPermaLink="true">https://wp-cocoon.com/community/cocoon-theme/%e3%80%8c%e3%83%97%e3%83%ad%e3%83%95%e3%82%a3%e3%83%bc%e3%83%ab%e3%80%8d%e3%81%ae%e8%a8%ad%e5%ae%9a%e3%81%a7%e9%a0%85%e7%9b%ae%e3%82%92%e3%83%87%e3%83%95%e3%82%a9%e3%83%ab%e3%83%88%e3%81%a7%e9%9d%9e/#post-74245</guid>
                    </item>
							        </channel>
        </rss>
		