{"id":2130,"date":"2012-08-08T06:54:05","date_gmt":"2012-08-08T13:54:05","guid":{"rendered":"http:\/\/www.dognmonkey.com\/techs\/?p=2130"},"modified":"2012-08-08T06:54:05","modified_gmt":"2012-08-08T13:54:05","slug":"create-login-logout-button-for-wordpress","status":"publish","type":"post","link":"https:\/\/www.dognmonkey.com\/mythemes\/create-login-logout-button-for-wordpress.html","title":{"rendered":"Create Login-Logout Button For WordPress"},"content":{"rendered":"<p style=\"text-align: center;\"><em>Create buttons login\/logout using &#8220;cooltext.com&#8221;, put in a root folder and place the codes on a template of the theme, in my case it&#8217;s sidebar.php and I want the buttons to show up at the beginning, center of the right side column.<\/em><\/p>\n<p style=\"text-align: center;\"><a title=\"button from cooltext.com\" href=\"\/\/cooltext.com\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" title=\"login button from cooltext.com\" src=\"\/idogjs\/css\/login.png\" alt=\"login button from cooltext.com\" width=\"74\" height=\"29\" \/><\/a> \u00a0 \u00a0 <a title=\"button from cooltext.com\" href=\"\/\/cooltext.com\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" title=\"logout button from cooltext.com\" src=\"\/idogjs\/css\/logout.png\" alt=\"logout button from cooltext.com\" width=\"84\" height=\"29\" \/><\/a><\/p>\n<blockquote><p>&lt;div id=&#8221;side-right&#8221;&gt;<br \/>\n&lt;p style=&#8221;text-align:center;&#8221;&gt;&lt;?php if (is_user_logged_in()) : ?&gt;&lt;a href=&#8221;&lt;?php echo wp_logout_url(&#8220;&lt;?php echo bloginfo(&#8216;url&#8217;); ?&gt;&#8221; ); ?&gt; &#8220;&gt;&lt;img src=&#8221;\/logout.png&#8221; onmouseover=&#8221;this.src=&#8217;\/logouth.png&#8217;;&#8221; onmouseout=&#8221;this.src=&#8217;\/logout.png&#8217;;&#8221; \/&gt;&lt;\/a&gt;<br \/>\n&lt;?php else : ?&gt;&lt;a alt=&#8221;Login\/Register&#8221; href=&#8221;&lt;?php echo bloginfo(&#8216;url&#8217;); ?&gt;\/wp-login.php&#8221;&gt;&lt;img src=&#8221;\/login.png&#8221; onmouseover=&#8221;this.src=&#8217;\/loginh.png&#8217;;&#8221; onmouseout=&#8221;this.src=&#8217;\/login.png&#8217;;&#8221; \/&gt;&lt;\/a&gt;<br \/>\n&lt;?php endif;?&gt;&lt;\/p&gt;<br \/>\n&lt;?php dynamic_sidebar(&#8216;right&#8217;); ?&gt;<br \/>\n&lt;\/div&gt;<\/p><\/blockquote>\n<ul class=\"lcp_catlist\" id=\"lcp_instance_0\"><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Create buttons login\/logout using &#8220;cooltext.com&#8221;, put in a root folder and place the codes on a template of the theme, in my case it&#8217;s sidebar.php and I want the buttons to show up at the beginning, center of the right side column. \u00a0 \u00a0 &lt;div id=&#8221;side-right&#8221;&gt; &lt;p style=&#8221;text-align:center;&#8221;&gt;&lt;?php if (is_user_logged_in()) : ?&gt;&lt;a href=&#8221;&lt;?php echo wp_logout_url(&#8220;&lt;?php <a href=\"https:\/\/www.dognmonkey.com\/mythemes\/create-login-logout-button-for-wordpress.html\" class=\"more-link\">&#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[45,54],"tags":[727,729,1261],"class_list":["post-2130","post","type-post","status-publish","format-standard","hentry","category-tips-and-tricks","category-wordpress","tag-login-button","tag-logout-button","tag-wordpress"],"views":8,"_links":{"self":[{"href":"https:\/\/www.dognmonkey.com\/mythemes\/wp-json\/wp\/v2\/posts\/2130","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dognmonkey.com\/mythemes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dognmonkey.com\/mythemes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dognmonkey.com\/mythemes\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dognmonkey.com\/mythemes\/wp-json\/wp\/v2\/comments?post=2130"}],"version-history":[{"count":0,"href":"https:\/\/www.dognmonkey.com\/mythemes\/wp-json\/wp\/v2\/posts\/2130\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dognmonkey.com\/mythemes\/wp-json\/wp\/v2\/media?parent=2130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dognmonkey.com\/mythemes\/wp-json\/wp\/v2\/categories?post=2130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dognmonkey.com\/mythemes\/wp-json\/wp\/v2\/tags?post=2130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}