{"id":186,"date":"2009-12-05T17:02:55","date_gmt":"2009-12-05T21:02:55","guid":{"rendered":"http:\/\/www.digitalaccesspass.com\/doc\/?p=186"},"modified":"2014-03-01T22:36:23","modified_gmt":"2014-03-02T06:36:23","slug":"modify-content-under-padlock","status":"publish","type":"post","link":"http:\/\/digitalaccesspass.com\/doc\/modify-content-under-padlock\/","title":{"rendered":"Modify Content Under Padlock"},"content":{"rendered":"<p>When your visitor encounters a &#8220;Sorry, you&#8217;re unable to access this content&#8221; page that has the DAP Padlock image on it, you can customize the text that shows up below the padlock by doing this:<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-188\" style=\"border: 1px solid black;\" title=\"customerror\" src=\"http:\/\/www.digitalaccesspass.com\/doc\/wp-content\/uploads\/2009\/12\/customerror.jpg\" alt=\"customerror\" width=\"542\" height=\"475\" srcset=\"http:\/\/digitalaccesspass.com\/doc\/wp-content\/uploads\/2009\/12\/customerror.jpg 677w, http:\/\/digitalaccesspass.com\/doc\/wp-content\/uploads\/2009\/12\/customerror-300x263.jpg 300w\" sizes=\"(max-width: 542px) 100vw, 542px\" \/><\/p>\n<p>1) Open the file <code>error.php<\/code> that is stored in the <code>\/dap\/inc\/<\/code> folder.<\/p>\n<p>2) RENAME it as (or COPY it as) <code>customerror.php<\/code>.<\/p>\n<p>3) You can put ANY kind of HTML content within this. Images, javascript, css,, buttons, text, whatever. Any HTML can be used in this file.<\/p>\n<p>4) Upload this new file <code>customerror.php<\/code> back to same folder <code>\/dap\/inc\/<\/code><\/p>\n<p>5) <code>error.php<\/code> doesn&#8217;t matter any more. Whether you delete it, or just leave it alone, the fact that there is a <code>customerror.php<\/code> file in the same directory means that DAP won&#8217;t even bother about <code>error.php<\/code> any more.<\/p>\n<p>6) Future updates of DAP will not touch your customerror.php file. So updates or upgrades will not mess with your custom error page copy.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When your visitor encounters a &#8220;Sorry, you&#8217;re unable to access this content&#8221; page that has the DAP Padlock image on it, you can customize the text that shows up below the padlock by doing this: 1) Open the file error.php that is stored in the \/dap\/inc\/ folder. 2) RENAME it as (or COPY it as) [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[12,27,31,43,33,26],"tags":[],"_links":{"self":[{"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/posts\/186"}],"collection":[{"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/comments?post=186"}],"version-history":[{"count":4,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/posts\/186\/revisions"}],"predecessor-version":[{"id":4337,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/posts\/186\/revisions\/4337"}],"wp:attachment":[{"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/media?parent=186"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/categories?post=186"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/digitalaccesspass.com\/doc\/wp-json\/wp\/v2\/tags?post=186"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}