Site.pro
  • Website Builder
    • Website Builder
    • Prices
    • Website Import
    • Online Stores
    • Plugins
    • Collaboration
    • Templates
    • Languages
    • Affiliate Program
    • Examples
    • AI Website Builder
    • For Design Studios
    • We Build for You
  • Domains
  • Email
  • Learn
    • Tutorials
    • Blog
    • FAQ
    • Growth Hacking
    • For Hostings
    • Domainity
    • For Education
  • For Resellers
    • Prices
    • White Label
    • Revenue Share
    • Panels
    • How it Works
    • Mass Import
    • Our Partners
    • Reselling Examples
    • Marketing Materials
    • Documentation
    • Free Websites
  • Website Builder
    • Website BuilderEverybody can easily create a website, landing page, or e-commerce store. Easy-to-use website builder.
    • PricesSite.pro Prices: Templates 200+, Websites, Basic Builder Functions, Online Stores, Get more website builder features.
    • Website ImportTransfer your existing website from anywhere to Site.pro website builder. Website import from different website builders.
    • Online StoresSell your goods or services anywhere on the website. The Easiest Way to Build an Online Store
    • PluginsMany functions and plugins depending on geographical preferences. Plugin description.
    • CollaborationCollaborative Website Builder, Create a website with teammates in real-time in one space, Real-Time Collaboration.
    • Templates
    • Languages
    • Affiliate Program
    • Examples
    • AI Website Builder
    • For Design Studios
    • We Build for You
  • Domains
  • Email
  • Learn
    • TutorialsVideos for Beginners. Download video tutorials for free New video tutorial.
    • BlogWebsite Builder Lifehacks: Shared hosting tips. Web Design, Marketing
    • FAQHelp center. Payment Issues. Basic Tutorial. Quick search. Have questions? Enter your question here.
    • Growth HackingBoost your sales. Strategy
    • For HostingsEducation. Generate more website builder sales
    • DomainityDomainity: Domain quantity per 1000 people
    • For EducationFree Website Builder for Online and Offline Classrooms. Collaborate with students in one space or separately.
  • For ResellersWhite Label
    • PricesStart reselling. Pay for live websites. Free Websites. Join reselling program.
    • White LabelThe most popular white label tool is ideal for reselling
    • Revenue ShareWebsite Builder: Provide free website builder and earn 50% commissions
    • PanelsOne product for all platforms. Download plugin for your panel
    • How it WorksCloud or On-Premises. Recommendations for Builder Server. Requirements for builder server (On-premises only) and published websites.
    • Marketing MaterialsVideo. Mockups. Website Blocks. Marketing Materials.
    • Mass Import
    • Our Partners
    • Reselling Examples
    • Documentation
    • Free Websites
  • Register

    Register

    (Buy Domain, Create email)
    (For Hosting Companies)
    By registering, you accept our Terms of Service
    Number of Customers: 1-100
    Number of Customers: 1-100
  • Log in

    Log in

    New user? Create account
    Forgot password?
  • $
  • English
Server Requirements
  • Published websites
  • Site.pro IPs
Builder installation / update
On-Premises
  • Server Requirements
  • Installation
  • CRON
  • Update
  • Migration to version v4
  • Collaboration Service
  • Extra configuration
  • Manual update
  • Changing PHP version
  • Support
Plugin installation
  • Hosting Panel
    • cPanel
    • DirectAdmin
    • Plesk
    • Sentora/ZPanel
    • ISPmanager
    • InterWorx
    • Vesta
    • Hosting Controller
    • CentOS Web Panel
    • Hestia
    • LiveConfig
    • Webuzo
    • Custom hosting (API)
  • Billing Panel
    • WHMCS
    • Blesta
    • Custom billing (API)
API documentation
  • Builder
    • Create session (SSO)
    • Remove existing session
    • Create website backup
    • Restore website backup
  • Templates
    • List template categories
    • List template category tags
    • List templates
    • Get page types available in templates
  • Import
    • Import website
    • Get website import status
    • Import website block
    • Get website block import status
    • Check if imported website is owned by user
  • Websites
    • Create website
    • Modify website
    • Rename website
    • Publish website
    • Edit website pages
    • Edit website settings
    • Delete website
    • Get website template
    • Get website pages
    • Get website variables
    • Get template variables
    • Get website settings
    • Add pages to website
    • Duplicate pages in website
    • Remove pages from website
  • Website Blocks
    • Create empty website
    • Modify website
    • Inspect website
    • Add empty page
    • Modify page
    • Remove page
    • Inspect page
    • Inspect composition
    • Modification descriptor structure by element type
    • Add blocks from compositions
    • Remove blocks
    • Move blocks
    • Modify blocks
    • Inspect block
  • Licenses
    • Get list of published websites
    • Get statistics of publications/openings
    • Block/unblock published website
    • Controlling IP list
    • Read/add/delete hosting plans
  • Integration with your system
    • Allow/disallow domain in builder
    • Check if domains are allowed in builder
  • FAQ
    • Get posts
    • Get categories
Add-ons documentation
  • For Website
    • Public demo URL
    • Editing plans
    • User registration from public demo
    • Website import
  • For Builder
    • Adding custom templates
    • Adding custom builder plugins
    • Scripts
For developers
  • Programming reference
  • Directory structure
  • Meta information (main.json)
  • Frontend logic (main.js)
  • Element template (main.html)
  • Backend logic (main.php)
  • Plugin testing
  • Custom element plugin
  • E-commerce plugin
  • Overriding UI
  • Other examples
Change Log
Add-ons documentation → For Builder

Adding custom templates available since version 4.0.0 / 3.7.23 On-Premises

Reference:

  • Add custom template
  • Remove custom template
  • Add new category
  • Hide native category
  • Hide native template
  • Enable/disable templates by hosting plan
  • Using custom thumbnails for original templates
The documenatation is actual for builder of version 4.2.24 and higher.
For earlier builder versions, the documentation is not provided.

Add custom template

To create custom templates in builder, take the following steps:

  • access builder as admin by expanding your on-premises brand, going to section "Custom templates" and clicking Create custom templates button;
  • choose a desired template and rebuild it at your wish;
  • when you are done save new website hovering Publish button and clicking on Save as...;
  • fill the form for a new template:
    • Left column:
      • enter your custom template name in the Name field;
      • choose the Screenshot (optional if you are saving currently existing template by overwriting it);
      • check Overwrite existing template option in order to overwrite the current template (you can overwrite only your custom templates, but not original templates);
      • check Make private only if you want to hide that template from customers, e.g. if this template is a draft or not finished yet;
      • check Do not translate only if you want the template not be translatable to the customer's selected language in the builder. If you keep this option unchecked, then all your custom phrases which do not have integrated translations in builder, will be converted to random texts when the customer chooses the template.
    • Right column:
      • choose options for each dropdown, which, in your opinion, are applicable to your template (this is for a better template searching; these options are not editable at the moment);
      • in the Category dropdown choose the category where you want your template to be located on templates choosing page;
  • click Save Draft and you are done.

Remove custom template

To remove template, take the following steps:

  • open admin builder;
  • go to templates page by clicking button "Change template" (hovering "New/Reset" button in the builder toolbar);
  • find the custom template you want to delete;
  • hover it and:
    • [if you see red "Delete" button] click "Delete" button to delete the template;
    • [if you do not see red "Delete" button]:
      • select the template by clicking green "Select" button;
      • save the template by clicking "Save as..." (hovering "Publish" button in the builder toolbar);
      • in the appeared dialog make sure that options "Overwrite existing template" and "Make private" are checked;
      • click "Save draft" button;
      • click button "Change template" again;
      • find that template again if needed;
      • hover it and click the appeared "Delete" button to delete it.

Add new category

To create a new category, take the following steps:

  • navigate to "[builder_path]/templates" directory in your builder installation;
  • [if file "tags-ext.json" does not exist] create file "tags-ext.json";
  • open the file in the text editor and add the following content:
    {
        "category": [
            {
                "id": "lzb16vqwpjo6b5jncems",
                "name": "My category 1"
            },
            {
                "id": "343asx4y4f9rgav3437f",
                "name": "My category 2"
            }
        ]
    }
    This code shows how to add 2 new categories: "My category 1" and "My category 2"
    It is important to give unique IDs and names for your categories.
    IDs should be just random strings consisting of any number of letters "a-z" and numbers "0-9".
  • when saving the template in the builder, you will see your new categories which you can choose for your templates (refresh builder window in the browser with F5 if needed).

