A lot of customers are asking how to remove/deactivate every page of the mini-site except for the login and signup forms. This requirement can be easily achieved with a simple JavaScript placed in the header of your mini-site which basically redirects the visitor to these forms regardless of the page he would like to reach.
In your Merchant panel navigate to Configuration --> Design --> Signup page theme --> Edit the Active theme (create a copy if the panel prompts you) --> Search for "header.stpl" --> Edit the template --> Insert the following script to the very first line:
{literal} <script> if (window.location.href.indexOf('login.php') === -1 && window.location.href.indexOf('signup.php') === -1) { window.location.replace("https://SUB_DOMAIN.postaffiliatepro.com/affiliates/login.php#login"); } </script> {/literal}
Do not forget to replace SUB_DOMAIN with your PostAffiliatePro account's subdomain. Save the template and set the customized theme as the default one. Once the script is applied, affiliates and merchants will be able to reach only the login and signup forms.
Further options
Keeping the Home menu option in the header and hyperlinks to Sample or FAQ pages in the footer might be confusing for visitors as they won´t be able to reach the content.
- In order to remove Home from the header, edit the "Account_topmenu.stpl" template and remove the following line:
- To edit or completely remove the footer, find the "footer.stpl" template.
- And if you wish to customize or remove signup information under your signup form, edit the "signup_form.tpl" template.
<li><a href="{$baseUrl}/">##Home##</a></li> // There are 2 lines like this to remove
Once you are done with all modifications, your default PostAffiliatePro mini-site should look like the following: