{"id":14907750,"date":"2021-09-25T07:44:30","date_gmt":"2021-09-25T07:44:30","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/how-to-modify-restriction-content-page\/"},"modified":"2021-09-25T12:28:52","modified_gmt":"2021-09-25T12:28:52","slug":"how-to-modify-restriction-content-page","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/how-to-modify-restriction-content-page\/","title":{"rendered":"How to modify restriction content page?"},"content":{"rendered":"<p>Hi all,<\/p>\n<p>I&#8217;m trying to understand how page restriction work in wordpress. What I want to figure out is the following:<\/p>\n<p>When access page A -&gt; show all users (logged in or logged out) that this services is coming soon.<\/p>\n<p>When access page B -&gt; show logged out users (only) that they are not logged in and provide them the a button to redirect them to the login page!<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p>What I have done so far:<\/p>\n<p>I have edited a page and added &#8220;Limit access to the content to users of the selected roles.&#8221; to <strong>Administrator <\/strong>and <strong>Subscriber <\/strong>and updated that page. When tried to access it, the page content is not visible and only the following message appears: <strong>Sorry, but you do not have permission to view this content.<\/strong><\/p>\n<p>So far so good, as I have expected. But my question is how to modify the style of the restricted page not just to be a single message as explained above but to actually be a page (e.g. not-logged-in-page) which will have a message and a button to allow users to log-in or register?<\/p>\n","protected":false},"template":"","class_list":["post-14907750","topic","type-topic","status-publish","hentry","topic-tag-content"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/14907750","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/14907750\/revisions"}],"predecessor-version":[{"id":14907752,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/14907750\/revisions\/14907752"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=14907750"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}