{"id":33950,"date":"2019-03-04T09:30:37","date_gmt":"2019-03-04T09:30:37","guid":{"rendered":"http:\/\/getshortcodes.com\/?post_type=docs&#038;p=33950"},"modified":"2020-10-21T13:50:50","modified_gmt":"2020-10-21T13:50:50","slug":"members","status":"publish","type":"docs","link":"https:\/\/getshortcodes.com\/docs\/members\/","title":{"rendered":"Members"},"content":{"rendered":"<div class=\"block-demo block-demo-default\">\n\t<div class=\"block-demo-viewport\">\n\t\t<div class=\"su-members\" style=\"background-color:#ffbfc3;border-color:#c40c10;color:#5e0000\">This content is for registered users only. Please <a href=\"#\">sign in<\/a>.<\/div>\n\t<\/div>\n\t<div class=\"block-demo-source\">\n\t\t<pre contenteditable=\"true\"><div class=\"su-members\" style=\"background-color:&quot;#F73F43&quot;;border-color:&quot;#F73F43&quot;;color:&quot;#F73F43&quot;\">&quot;This<\/div><\/pre>\n\t<\/div>\n<\/div>\n\n\n<p class=\"h2\">Table of contents<\/p>\n\n<ol><li><a href=\"#description\">Description<\/a><\/li><li><a href=\"#options\">Options<\/a><\/li><li><a href=\"#how-to-hide-the-default-login-message\">How to hide the default login message<\/a><\/li><\/ol><\/li><\/ol>\n\n\n<h2 class=\"wp-block-heading\" id=\"description\">Description<\/h2>\n\n\n\n<p>This shortcode allows you to display content only to registered users.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"options\">Options<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><th>Option name<\/th><th>Possible values<\/th><th>Default value<\/th><\/tr><tr><td><strong>message<\/strong><br>Message for not logged users<\/td><td>Any text value<\/td><td>This content is for registered users only. Please %login%.<\/td><\/tr><tr><td><strong>color<\/strong><br>This color will applied only to box for not logged users<\/td><td>#HEX color<\/td><td>#ffcc00<\/td><\/tr><tr><td><strong>login_text<\/strong><br>Text for the login link<\/td><td>Any text value<\/td><td>login<\/td><\/tr><tr><td><strong>login_url<\/strong><br>Login link url<\/td><td>Any text value<\/td><td><em>\u2013 none \u2013<\/em><\/td><\/tr><tr><td><strong>class<\/strong><br>Additional CSS class name(s) separated by space(s)<\/td><td>CSS class name(s) separated by space(s)<\/td><td><em>\u2013 none \u2013<\/em><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"how-to-hide-the-default-login-message\">How to hide the default login message<\/h2>\n\n\n\n<p>The default login message can be easily hidden with the following custom CSS code:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.su-members {\n\tvisibility: hidden;\n\tdisplay: none;\n}<\/code><\/pre>\n\n\n\n<p>Just add it to the <em>Custom CSS code<\/em> field under the <em>Dashboard \u2013 Shortcodes \u2013 Settings<\/em> screen.<\/p>\n","protected":false},"featured_media":36696,"template":"","docs_category":[21],"class_list":["post-33950","docs","type-docs","status-publish","has-post-thumbnail","hentry","docs_category-shortcodes"],"_links":{"self":[{"href":"https:\/\/getshortcodes.com\/api\/wp\/v2\/docs\/33950","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/getshortcodes.com\/api\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/getshortcodes.com\/api\/wp\/v2\/types\/docs"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/getshortcodes.com\/api\/wp\/v2\/media\/36696"}],"wp:attachment":[{"href":"https:\/\/getshortcodes.com\/api\/wp\/v2\/media?parent=33950"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/getshortcodes.com\/api\/wp\/v2\/docs_category?post=33950"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}