<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
	<channel>
				<title><![CDATA[워드프레스 메인 컨텐츠 부분 로그인]]></title>
		<link>https://www.cosmosfarm.com/threads/rss/document/16836</link>
		<description><![CDATA[<p><br />
이곳 사이트 테마를 사용했는데요</p>

<p>메인 이미지 위에 있는 로그인 버튼이요 로그인이 되면 로그아웃이 나타나게 하고싶은데 방법이있을까요?</p>
]]></description>
		<copyright>Copyright 2026, 코스모스팜</copyright>
				<item>
			<title><![CDATA[아 처음이시군요.

테마의 functions.php 파일에 넣기만 해서는 변화가 없는게 맞습니다.

일단 테마의 ...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/16870</link>
			<description><![CDATA[<p>아 처음이시군요.</p>

<p>테마의 functions.php 파일에 넣기만 해서는 변화가 없는게 맞습니다.</p>

<p>일단 테마의 functions.php 파일에 코드를 추가한 다음</p>

<p>워드프레스 관리자 -&gt; 페이지 -&gt; 메인 페이지로 설정된 페이지선택 -&gt; 페이지 편집 화면에 아래의 코드를 추가해저 봐보세요.</p>

<pre>
<code>[test_login_logout_links]</code></pre>

<p>이렇게 [대괄호]로 되어있는 코드를 워드프레스에서는 <strong>숏코드</strong>라고 부릅니다.</p>

<p>페이지 혹은 포스트 편집 화면에 이러한 <strong>숏코드</strong>를 내용과 합께 입력하시면 특정 프로그램이 실행되고 표시할 수 있습니다.</p>

<p>고맙습니다.</p>
]]></description>
			<author>스레드봇</author>
			<pubDate>Thu, 26 Oct 2017 10:48:25 +0000</pubDate>
			<category>워드프레스</category>
		</item>
				<item>
			<title><![CDATA[echo '&amp;lt;div class=&quot;header-content-wrap&quot;&amp;gt;';

        echo '&amp;lt;div clas...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/16850</link>
			<description><![CDATA[<p>echo '&lt;div class="header-content-wrap"&gt;';</p>

<p>        echo '&lt;div class="container"&gt;';</p>

<p>        zerif_big_title_text_trigger();</p>

<p>        $zerif_bigtitle_redbutton_label_default = get_theme_mod( 'zerif_bigtitle_redbutton_label' );<br />
         <br />
        if( ! empty ( $zerif_bigtitle_redbutton_label_default ) ) {</p>

<p>            $zerif_bigtitle_redbutton_label = get_theme_mod( 'zerif_bigtitle_redbutton_label_2', $zerif_bigtitle_redbutton_label_default );</p>

<p>        } elseif ( current_user_can( 'edit_theme_options' ) ) {</p>

<p>            $zerif_bigtitle_redbutton_label = get_theme_mod ( 'zerif_bigtitle_redbutton_label_2', __( 'Customize this button','zerif-lite' ) );</p>

<p>        } else {</p>

<p>            $zerif_bigtitle_redbutton_label = get_theme_mod ( 'zerif_bigtitle_redbutton_label_2' );</p>

<p>        }</p>

<p>        if ( current_user_can( 'edit_theme_options' ) ) {</p>

<p>            $zerif_bigtitle_redbutton_url = get_theme_mod( 'zerif_bigtitle_redbutton_url', admin_url( 'customize.php?autofocus&amp;#91;control&amp;#93;=zerif_bigtitle_redbutton_url' ) );</p>

<p>            $zerif_bigtitle_greenbutton_label = get_theme_mod( 'zerif_bigtitle_greenbutton_label',__( "Customize this button",'zerif-lite' ) );</p>

<p>            $zerif_bigtitle_greenbutton_url = get_theme_mod('zerif_bigtitle_greenbutton_url', esc_url( admin_url( 'customize.php?autofocus&amp;#91;control&amp;#93;=zerif_bigtitle_greenbutton_url' ) ) );</p>

<p>        } else {</p>

<p>            $zerif_bigtitle_redbutton_url = get_theme_mod( 'zerif_bigtitle_redbutton_url' );</p>

<p>            $zerif_bigtitle_greenbutton_label = get_theme_mod( 'zerif_bigtitle_greenbutton_label' );</p>

<p>            $zerif_bigtitle_greenbutton_url = get_theme_mod( 'zerif_bigtitle_greenbutton_url' );</p>

<p>        }</p>

<p> </p>

<p>죄송해요 제가 워드프레스를 처음해봐서...</p>

<p>이부분인것같은데..ㅜㅜ 어떻게 해야한는건가요</p>

<p><strong>functions.php 에 넣으라는 소스는 넣었는데 변화가 없었습니다</strong></p>
]]></description>
			<author>시티봇</author>
			<pubDate>Thu, 26 Oct 2017 04:20:58 +0000</pubDate>
			<category>워드프레스</category>
		</item>
				<item>
			<title><![CDATA[안녕하세요~^^

워드프레스 관리자 -&amp;gt; 외모 -&amp;gt; 테마 편집기 페이지에서 functions.php 파...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/16843</link>
			<description><![CDATA[<p>안녕하세요~^^</p>

<p>워드프레스 관리자 -&gt; 외모 -&gt; <strong>테마 편집기</strong> 페이지에서 <strong>functions.php</strong> 파일 하단에 아래의 코드를 추가해보세요.</p>

<pre>
<code class="language-html">add_shortcode('test_login_logout_links', 'test_login_logout_links');
function test_login_logout_links(){
	if(is_user_logged_in()):?&gt;
	&lt;a href="&lt;?php echo wp_logout_url( get_permalink() )?&gt;" class="btn btn-primary custom-button red-btn" title="로그아웃"&gt;로그아웃&lt;/a&gt;
	&lt;?php else:?&gt;
	&lt;a href="&lt;?php echo wp_login_url( get_permalink() )?&gt;" class="btn btn-primary custom-button red-btn" title="로그인"&gt;로그인&lt;/a&gt;
	&lt;?php
	endif;
}</code></pre>

<p>원하시는 위치에 아래의 숏코드를 추가해보세요.</p>

<pre>
<code>[test_login_logout_links]</code></pre>

<p> </p>

<p>추가로 테마에서 버튼을 출력하고 있는 파일의 위치를 찾을 수 있다면</p>

<p>아래의 코드를 해당 파일의 태그 사이에 입력하는 방법도 있습니다.</p>

<pre>
<code class="language-php">&lt;?php echo wp_loginout($_SERVER['REQUEST_URI'], false)?&gt;</code></pre>

<p> </p>

<p>wp_login_url(), wp_logout_url(), wp_loginout()에 대한 설명은 아래 링크를 참고해보세요.</p>

<p><a href="https://codex.wordpress.org/Function_Reference/wp_login_url" target="_blank">https://codex.wordpress.org/Function_Reference/wp_login_url</a></p>

<p><a href="https://codex.wordpress.org/Function_Reference/wp_logout_url" target="_blank">https://codex.wordpress.org/Function_Reference/wp_logout_url</a></p>

<p><a href="https://codex.wordpress.org/Function_Reference/wp_loginout" target="_blank">https://codex.wordpress.org/Function_Reference/wp_loginout</a></p>

<p>고맙습니다.</p>
]]></description>
			<author>스레드봇</author>
			<pubDate>Thu, 26 Oct 2017 02:45:48 +0000</pubDate>
			<category>워드프레스</category>
		</item>
			</channel>
</rss>