Hide native category

In order to hide some category, take the following steps:

  • navigate to "[builder_path]/templates/[category you want to hide]" directory;
  • create file "config.json" there with contents {"isPrivate":true} and save file;
  • remove cache file "[builder_path]/templates/index.json".

After that your clients will not see this category on template chooser page.

Hide native template

In order to hide some template, take the following steps:

  • open "[builder_path]/templates/[template category]" directory;
  • create file "config.json" there with contents {"privateTemplates": ["Template One", "Template Two"]}. Replace "Template One/Two" with name of template(s) you want to hide in that category (names must be specified in English language).
    If file "config.json" already exists and has some content then you need to add "privateTemplates" parameter to that file.
  • remove cache file "[builder_path]/templates/index.json".

After that your clients will not see templates you hide in this category.

Enable/disable templates by hosting plan available since version 4.0.0

There is a possibility in builder to have specific templates enabled (or disabled) depending on hosting plan the customer has. In order to activate this feature create file in your builder installation templates/plans.json with the following structure:

{
    "list": [
        {
            "hostingPlan": "plan1",
            "templates": [
                "ID of template 1",
                "ID of template 2",
                ...
            ]
        },
        {
            "hostingPlan": "plan2",
            "templates": [
                "ID of template 3",
                "ID of template 4",
                ...
            ]
        },
        ...
    ]
}

There hostingPlan can be a plan or list of plans, e.g. ["plan1", "plan2"].

The template ID is a string which is constructed from category name and template name in English language (you can see real names of categories and templates in folder "templates" of your builder installation), for example:
"Services/Accounting"
"E-commerce/Happy Walls"
etc.

{
    "list": [
        {
            "hostingPlan": "plan1",
            "action": "exclude",
            "templates": [
                "ID of template 1",
                "ID of template 2"
            ]
        },
        ...
    ]
}

If you want to have a plan or plans where only few templates are disabled and all other are enabled then it is not necessary to list all templates in the file, instead you can add extra parameter "action": "exclude" as shown in an example.
In specified example the plan "plan1" will have all templates available except templates "ID of template 1" and "ID of template 2".

{
    "templateBundles": [
        {
            "id": "group1",
            "list": [
                "ID of template 1",
                "ID of template 2",
                ...
            ]
        },
        {
            "id": "group2",
            "list": [
                "ID of template 3",
                "ID of template 4",
                ...
            ]
        }
    ],
    "list": [
        {
            "hostingPlan": "plan1",
            "templates": [
                "bundle:group1",
                "ID of template 5",
                "ID of template 6",
            ]
        },
        {
            "hostingPlan": "plan2",
            "templates": [
                "bundle:group1",
                "bundle:group2"
            ]
        },
        ...
    ]
}

If you have many plans for which the similar group of templates is enabled (or disabled) then it is not necessary to repeat the same list of templates for multiple plans, instead you can use parameter "templateBundles". There you specify groups of templates as shown in an example and then use IDs of those groups in parameter "templates".
It is convenient when you want to enable/disable whole categories of templates by hosting plans. Then you can split all templates into bundles where each bundle will represent different templates category.

Note: If you use this feature of plans.json file then the option "Templates in Each of 22 categories" in section "Edit Plans" will be ignored.

Using custom thumbnails for original templates available since version 4.2.45

Every template has its own directory, which is calculated by pattern "[builder]/templates/[Category Name]/[Template Name]/", and every template contains 3 thumbnail images in its directory with the following names:

  • preview.jpg - 968 x 600 image file
  • thumb.jpg - 484 x 330 image file
  • thumb2x.jpg - 968 x 600 image file

To use custom images for template thumbnails, add your files with the following names in the same directory:

  • preview.custom.jpg
  • thumb.custom.jpg
  • thumb2x.custom.jpg

It is preferable for custom images to have the same size as original images, or at least, to be of the same aspect ratio.

© Site.pro 2011. Website Builder. United States.
Contact SalesTerms of Service