[su_members message="This content is for registered users only. Please %login%." color="#F73F43" login_text="sign in" login_url="#"] You are a registered user. [/su_members]
Table of contents
This shortcode allows you to display content only to registered users.
Option name | Possible values | Default value |
---|---|---|
message Message for not logged users | Any text value | This content is for registered users only. Please %login%. |
color This color will applied only to box for not logged users | #HEX color | #ffcc00 |
login_text Text for the login link | Any text value | login |
login_url Login link url | Any text value | – none – |
class Additional CSS class name(s) separated by space(s) | CSS class name(s) separated by space(s) | – none – |
The default login message can be easily hidden with the following custom CSS code:
.su-members {
visibility: hidden;
display: none;
}
Just add it to the Custom CSS code field under the Dashboard – Shortcodes – Settings screen.