{"__v":2,"_id":"573ddb72282eb92d0066f4ee","category":{"__v":1,"_id":"569d55acec29360d00f6679c","pages":["569d55adec29360d00f6679e"],"project":"569d55abec29360d00f66798","version":"569d55acec29360d00f6679b","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-01-18T21:14:20.939Z","from_sync":false,"order":0,"slug":"documentation","title":"Converter Functionality"},"parentDoc":null,"project":"569d55abec29360d00f66798","user":"569d557c0306a10d00ce996e","version":{"__v":17,"_id":"569d55acec29360d00f6679b","project":"569d55abec29360d00f66798","createdAt":"2016-01-18T21:14:20.374Z","releaseDate":"2016-01-18T21:14:20.374Z","categories":["569d55acec29360d00f6679c","569d58cc0306a10d00ce9971","569d5c37ec29360d00f667a7","569ec89aebbadc0d0079bf71","569eccaa4a5c8b0d00744b3c","569eccbeffccd10d00a05cac","569ecd0f2d320817003b80d3","569ed216fbee990d0072d990","56b35bfb53da320d00c29716","56c1dc3d47394f0d00e227e8","570b98171e91d4220012acd8","570b9fa85f7a88340019f9f7","570e1ac1132c6d2b0000ab0b","570f5f72d6c6f00e00b98782","570f701ad6c6f00e00b98795","570f80fbb85a841900aa9505","5734a9642a48a90e0078e5ed"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"updates":[],"createdAt":"2016-05-19T15:27:46.720Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":5,"body":"Partials create a separate template file for the contents of the partial element. This enables you to update content from only a single location and see changes everywhere the partial is included. The content of the partial is retrieved from the element having the partial class in index.html. The same content is used on any elements that have the same partial class on any other pages.\n\n## Header\nThe contents of the header element from index.html will be saved to the header template file during the conversion and the same content will be displayed inside any other elements on any other pages that have this class.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"<div class=\\\"wp-header\\\">\\n\\t\\tThe contents of this element from the index.html will appear inside any other elements on any other pages that have this class.\\n</div>\",\n      \"language\": \"html\",\n      \"name\": \"Example of a header partial\"\n    }\n  ]\n}\n[/block]\n\n[block:parameters]\n{\n  \"data\": {\n    \"0-0\": \"wp-header\",\n    \"0-1\": \"**Display header partial**\\n\\nThe contents of the element from index.html will be saved to the header template file (header.php) during the conversion and the same content will be displayed inside any other elements on any other pages that have this class.\",\n    \"h-0\": \"Class name\",\n    \"h-1\": \"Functionality\"\n  },\n  \"cols\": 2,\n  \"rows\": 1\n}\n[/block]\n## Footer\nThe contents of the footer element from index.html will be saved to the footer template file during the conversion and the same content will be displayed inside any other elements on any other pages that have this class.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"<div class=\\\"wp-footer\\\">\\n\\t\\tThe contents of this element from the index.html will appear inside any other elements on any other pages that have this class.\\n</div>  \",\n      \"language\": \"html\",\n      \"name\": \"Example of a footer partial\"\n    }\n  ]\n}\n[/block]\n\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Class name\",\n    \"h-1\": \"Functionality\",\n    \"0-0\": \"wp-footer\",\n    \"0-1\": \"**Display footer partial**\\n\\nThe contents of the element from index.html will be saved to the footer template file (footer.php) during the conversion and the same content will be displayed inside any other elements on any other pages that have this class.\"\n  },\n  \"cols\": 2,\n  \"rows\": 1\n}\n[/block]\n## Custom partial\nThe contents of the custom partial element from index.html will be saved to the partial template file during the conversion and the same content will be displayed inside any other elements on any other pages that have this class.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"<div class=\\\"wp-partial-testimonial\\\">\\n\\t\\tThe contents of this element from the index.html will appear inside any other elements on any other pages that have this class.\\n</div>\",\n      \"language\": \"html\",\n      \"name\": \"Example of a custom partial\"\n    }\n  ]\n}\n[/block]\n\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Class name\",\n    \"h-1\": \"Functionality\",\n    \"0-0\": \"wp-partial-name\",\n    \"0-1\": \"**Display custom partial**\\n\\nThe contents of the element from index.html will be saved to the partial template file (partial-name.php) during the conversion and the same content will be displayed inside any other elements on any other pages that have this class.\"\n  },\n  \"cols\": 2,\n  \"rows\": 1\n}\n[/block]","excerpt":"<a href=\"\">Header partial</a>\n<a href=\"\">Footer partial</a>\n<a href=\"\">Custom partials</a>","slug":"partials","type":"basic","title":"Partials"}

Partials

<a href="">Header partial</a> <a href="">Footer partial</a> <a href="">Custom partials</a>

Partials create a separate template file for the contents of the partial element. This enables you to update content from only a single location and see changes everywhere the partial is included. The content of the partial is retrieved from the element having the partial class in index.html. The same content is used on any elements that have the same partial class on any other pages. ## Header The contents of the header element from index.html will be saved to the header template file during the conversion and the same content will be displayed inside any other elements on any other pages that have this class. [block:code] { "codes": [ { "code": "<div class=\"wp-header\">\n\t\tThe contents of this element from the index.html will appear inside any other elements on any other pages that have this class.\n</div>", "language": "html", "name": "Example of a header partial" } ] } [/block] [block:parameters] { "data": { "0-0": "wp-header", "0-1": "**Display header partial**\n\nThe contents of the element from index.html will be saved to the header template file (header.php) during the conversion and the same content will be displayed inside any other elements on any other pages that have this class.", "h-0": "Class name", "h-1": "Functionality" }, "cols": 2, "rows": 1 } [/block] ## Footer The contents of the footer element from index.html will be saved to the footer template file during the conversion and the same content will be displayed inside any other elements on any other pages that have this class. [block:code] { "codes": [ { "code": "<div class=\"wp-footer\">\n\t\tThe contents of this element from the index.html will appear inside any other elements on any other pages that have this class.\n</div> ", "language": "html", "name": "Example of a footer partial" } ] } [/block] [block:parameters] { "data": { "h-0": "Class name", "h-1": "Functionality", "0-0": "wp-footer", "0-1": "**Display footer partial**\n\nThe contents of the element from index.html will be saved to the footer template file (footer.php) during the conversion and the same content will be displayed inside any other elements on any other pages that have this class." }, "cols": 2, "rows": 1 } [/block] ## Custom partial The contents of the custom partial element from index.html will be saved to the partial template file during the conversion and the same content will be displayed inside any other elements on any other pages that have this class. [block:code] { "codes": [ { "code": "<div class=\"wp-partial-testimonial\">\n\t\tThe contents of this element from the index.html will appear inside any other elements on any other pages that have this class.\n</div>", "language": "html", "name": "Example of a custom partial" } ] } [/block] [block:parameters] { "data": { "h-0": "Class name", "h-1": "Functionality", "0-0": "wp-partial-name", "0-1": "**Display custom partial**\n\nThe contents of the element from index.html will be saved to the partial template file (partial-name.php) during the conversion and the same content will be displayed inside any other elements on any other pages that have this class." }, "cols": 2, "rows": 1 } [/block]