{"id":5625,"date":"2024-03-27T05:51:26","date_gmt":"2024-03-27T05:51:26","guid":{"rendered":"https:\/\/www.softaculous.com\/blog\/docs\/softaculous-cloud\/plugins-themes-demos-using-template\/"},"modified":"2025-05-14T07:10:28","modified_gmt":"2025-05-14T07:10:28","slug":"plugins-themes-demos-using-template","status":"publish","type":"docs","link":"https:\/\/www.softaculous.com\/blog\/docs\/softaculous-cloud\/plugins-themes-demos-using-template\/","title":{"rendered":"Plugins &amp; Themes Demos using Template"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Overview<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This guide will show you how to configure demos for your premium plugins or themes using the Softaculous Cloud and Templates feature.<br>You can create a template of any website and then use it to quickly restore new websites for demos or testing purposes. The website launched using template includes all installed plugins, themes and configuration so it is an exact replica of what you configured.<br>The template can be configured as public so you can launch a demo without even having to login to your Softaculous Cloud account. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Install Plugins or Themes<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/cloud.softaculous.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Login to your Softaculous Cloud account<\/a>.<br>Install a script on your <strong><a href=\"https:\/\/cloud.softaculous.com\/index.php?act=software&amp;soft=26&amp;tab=install&amp;trial=1&amp;quick=1\" target=\"_blank\" rel=\"noreferrer noopener\">sandbox domain<\/a><\/strong>. Let&#8217;s use WordPress as an example script for this tutorial.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2024\/03\/template-sandbox.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"416\" src=\"https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2024\/03\/template-sandbox.png\" alt=\"\" class=\"wp-image-5643\" srcset=\"https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2024\/03\/template-sandbox.png 1000w, https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2024\/03\/template-sandbox-300x125.png 300w, https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2024\/03\/template-sandbox-768x319.png 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Once the script is installed you can login to the admin panel of the Sandbox website using the success links as shown in the screenshot below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2024\/03\/template-sandbox-login.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"379\" src=\"https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2024\/03\/template-sandbox-login.png\" alt=\"\" class=\"wp-image-5644\" srcset=\"https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2024\/03\/template-sandbox-login.png 1000w, https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2024\/03\/template-sandbox-login-300x114.png 300w, https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2024\/03\/template-sandbox-login-768x291.png 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Once you are logged into the script you can install your premium plugins or themes, which you wish to showcase to your clients and enable them to preview. <br><strong>Tip<\/strong>: You can create multiple sandbox installations and templates for different plugins and themes as per your needs. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2024\/03\/template-install-plugin-theme.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"395\" src=\"https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2024\/03\/template-install-plugin-theme.png\" alt=\"\" class=\"wp-image-5648\" style=\"width:840px;height:auto\" srcset=\"https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2024\/03\/template-install-plugin-theme.png 1000w, https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2024\/03\/template-install-plugin-theme-300x119.png 300w, https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2024\/03\/template-install-plugin-theme-768x303.png 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Create Template<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Once you have setup all configuration, navigate to the <a href=\"https:\/\/cloud.softaculous.com\/index.php?act=wordpress\" target=\"_blank\" rel=\"noreferrer noopener\">Softaculous WordPress Manager<\/a> and click on the <strong>Create Template <\/strong>option to access the template creation page.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2024\/03\/create-template.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"577\" src=\"https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2024\/03\/create-template.png\" alt=\"\" class=\"wp-image-5647\" srcset=\"https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2024\/03\/create-template.png 1000w, https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2024\/03\/create-template-300x173.png 300w, https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2024\/03\/create-template-768x443.png 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Give the template a good name for you to identify and share. The slug created from the template name will be visible to your users if you choose to make the template Public. <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2024\/03\/template-settings.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"553\" src=\"https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2024\/03\/template-settings.png\" alt=\"\" class=\"wp-image-5645\" srcset=\"https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2024\/03\/template-settings.png 1000w, https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2024\/03\/template-settings-300x166.png 300w, https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2024\/03\/template-settings-768x425.png 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">On the template creation page<br>1. Choose &#8220;<strong>Public<\/strong>&#8221; from the Template Type dropdown if you wish to make your template publicly available for demo creation. If you choose &#8220;<strong>Private<\/strong>&#8221; you can launch the demos via API or login to Softaculous Cloud panel to launch the template and then share the URL to your users. <br>2. Additionally, you can select the &#8220;<strong>Don&#8217;t Allow Plugins &amp; Themes<\/strong>&#8221; checkbox if you prefer users not to be able to install plugins and themes while using the demo. This is recommended so users <strong>cannot<\/strong> install plugins like File Manager and download the source code of your premium plugin or theme.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Congratulations! Your template is now ready for creating demos.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Share Template<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Navigate to the <a href=\"https:\/\/cloud.softaculous.com\/index.php?act=templates\" target=\"_blank\" rel=\"noreferrer noopener\">Templates page<\/a>, locate the desired template and click on the link icon [\ud83d\udd17] next to it and click to copy the launch demo link.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2024\/03\/template-launch-url.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"270\" src=\"https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2024\/03\/template-launch-url.png\" alt=\"\" class=\"wp-image-5642\" srcset=\"https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2024\/03\/template-launch-url.png 1000w, https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2024\/03\/template-launch-url-300x81.png 300w, https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2024\/03\/template-launch-url-768x207.png 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">You can add this link on your website so your users can automatically access the demo or you can share the link with your clients on request.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Launching Demo<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">GUI<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">As soon as the launch link is accessed in the browser Softaculous will start the demo install process on the sandbox domain or your custom domain. Once the process is completed the user will be automatically redirected and auto logged in to the WordPress admin panel.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2024\/03\/template-launch.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"400\" src=\"https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2024\/03\/template-launch.png\" alt=\"\" class=\"wp-image-5641\" srcset=\"https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2024\/03\/template-launch.png 1000w, https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2024\/03\/template-launch-300x120.png 300w, https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2024\/03\/template-launch-768x307.png 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The user can then access the website front-end and admin panel and play with your plugins or themes features.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2024\/03\/template-demo-access.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"600\" src=\"https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2024\/03\/template-demo-access.png\" alt=\"\" class=\"wp-image-5646\" srcset=\"https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2024\/03\/template-demo-access.png 1000w, https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2024\/03\/template-demo-access-300x180.png 300w, https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2024\/03\/template-demo-access-768x461.png 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"api\">API &#8211; Private Template<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><em>A private template is when you want to launch a demo after authentication via API credentials. <\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The API will launch the demo and provide the website URL and its Auto login URL to the Admin Dashboard of the new installation.<br>You will just need to add <strong>&amp;api=json<\/strong> and API credentials at the end of the launch URL you copied from the <a href=\"https:\/\/cloud.softaculous.com\/index.php?act=templates\" target=\"_blank\" rel=\"noreferrer noopener\">Templates page<\/a> to get the results in JSON format.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">CURL<\/h4>\n\n\n\n<pre class=\"wp-block-code php hljs\"><code>curl \"https:\/\/cloud.softaculous.com\/launch\/index.php?u=12345&amp;t=cloud-website<strong>&amp;api=json&amp;api_key=YOUR_API_KEY&amp;api_pass=YOUR_API_PASS<\/strong>\"<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">PHP<\/h4>\n\n\n\n<pre class=\"wp-block-code php hljs\"><code>\/\/ The URL\n$url = 'https:\/\/cloud.softaculous.com\/launch\/index.php?u=12345&amp;t=cloud-website&amp;api=json&amp;api_key=YOUR_API_KEY&amp;api_pass=YOUR_API_PASS';\n\n\/\/ Set the curl parameters.\n$ch = curl_init();\ncurl_setopt($ch, CURLOPT_URL, $url);\ncurl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n\n\/\/ Turn off the peer verification (TrustManager Concept).\ncurl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);\n\n\/\/ Get response from the server.\n$resp = curl_exec($ch);\n \n\/\/ The response will hold a string as per the API response method. In this case its PHP JSON\n$res = json_decode($resp, true);\n \n\/\/ Done ?\nif(!empty($res&#91;'done'])){\n\n\tprint_r($res);\n\n\/\/ Error\n}else{\n\n\techo 'Some error occured';\n\tprint_r($res&#91;'error']);\n\n}<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">API Response<\/h4>\n\n\n\n<pre class=\"wp-block-code php hljs\"><code>{\n    \"done\": 1,\n    \"softurl\": \"https:\/\/u12345.softaculous.dev\/wpZ9ZOkCj\",\n    \"auto_login_url\": \"https:\/\/u12345.softaculous.dev\/wpZ9ZOkCj\/sapp-wp-signon.php?pass=t6wgd6wrkt09e1ia6y5a2hjymhyfnj9v\"\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The API response will be in JSON format.<br>The successful response will contain three keys:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>done <\/strong>: This indicates the launch was successful<\/li>\n\n\n\n<li><strong>softurl <\/strong>: This provides the demo website URL<\/li>\n\n\n\n<li><strong>auto_login_url <\/strong>: This is the link when accessed the user will be auto logged into the demo website&#8217;s admin panel.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">The unsuccessful response will have the <strong>error <\/strong>key which provides the cause of the API failure.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"api-public\">API &#8211; Public Template<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><em>A public template is when you allow anyone to launch a demo using your template details without authentication. <\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The API will launch the demo and provide the website URL and its Auto login URL to the Admin Dashboard of the new installation.<br>You will just need to add <strong>&amp;api=json<\/strong> at the end of the launch URL you copied from the <a href=\"https:\/\/cloud.softaculous.com\/index.php?act=templates\" target=\"_blank\" rel=\"noreferrer noopener\">Templates page<\/a> to get the results in JSON format.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">CURL<\/h4>\n\n\n\n<pre class=\"wp-block-code php hljs\"><code>curl \"https:\/\/cloud.softaculous.com\/launch\/index.php?u=12345&amp;t=cloud-website<strong>&amp;api=json<\/strong>\"<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">PHP<\/h4>\n\n\n\n<pre class=\"wp-block-code php hljs\"><code>\/\/ The URL\n$url = '<a href=\"https:\/\/cloud.softaculous.com\/launch\/index.php?u=12345&amp;t=cloud-website&amp;api=json\">https:\/\/cloud.softaculous.com\/launch\/index.php?u=12345&amp;t=cloud-website&amp;api=json<\/a>';\n\n\/\/ Set the curl parameters.\n$ch = curl_init();\ncurl_setopt($ch, CURLOPT_URL, $url);\ncurl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n\n\/\/ Turn off the peer verification (TrustManager Concept).\ncurl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);\n\n\/\/ Get response from the server.\n$resp = curl_exec($ch);\n \n\/\/ The response will hold a string as per the API response method. In this case its PHP JSON\n$res = json_decode($resp, true);\n \n\/\/ Done ?\nif(!empty($res&#91;'done'])){\n\n\tprint_r($res);\n\n\/\/ Error\n}else{\n\n\techo 'Some error occured';\n\tprint_r($res&#91;'error']);\n\n}<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">API Response<\/h4>\n\n\n\n<pre class=\"wp-block-code php hljs\"><code>{\n    \"done\": 1,\n    \"softurl\": \"https:\/\/u12345.softaculous.dev\/wpZ9ZOkCj\",\n    \"auto_login_url\": \"https:\/\/u12345.softaculous.dev\/wpZ9ZOkCj\/sapp-wp-signon.php?pass=t6wgd6wrkt09e1ia6y5a2hjymhyfnj9v\"\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The API response will be in JSON format.<br>The successful response will contain three keys:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>done <\/strong>: This indicates the launch was successful<\/li>\n\n\n\n<li><strong>softurl <\/strong>: This provides the demo website URL<\/li>\n\n\n\n<li><strong>auto_login_url <\/strong>: This is the link when accessed the user will be auto logged into the demo website&#8217;s admin panel.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">The unsuccessful response will have the <strong>error <\/strong>key which provides the cause of the API failure.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Custom Domain<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Point your custom domain using a CNAME record to our domain so your users will see your domain in the demo websites they access. Email us at <a href=\"mailto:support@softaculous.com\">support@softaculous.com<\/a> for more details. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you have any questions feel free to contact us at <a href=\"mailto:support@softaculous.com\">support@softaculous.com<\/a><\/p>\n","protected":false},"featured_media":0,"parent":5620,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","docs_category":[],"class_list":["post-5625","docs","type-docs","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/5625","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/comments?post=5625"}],"version-history":[{"count":17,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/5625\/revisions"}],"predecessor-version":[{"id":6194,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/5625\/revisions\/6194"}],"up":[{"embeddable":true,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/5620"}],"wp:attachment":[{"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/media?parent=5625"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs_category?post=5625"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}