{"id":15404,"date":"2025-04-16T12:09:46","date_gmt":"2025-04-16T06:09:46","guid":{"rendered":"https:\/\/helpdesk.spider-themes.net\/?post_type=docs&amp;p=15404"},"modified":"2025-04-16T12:09:46","modified_gmt":"2025-04-16T06:09:46","slug":"docy_login_form-shortcode","status":"publish","type":"docs","link":"https:\/\/arolax.crowdytheme-demo.com\/documentation\/docs\/docy-wordpress-theme\/using-shortcodes\/docy_login_form-shortcode\/","title":{"rendered":"[docy_login_form] shortcode"},"content":{"rendered":"\n<p>\u26a0\ufe0f <strong>Important:<\/strong> The <strong>Docy Core<\/strong> plugin must be active for this shortcode to work.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#091;docy_login_form]<\/code><\/pre>\n\n\n\n<p>This will output the default login form with standard labels and behavior.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Available Attributes<\/h2>\n\n\n\n<p>You can customize the login form using the following attributes:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Attribute<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td><code>redirect<\/code><\/td><td>URL to redirect the user after successful login.<\/td><\/tr><tr><td><code>submit_label<\/code><\/td><td>Text for the submit button. Default: <code>Sign in<\/code>.<\/td><\/tr><tr><td><code>username_label<\/code><\/td><td>Label for the username field. Default: <code>Username<\/code>.<\/td><\/tr><tr><td><code>password_label<\/code><\/td><td>Label for the password field. Default: <code>Password<\/code>.<\/td><\/tr><tr><td><code>username_placeholder<\/code><\/td><td>Placeholder text for the username field. Default: <code>Enter your username<\/code>.<\/td><\/tr><tr><td><code>password_placeholder<\/code><\/td><td>Placeholder text for the password field. Default: <code>Enter your password<\/code>.<\/td><\/tr><tr><td><code>signup_link<\/code><\/td><td>URL for the sign-up page. Leave empty if no sign-up link is needed.<\/td><\/tr><tr><td><code>button_position<\/code><\/td><td>Position of the submit button. Options: <code>left<\/code>, <code>center<\/code>, <code>right<\/code>. Default: <code>left<\/code>.<\/td><\/tr><tr><td><code>button_color<\/code><\/td><td>Background color of the submit button. Default: <code>#1e73be<\/code>.<\/td><\/tr><tr><td><code>button_text_color<\/code><\/td><td><br>Text color of the submit button. Default: <code>#ffffff<\/code>.<\/td><\/tr><tr><td><code>error_notice<\/code><\/td><td>Custom error message shown on login failure. Default: <code>Invalid username or password. Please try again.<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Example<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>&#091;docy_login_form \n    redirect=\"https:\/\/example.com\/dashboard\" \n    submit_label=\"Login Now\"\n    username_label=\"Your Username\" \n    password_label=\"Your Password\"\n    username_placeholder=\"Type your username\"\n    password_placeholder=\"Type your password\"\n    button_color=\"#ff5722\"\n    button_text_color=\"#ffffff\"\n    button_position=\"center\"\n    signup_link=\"https:\/\/example.com\/signup\"\n    error_notice=\"Oops! Wrong credentials.\"\n]<\/code><\/pre>\n\n\n\n<p>This will render a login form that redirects users to <code>\/dashboard<\/code> after login, and shows custom labels and error messages.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The [docy_login_form] shortcode allows you to display a simple and customizable sign-in form anywhere on your site. You can use it inside pages, posts, or Elementor shortcode widgets.<\/p>\n","protected":false},"author":5,"featured_media":0,"parent":86,"menu_order":19,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-15404","docs","type-docs","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/arolax.crowdytheme-demo.com\/documentation\/wp-json\/wp\/v2\/docs\/15404","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/arolax.crowdytheme-demo.com\/documentation\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/arolax.crowdytheme-demo.com\/documentation\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/arolax.crowdytheme-demo.com\/documentation\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/arolax.crowdytheme-demo.com\/documentation\/wp-json\/wp\/v2\/comments?post=15404"}],"version-history":[{"count":0,"href":"https:\/\/arolax.crowdytheme-demo.com\/documentation\/wp-json\/wp\/v2\/docs\/15404\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/arolax.crowdytheme-demo.com\/documentation\/wp-json\/wp\/v2\/docs\/86"}],"wp:attachment":[{"href":"https:\/\/arolax.crowdytheme-demo.com\/documentation\/wp-json\/wp\/v2\/media?parent=15404"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/arolax.crowdytheme-demo.com\/documentation\/wp-json\/wp\/v2\/doc_tag?post=15404"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}